	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_keys_setup_key
_gpio_keys_setup_key:                   ## @gpio_keys_setup_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	(%rcx), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %r12
	cmovneq	%rax, %r12
	movq	%r9, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	8(%rdx), %r13
	movslq	%r8d, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rax,4), %r15
	shlq	$4, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, 72(%r13,%r15)
	movq	%rcx, 64(%r13,%r15)
	leaq	(%r15,%r13), %rdi
	addq	$56, %rdi
	callq	_spin_lock_init
	testq	%rbx, %rbx
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r12, %r8
	callq	_devm_fwnode_get_gpiod_from_child
	movq	%rax, 48(%r13,%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rbx
	movq	%r15, %r14
	je	LBB0_9
## %bb.2:
	movq	%rbx, %r15
	movq	%r14, %r13
	addq	%r14, %rbx
	addq	$48, %rbx
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_23
## %bb.3:
	movq	$0, (%rbx)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %rbx
	movq	%r13, %r14
	jmp	LBB0_9
LBB0_4:
	movl	8(%r14), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rbx
	movq	%r15, %r14
	je	LBB0_9
## %bb.5:
	movq	%r14, %r15
	movq	_GPIOF_IN@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 40(%rcx)
	je	LBB0_7
## %bb.6:
	movq	_GPIOF_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_7:
	orl	(%rax), %edx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	8(%r13), %esi
	movq	%r12, %rdi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	_devm_gpio_request_one
	movl	8(%r13), %edx
	testl	%eax, %eax
	js	LBB0_31
## %bb.8:
	movl	%edx, %edi
	callq	_gpio_to_desc
	movq	%r15, %r14
	movq	%rax, 48(%rbx,%r15)
	testq	%rax, %rax
	je	LBB0_43
LBB0_9:
	leaq	(%rbx,%r14), %r13
	movq	48(%rbx,%r14), %rdi
	testq	%rdi, %rdi
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	je	LBB0_19
## %bb.10:
	movq	%r14, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %r15
	movq	%rax, %r12
	addq	%rax, %rbx
	addq	$48, %rbx
	callq	_gpiod_is_active_low
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r14, %r13
	movl	12(%r14), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movq	(%rbx), %rdi
	imull	$1000, %eax, %esi               ## imm = 0x3E8
	callq	_gpiod_set_debounce
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movl	12(%r13), %eax
	movl	%eax, (%r15)
LBB0_13:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %r15
	movl	16(%r13), %r14d
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.14:
	movq	(%rbx), %rdi
	callq	_gpiod_to_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_44
LBB0_15:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	%r14d, 4(%rbx,%r12)
	movq	%r12, %r14
	leaq	(%rbx,%r12), %rdi
	addq	$40, %rdi
	movq	_gpio_keys_gpio_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_gpio_keys_gpio_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	20(%r15), %eax
	cmpl	$128, %eax
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_25
## %bb.16:
	cmpl	$129, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_33
## %bb.17:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
LBB0_27:
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_19:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %eax
	testl	%eax, %eax
	je	LBB0_29
## %bb.20:
	movl	%eax, 4(%rbx,%r14)
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.21:
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.22:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_30
LBB0_23:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_46
## %bb.24:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_25:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_27
LBB0_18:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rax
	movq	%rax, 32(%rbx,%r14)
	jmp	LBB0_33
LBB0_29:
	leaq	L_.str.4(%rip), %rsi
LBB0_30:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_46
LBB0_31:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_45
LBB0_32:
	movl	12(%r15), %eax
	movl	%eax, 8(%rbx,%r14)
	leaq	(%rbx,%r14), %rdi
	addq	$24, %rdi
	movq	_gpio_keys_irq_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_gpio_keys_irq_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
LBB0_33:
	movq	(%rcx), %rax
	leaq	(%rax,%rsi,4), %rcx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, 16(%rbx,%r14)
	movl	36(%r15), %edx
	movl	%edx, (%rax,%rsi,4)
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_35
## %bb.34:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_35:
	callq	_input_set_capability
	movq	_gpio_keys_quiesce_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_devm_add_action
	testl	%eax, %eax
	je	LBB0_38
## %bb.36:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
LBB0_37:
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_46
LBB0_38:
	movq	%r13, %r9
	xorl	%r14d, %r14d
	cmpl	$0, 32(%r15)
	jne	LBB0_40
## %bb.39:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_41
LBB0_40:
	xorl	%ecx, %ecx
LBB0_41:
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	orq	%rax, %rcx
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r15,%r13), %esi
	movq	%r12, %rdi
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	jns	LBB0_46
## %bb.42:
	movl	%eax, %ebx
	leaq	(%r15,%r13), %rax
	addq	$4, %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_46
