section .text

.globl PBMAIN
PBMAIN:
entry:
    push rbp
    mov rbp, rsp
    push rbx
    push rsi
    sub rsp, 32
    xor r10, r10
    xor rbx, rbx
    mov [rbp-8], rbx
    xor r10, r10
    xor rbx, rbx
    mov [rbp-16], rbx
    mov rbx, 5
    mov [rbp-16], rbx
    mov r10, [rbp-16]
    mov rbx, r10
    nop
    mov [rbp-24], rbx
    jmp .L_PBMAIN_1
.L_PBMAIN_0:
    mov r10, [rbp-8]
    mov rbx, r10
    mov rax, r10
    add rsp, 32
    pop rsi
    pop rbx
    pop rbp
    ret
.L_PBMAIN_1:
    mov r10, [rbp-24]
    mov rbx, r10
    cmp rbx, 1
    mov r10, 0
    setge r10
    mov rsi, r10
    cmp rbx, 3
    mov r10, 0
    setle r10
    mov rbx, r10
    nop
    and rsi, rbx
    test rsi, rsi
    jne .L_PBMAIN_2
    jmp .L_PBMAIN_3
.L_PBMAIN_2:
    mov r10, 1
    mov rbx, 1
    mov [rbp-8], 1
    jmp .L_PBMAIN_3
.L_PBMAIN_3:
    mov r10, [rbp-24]
    mov rbx, r10
    cmp rbx, 4
    mov r10, 0
    setge r10
    mov rsi, r10
    cmp rbx, 6
    mov r10, 0
    setle r10
    mov rbx, r10
    nop
    and rsi, rbx
    test rsi, rsi
    jne .L_PBMAIN_4
    jmp .L_PBMAIN_5
.L_PBMAIN_4:
    mov r10, 42
    mov rbx, 42
    mov [rbp-8], 42
    jmp .L_PBMAIN_5
.L_PBMAIN_5:
    jmp .L_PBMAIN_6
    jmp .L_PBMAIN_0
.L_PBMAIN_6:
    mov r10, 7
    mov rbx, 7
    mov [rbp-8], 7
    jmp .L_PBMAIN_0

