	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_keys_button_event
_gpio_keys_button_event:                ## @gpio_keys_button_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	movq	_EV_REL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.4:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_event
	movl	8(%rbx), %edi
	movl	4(%r15), %esi
	jmp	LBB0_5
LBB0_6:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_9
## %bb.7:
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.8:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_event
	movl	8(%rbx), %edi
	movl	(%r15), %esi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___set_bit                      ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_event
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.no_dead_strip	_gpio_keys_button_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_button_event
_gpio_keys_button_event:                ; @gpio_keys_button_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	x3, x2
	mov	x19, x1
	ldp	x20, x21, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w1, w9, w8, eq
Lloh3:
	adrp	x8, _EV_REL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_3
; %bb.1:
	cbz	w3, LBB0_7
; %bb.2:
	ldp	w3, w2, [x19, #4]
	mov	x0, x20
	bl	_input_event
	ldr	w0, [x19, #8]
	ldr	w1, [x21, #4]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_8
; %bb.4:
	cbz	w3, LBB0_7
; %bb.5:
	ldp	w3, w2, [x19, #4]
	mov	x0, x20
	bl	_input_event
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
LBB0_6:
	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	___set_bit
LBB0_7:
	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
	ret
LBB0_8:
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_input_event
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.no_dead_strip	_gpio_keys_button_event
.subsections_via_symbols