LBB0_43:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_46
LBB0_44:
	movl	8(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_45:
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_46:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio_keys"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"failed to get gpio: %d\n"

	.comm	_GPIOF_IN,4,2                   ## @GPIOF_IN
	.comm	_GPIOF_ACTIVE_LOW,4,2           ## @GPIOF_ACTIVE_LOW
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request GPIO %d, error %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Unable to get irq number for GPIO %d, error %d\n"

	.comm	_gpio_keys_gpio_work_func,4,2   ## @gpio_keys_gpio_work_func
	.comm	_gpio_keys_gpio_isr,4,2         ## @gpio_keys_gpio_isr
	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQ_TYPE_EDGE_FALLING,8,3      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,8,3       ## @IRQ_TYPE_EDGE_RISING
L_.str.4:                               ## @.str.4
	.asciz	"Found button without gpio or irq\n"

	.comm	_EV_KEY,8,3                     ## @EV_KEY
L_.str.5:                               ## @.str.5
	.asciz	"Only EV_KEY allowed for IRQ buttons.\n"

	.comm	_gpio_keys_irq_timer,4,2        ## @gpio_keys_irq_timer
	.comm	_gpio_keys_irq_isr,4,2          ## @gpio_keys_irq_isr
	.comm	_gpio_keys_quiesce_key,4,2      ## @gpio_keys_quiesce_key
L_.str.6:                               ## @.str.6
	.asciz	"failed to register quiesce action, error: %d\n"

	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
L_.str.7:                               ## @.str.7
	.asciz	"Unable to claim irq %d; error %d\n"

	.no_dead_strip	_gpio_keys_setup_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_keys_setup_key
_gpio_keys_setup_key:                   ; @gpio_keys_setup_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x3]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x26, x9, x8, eq
	ldr	x27, [x2, #8]
	sxtw	x28, w4
	mov	w8, #80
	smaddl	x21, w4, w8, x27
	stp	x3, x1, [x21, #64]
	add	x0, x21, #56
	bl	_spin_lock_init
	cbz	x25, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x25
	mov	x4, x26
	bl	_devm_fwnode_get_gpiod_from_child
	mov	w8, #80
	madd	x20, x28, x8, x27
	str	x0, [x20, #48]!
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x20]
	bl	_PTR_ERR
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_17
; %bb.3:
	str	xzr, [x20]
	b	LBB0_7
LBB0_4:
	ldr	w0, [x22, #8]
	bl	_gpio_is_valid
	cbz	x0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _GPIOF_IN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIOF_IN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GPIOF_ACTIVE_LOW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GPIOF_ACTIVE_LOW@GOTPAGEOFF]
	ldr	x10, [x22, #40]
Lloh13:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
	ldr	w1, [x22, #8]
	mov	x0, x19
	mov	x3, x26
	bl	_devm_gpio_request_one
	mov	x25, x0
	ldr	w0, [x22, #8]
	tbnz	w25, #31, LBB0_31
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_gpio_to_desc
	mov	w8, #80
	madd	x8, x28, x8, x27
	str	x0, [x8, #48]
	cbz	x0, LBB0_34
LBB0_7:
	mov	w8, #80
	madd	x20, x28, x8, x27
	ldr	x0, [x20, #48]!
	cbz	x0, LBB0_13
; %bb.8:
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	bl	_gpiod_is_active_low
	mov	x26, x0
	ldr	w8, [x22, #12]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	x0, [x20]
	mov	w9, #1000
	mul	w1, w8, w9
	bl	_gpiod_set_debounce
	tbnz	w0, #31, LBB0_20
LBB0_10:
	ldr	w25, [x22, #16]
	cbnz	w25, LBB0_21
LBB0_11:
	ldr	x0, [x20]
	bl	_gpiod_to_irq
	mov	x25, x0
	tbz	w0, #31, LBB0_21
; %bb.12:
	mov	x8, x25
	ldr	w9, [x22, #8]
	stp	x9, x8, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_13:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_32
; %bb.14:
	mov	w9, #80
	madd	x9, x28, x9, x27
	str	w8, [x9, #4]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_35
; %bb.15:
Lloh16:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_35
; %bb.16:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_33
LBB0_17:
	mov	x25, x0
Lloh21:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_38
; %bb.18:
	str	x25, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_38
LBB0_20:
	ldr	w8, [x22, #12]
	str	w8, [x21]
	ldr	w25, [x22, #16]
	cbz	w25, LBB0_11
LBB0_21:
	mov	w8, #80
	madd	x8, x28, x8, x27
	str	w25, [x8, #4]
	add	x0, x8, #40
Lloh26:
	adrp	x8, _gpio_keys_gpio_work_func@GOTPAGE
Lloh27:
	ldr	x8, [x8, _gpio_keys_gpio_work_func@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh29:
	adrp	x8, _gpio_keys_gpio_isr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _gpio_keys_gpio_isr@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
Lloh32:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	orr	x25, x9, x8
	ldr	w8, [x22, #20]
	cmp	w8, #128
	b.eq	LBB0_24
; %bb.22:
	cmp	w8, #129
	b.ne	LBB0_26
; %bb.23:
Lloh38:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh40:
	adrp	x9, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh41:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh42:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh44:
	adrp	x9, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
LBB0_25:
	cmp	w26, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	mov	w9, #80
	madd	x9, x28, x9, x27
	str	x8, [x9, #32]
LBB0_26:
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
LBB0_27:
	ldr	x8, [x24]
	add	x8, x8, x28, lsl #2
	mov	w9, #80
	madd	x9, x28, x9, x27
	str	x8, [x9, #16]
	ldr	w2, [x22, #36]
	str	w2, [x8]
	ldr	x8, [x22, #24]
Lloh46:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh47:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x1, x9, x8, eq
	mov	x0, x23
	bl	_input_set_capability
Lloh49:
	adrp	x8, _gpio_keys_quiesce_key@GOTPAGE
Lloh50:
	ldr	x8, [x8, _gpio_keys_quiesce_key@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action
	cbz	w0, LBB0_29
; %bb.28:
	mov	x23, x0
	str	x23, [sp]
Lloh52:
	adrp	x1, l_.str.6@PAGE
Lloh53:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x25, x23
	b	LBB0_38
LBB0_29:
	ldr	w8, [x22, #32]
Lloh54:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh55:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x8, x9, xzr, eq
	orr	x3, x8, x25
	mov	w8, #80
	mov	x2, x20
	madd	x20, x28, x8, x27
	ldr	w1, [x20, #4]!
	mov	x0, x19
	mov	x4, x26
	mov	x5, x21
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_36
; %bb.30:
	mov	w25, #0
	b	LBB0_38
LBB0_31:
	stp	x0, x25, [sp]
Lloh57:
	adrp	x1, l_.str.2@PAGE
Lloh58:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_37
LBB0_32:
Lloh59:
	adrp	x1, l_.str.4@PAGE
Lloh60:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_33:
	mov	x0, x19
	bl	_dev_err
LBB0_34:
Lloh61:
	adrp	x8, _EINVAL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_38
LBB0_35:
	ldr	w8, [x22, #12]
	mov	w9, #80
	madd	x9, x28, x9, x27
	str	w8, [x9, #8]
	add	x0, x9, #24
Lloh64:
	adrp	x8, _gpio_keys_irq_timer@GOTPAGE
Lloh65:
	ldr	x8, [x8, _gpio_keys_irq_timer@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	x25, #0
Lloh67:
	adrp	x8, _gpio_keys_irq_isr@GOTPAGE
Lloh68:
	ldr	x8, [x8, _gpio_keys_irq_isr@GOTPAGEOFF]
Lloh69:
	ldr	w20, [x8]
	b	LBB0_27
LBB0_36:
	mov	x25, x0
	ldr	w8, [x20]
	stp	x8, x25, [sp]
Lloh70:
	adrp	x1, l_.str.7@PAGE
Lloh71:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_37:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
LBB0_38:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio_keys"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"failed to get gpio: %d\n"

	.comm	_GPIOF_IN,4,2                   ; @GPIOF_IN
	.comm	_GPIOF_ACTIVE_LOW,4,2           ; @GPIOF_ACTIVE_LOW
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request GPIO %d, error %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Unable to get irq number for GPIO %d, error %d\n"

	.comm	_gpio_keys_gpio_work_func,4,2   ; @gpio_keys_gpio_work_func
	.comm	_gpio_keys_gpio_isr,4,2         ; @gpio_keys_gpio_isr
	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQ_TYPE_EDGE_FALLING,8,3      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,8,3       ; @IRQ_TYPE_EDGE_RISING
l_.str.4:                               ; @.str.4
	.asciz	"Found button without gpio or irq\n"

	.comm	_EV_KEY,8,3                     ; @EV_KEY
l_.str.5:                               ; @.str.5
	.asciz	"Only EV_KEY allowed for IRQ buttons.\n"

	.comm	_gpio_keys_irq_timer,4,2        ; @gpio_keys_irq_timer
	.comm	_gpio_keys_irq_isr,4,2          ; @gpio_keys_irq_isr
	.comm	_gpio_keys_quiesce_key,4,2      ; @gpio_keys_quiesce_key
l_.str.6:                               ; @.str.6
	.asciz	"failed to register quiesce action, error: %d\n"

	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
l_.str.7:                               ; @.str.7
	.asciz	"Unable to claim irq %d; error %d\n"

	.no_dead_strip	_gpio_keys_setup_key
.subsections_via_symbols
