	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m0110_recv_key                 ## -- Begin function m0110_recv_key
	.p2align	4, 0x90
_m0110_recv_key:                        ## @m0110_recv_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	_m0110_recv_key.keybuf(%rip), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	$0, _m0110_recv_key.keybuf(%rip)
	jmp	LBB0_31
LBB0_2:
	movl	_m0110_recv_key.keybuf2(%rip), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	$0, _m0110_recv_key.keybuf2(%rip)
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	_m0110_recv_key.rawbuf(%rip), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	$0, _m0110_recv_key.rawbuf(%rip)
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_instant
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %edi
	callq	_KEY
	cmpl	$128, %eax
	je	LBB0_14
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_28
## %bb.9:
	xorl	%eax, %eax
	callq	_instant
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_KEY
	addl	$-130, %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.10:
	movl	%ebx, %edi
	callq	_IS_BREAK
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%ebx, %edi
	callq	_raw2scan
	movq	_M0110_CALC_OFFSET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, _m0110_recv_key.keybuf(%rip)
LBB0_12:
	movl	%ebx, %edi
LBB0_13:
	callq	_raw2scan
	movq	_M0110_KEYPAD_OFFSET@GOTPCREL(%rip), %rcx
LBB0_30:
	orl	(%rcx), %eax
	jmp	LBB0_31
LBB0_14:
	xorl	%eax, %eax
	callq	_instant
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_KEY
	cmpl	$129, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$128, %eax
	jne	LBB0_26
## %bb.16:
	movl	%r14d, _m0110_recv_key.rawbuf(%rip)
	jmp	LBB0_28
LBB0_17:
	xorl	%eax, %eax
	callq	_instant
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_KEY
	addl	$-130, %eax
	cmpl	$3, %eax
	ja	LBB0_25
## %bb.18:
	movl	%ebx, %edi
	callq	_IS_BREAK
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_IS_BREAK
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.19:
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str(%rip), %rdi
	callq	_print
	movl	%ebx, %edi
	callq	_raw2scan
	movl	%eax, _m0110_recv_key.keybuf2(%rip)
	jmp	LBB0_24
LBB0_26:
	movl	%r14d, %edi
	callq	_raw2scan
	jmp	LBB0_27
LBB0_25:
	movl	%r14d, %edi
	callq	_raw2scan
	movq	_M0110_KEYPAD_OFFSET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_27:
	movl	%eax, _m0110_recv_key.keybuf(%rip)
LBB0_28:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_raw2scan                       ## TAILCALL
LBB0_22:
	testl	%eax, %eax
	je	LBB0_29
## %bb.23:
	leaq	L_.str.2(%rip), %rdi
	callq	_print
LBB0_24:
	movl	%r14d, %edi
	callq	_raw2scan
	movq	_M0110_CALC_OFFSET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, _m0110_recv_key.keybuf(%rip)
	movl	%r14d, %edi
	jmp	LBB0_13
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	callq	_print
	jmp	LBB0_28
LBB0_29:
	leaq	L_.str.3(%rip), %rdi
	callq	_print
	movl	%r14d, %edi
	callq	_raw2scan
	movq	_M0110_CALC_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_m0110_recv_key.keybuf,4,2 ## @m0110_recv_key.keybuf
.zerofill __DATA,__bss,_m0110_recv_key.keybuf2,4,2 ## @m0110_recv_key.keybuf2
.zerofill __DATA,__bss,_m0110_recv_key.rawbuf,4,2 ## @m0110_recv_key.rawbuf
	.comm	_M0110_CALC_OFFSET,4,2          ## @M0110_CALC_OFFSET
	.comm	_M0110_KEYPAD_OFFSET,4,2        ## @M0110_KEYPAD_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(4)\n"

L_.str.1:                               ## @.str.1
	.asciz	"(3)\n"

L_.str.2:                               ## @.str.2
	.asciz	"(2)\n"

L_.str.3:                               ## @.str.3
	.asciz	"(1)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m0110_recv_key                 ; -- Begin function m0110_recv_key
	.p2align	2
