	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8925_onkey_probe
_max8925_onkey_probe:                   ## @max8925_onkey_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movl	%eax, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, 8(%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %ecx
	movl	%ecx, 24(%r12)
	movq	%r15, 16(%r12)
	movq	(%r12), %rcx
	movl	%r13d, (%rcx)
	movl	%r14d, 4(%rcx)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_I2C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%r15, 16(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_input_set_capability
	movq	_max8925_onkey_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.2(%rip), %r9
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movq	_max8925_onkey_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.4(%rip), %r9
	movq	%r15, %rdi
	movl	%r14d, %ebx
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:
	movq	8(%r12), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movl	%eax, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
LBB0_16:
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_17:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max8925_on"

L_.str.1:                               ## @.str.1
	.asciz	"max8925_on/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_max8925_onkey_handler,4,2      ## @max8925_onkey_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"onkey-down"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to request IRQ: #%d: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"onkey-up"

L_.str.5:                               ## @.str.5
	.asciz	"Can't register input device: %d\n"

	.no_dead_strip	_max8925_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8925_onkey_probe
_max8925_onkey_probe:                   ; @max8925_onkey_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #1
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w8, [x20, #4]
	str	w8, [x23, #24]
	stp	x0, x19, [x23, #8]
	ldr	x8, [x23]
	stp	w22, w21, [x8]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x0]
Lloh7:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x19, [x0, #16]
Lloh10:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_input_set_capability
Lloh16:
	adrp	x25, _max8925_onkey_handler@GOTPAGE
Lloh17:
	ldr	x25, [x25, _max8925_onkey_handler@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh18:
	adrp	x26, _IRQF_ONESHOT@GOTPAGE
Lloh19:
	ldr	x26, [x26, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w4, [x26]
Lloh20:
	adrp	x5, l_.str.2@PAGE
Lloh21:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x6, x23
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	w3, [x25]
	ldr	w4, [x26]
Lloh22:
	adrp	x5, l_.str.4@PAGE
Lloh23:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x23
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_13
; %bb.6:
	ldr	x0, [x23, #8]
	bl	_input_register_device
	mov	x24, x0
	cbz	w0, LBB0_14
; %bb.7:
	ldr	w0, [x20]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	b	LBB0_11
LBB0_8:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x24, x0
	ldr	w0, [x20]
	str	x24, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_11
LBB0_13:
	mov	x24, x0
	ldr	w0, [x20]
	str	x24, [sp]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_dev_err
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_11
LBB0_14:
	mov	x0, x19
	mov	x1, x23
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max8925_on"

l_.str.1:                               ; @.str.1
	.asciz	"max8925_on/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_max8925_onkey_handler,4,2      ; @max8925_onkey_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"onkey-down"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to request IRQ: #%d: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"onkey-up"

l_.str.5:                               ; @.str.5
	.asciz	"Can't register input device: %d\n"

	.no_dead_strip	_max8925_onkey_probe
.subsections_via_symbols
