	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function default_polling_getkey
_default_polling_getkey:                ## @default_polling_getkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rdi
	movl	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_EM28XX_R45_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	movl	$12, %r8d
	callq	*(%rdi)
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sarl	$7, %ecx
	movl	%ecx, (%r14)
	andl	$127, %eax
	movl	%eax, 4(%r14)
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	_RC_PROTO_RC5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	-36(%rbp), %edi
	movl	-32(%rbp), %esi
	callq	_RC_SCANCODE_RC5
	jmp	LBB0_6
LBB0_4:
	movq	_RC_PROTO_NEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	-36(%rbp), %edi
	movl	-32(%rbp), %esi
	callq	_RC_SCANCODE_NEC
	jmp	LBB0_6
LBB0_5:
	movq	_RC_PROTO_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	-36(%rbp), %eax
	shll	$8, %eax
	orl	-32(%rbp), %eax
LBB0_6:
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_R45_IR,4,2              ## @EM28XX_R45_IR
	.comm	_RC_PROTO_RC5,4,2               ## @RC_PROTO_RC5
	.comm	_RC_PROTO_NEC,4,2               ## @RC_PROTO_NEC
	.comm	_RC_PROTO_UNKNOWN,4,2           ## @RC_PROTO_UNKNOWN
	.no_dead_strip	_default_polling_getkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function default_polling_getkey
_default_polling_getkey:                ; @default_polling_getkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x0, [x0, #8]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _EM28XX_R45_IR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EM28XX_R45_IR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	add	x3, sp, #8
	mov	w1, #0
	mov	w4, #12
	blr	x8
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w8, [sp, #8]
	asr	w9, w8, #7
	and	w8, w8, #0x7f
	stp	w9, w8, [x19]
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _RC_PROTO_RC5@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RC_PROTO_RC5@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	w0, w1, [sp, #12]
	bl	_RC_SCANCODE_RC5
	mov	x8, x0
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _RC_PROTO_NEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RC_PROTO_NEC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	w0, w1, [sp, #12]
	bl	_RC_SCANCODE_NEC
	mov	x8, x0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _RC_PROTO_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RC_PROTO_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	w8, w9, [sp, #12]
	orr	w8, w9, w8, lsl #8
LBB0_6:
	mov	w0, #0
	str	w8, [x19, #8]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_R45_IR,4,2              ; @EM28XX_R45_IR
	.comm	_RC_PROTO_RC5,4,2               ; @RC_PROTO_RC5
	.comm	_RC_PROTO_NEC,4,2               ; @RC_PROTO_NEC
	.comm	_RC_PROTO_UNKNOWN,4,2           ; @RC_PROTO_UNKNOWN
	.no_dead_strip	_default_polling_getkey
.subsections_via_symbols
