	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_keys_handler
_pcap_keys_handler:                     ## @pcap_keys_handler
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %esi
	movl	4(%r14), %edi
	callq	_irq_to_pcap
	movl	%eax, %ebx
	movl	4(%r14), %edi
	movq	_PCAP_REG_PSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_ezx_pcap_read
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	andl	-20(%rbp), %eax
	movl	%eax, -20(%rbp)
	cmpl	$128, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.3:
	movq	_KEY_HP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_KEY_POWER@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%r14), %edi
	movl	(%rcx), %esi
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	callq	_input_report_key
LBB0_5:
	movl	(%r14), %edi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_REG_PSTAT,4,2             ## @PCAP_REG_PSTAT
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_KEY_HP,4,2                     ## @KEY_HP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_pcap_keys_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_keys_handler
_pcap_keys_handler:                     ; @pcap_keys_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x1, x0
	ldr	w0, [x19, #4]
	bl	_irq_to_pcap
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _PCAP_REG_PSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_REG_PSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ezx_pcap_read
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _KEY_HP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KEY_HP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x9, _KEY_POWER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KEY_POWER@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x19]
	ldr	w1, [x9]
	cmp	w8, #0
	cset	w2, eq
	bl	_input_report_key
LBB0_5:
	ldr	w0, [x19]
	bl	_input_sync
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_REG_PSTAT,4,2             ; @PCAP_REG_PSTAT
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_KEY_HP,4,2                     ; @KEY_HP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_pcap_keys_handler
.subsections_via_symbols