_m0110_recv_key:                        ; @m0110_recv_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	adrp	x22, _m0110_recv_key.keybuf@PAGE
	ldr	w0, [x22, _m0110_recv_key.keybuf@PAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	str	wzr, [x22, _m0110_recv_key.keybuf@PAGEOFF]
	b	LBB0_4
LBB0_2:
	adrp	x23, _m0110_recv_key.keybuf2@PAGE
	ldr	w0, [x23, _m0110_recv_key.keybuf2@PAGEOFF]
	cbz	w0, LBB0_5
; %bb.3:
	str	wzr, [x23, _m0110_recv_key.keybuf2@PAGEOFF]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	adrp	x21, _m0110_recv_key.rawbuf@PAGE
	ldr	w19, [x21, _m0110_recv_key.rawbuf@PAGEOFF]
	cbz	w19, LBB0_7
; %bb.6:
	str	wzr, [x21, _m0110_recv_key.rawbuf@PAGEOFF]
	b	LBB0_8
LBB0_7:
	bl	_instant
	mov	x19, x0
LBB0_8:
	mov	x0, x19
	bl	_KEY
	cmp	w0, #128
	b.eq	LBB0_16
; %bb.9:
	cmp	w0, #129
	b.ne	LBB0_25
; %bb.10:
	bl	_instant
	mov	x19, x0
	bl	_KEY
	sub	w8, w0, #130
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_IS_BREAK
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_raw2scan
Lloh0:
	adrp	x8, _M0110_CALC_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M0110_CALC_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x22, _m0110_recv_key.keybuf@PAGEOFF]
LBB0_13:
	mov	x0, x19
LBB0_14:
	bl	_raw2scan
Lloh3:
	adrp	x8, _M0110_KEYPAD_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M0110_KEYPAD_OFFSET@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_4
LBB0_16:
	bl	_instant
	mov	x20, x0
	bl	_KEY
	cmp	w0, #129
	b.eq	LBB0_19
; %bb.17:
	cmp	w0, #128
	b.ne	LBB0_23
; %bb.18:
	str	w20, [x21, _m0110_recv_key.rawbuf@PAGEOFF]
	b	LBB0_25
LBB0_19:
	bl	_instant
	mov	x20, x0
	bl	_KEY
	sub	w8, w0, #130
	cmp	w8, #3
	b.hi	LBB0_24
; %bb.20:
	mov	x0, x19
	bl	_IS_BREAK
	mov	x21, x0
	mov	x0, x20
	bl	_IS_BREAK
	cbz	w21, LBB0_26
; %bb.21:
	cbz	w0, LBB0_29
; %bb.22:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
	mov	x0, x19
	bl	_raw2scan
	str	w0, [x23, _m0110_recv_key.keybuf2@PAGEOFF]
	b	LBB0_28
LBB0_23:
	mov	x0, x20
	bl	_raw2scan
	str	w0, [x22, _m0110_recv_key.keybuf@PAGEOFF]
	b	LBB0_25
LBB0_24:
	mov	x0, x20
	bl	_raw2scan
Lloh7:
	adrp	x8, _M0110_KEYPAD_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M0110_KEYPAD_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x22, _m0110_recv_key.keybuf@PAGEOFF]
LBB0_25:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_raw2scan
LBB0_26:
	cbz	w0, LBB0_30
; %bb.27:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_print
LBB0_28:
	mov	x0, x20
	bl	_raw2scan
Lloh12:
	adrp	x8, _M0110_CALC_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M0110_CALC_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x22, _m0110_recv_key.keybuf@PAGEOFF]
	mov	x0, x20
	b	LBB0_14
LBB0_29:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print
	b	LBB0_25
LBB0_30:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_print
	mov	x0, x20
	bl	_raw2scan
Lloh19:
	adrp	x8, _M0110_CALC_OFFSET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _M0110_CALC_OFFSET@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_m0110_recv_key.keybuf,4,2 ; @m0110_recv_key.keybuf
.zerofill __DATA,__bss,_m0110_recv_key.keybuf2,4,2 ; @m0110_recv_key.keybuf2
.zerofill __DATA,__bss,_m0110_recv_key.rawbuf,4,2 ; @m0110_recv_key.rawbuf
	.comm	_M0110_CALC_OFFSET,4,2          ; @M0110_CALC_OFFSET
	.comm	_M0110_KEYPAD_OFFSET,4,2        ; @M0110_KEYPAD_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(4)\n"

l_.str.1:                               ; @.str.1
	.asciz	"(3)\n"

l_.str.2:                               ; @.str.2
	.asciz	"(2)\n"

l_.str.3:                               ; @.str.3
	.asciz	"(1)\n"

.subsections_via_symbols
