	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_keys_gpio_report_event
_gpio_keys_gpio_report_event:           ## @gpio_keys_gpio_report_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movl	(%r12), %r15d
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	16(%rbx), %r14
	movl	8(%rbx), %edi
	callq	_gpiod_get_value_cansleep
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	_EV_ABS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_6
## %bb.4:
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	4(%r12), %eax
	addq	$8, %r12
	jmp	LBB0_7
LBB0_9:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	movq	(%rbx), %r12
LBB0_7:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_input_event
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get gpio state: %d\n"

	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.no_dead_strip	_gpio_keys_gpio_report_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_keys_gpio_report_event
_gpio_keys_gpio_report_event:           ; @gpio_keys_gpio_report_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	ldp	x19, x22, [x0, #16]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w20, w9, w8, eq
	ldr	w0, [x0, #8]
	bl	_gpiod_get_value_cansleep
	mov	x3, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.2:
	cbz	w3, LBB0_7
; %bb.3:
	add	x8, x22, #8
	ldr	w3, [x22, #4]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_5:
	ldr	x8, [x21]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_input_event
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get gpio state: %d\n"

	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.no_dead_strip	_gpio_keys_gpio_report_event
.subsections_via_symbols
