	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm860x_onkey_probe
_pm860x_onkey_probe:                    ## @pm860x_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
	pushq	%rax
	.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, %r14
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%r14, 32(%rax)
	movq	(%r14), %rax
	movq	_CHIP_PM8607@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	12(%r14,%rdx,4), %eax
	movl	%eax, 24(%r12)
	movq	%r15, 16(%r12)
	movl	%r13d, (%r12)
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_I2C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	%r15, 32(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	8(%r12), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movq	16(%rax), %r13
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_WORD
	movq	%rbx, (%r13,%rax,8)
	movq	8(%r12), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movl	(%r12), %esi
	movq	_pm860x_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
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %r13d
	movl	8(%r14), %edi
	movl	(%r12), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHIP_PM8607,8,3                ## @CHIP_PM8607
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate input dev\n"

L_.str.1:                               ## @.str.1
	.asciz	"88pm860x_on"

L_.str.2:                               ## @.str.2
	.asciz	"88pm860x_on/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
L_.str.3:                               ## @.str.3
	.asciz	"Can't register input device: %d\n"

	.comm	_pm860x_onkey_handler,4,2       ## @pm860x_onkey_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"onkey"

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

	.no_dead_strip	_pm860x_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm860x_onkey_probe
_pm860x_onkey_probe:                    ; @pm860x_onkey_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	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_5
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	str	x20, [x0, #32]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _CHIP_PM8607@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_PM8607@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #12
	mov	w11, #16
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w8, [x20, x8]
	str	w8, [x0, #24]
	str	x19, [x0, #16]
	str	w22, [x0]
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
Lloh10:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x19, [x0, #32]
Lloh13:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #24]
	str	x0, [x8]
Lloh16:
	adrp	x23, _KEY_POWER@GOTPAGE
Lloh17:
	ldr	x23, [x23, _KEY_POWER@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x8, [x21, #8]
	ldr	x24, [x8, #16]
	ldr	w0, [x23]
	bl	_BIT_WORD
	str	x22, [x24, x0, lsl #3]
	ldr	x0, [x21, #8]
	bl	_input_register_device
	cbz	w0, LBB0_10
; %bb.4:
	mov	x22, x0
	ldr	w0, [x20, #8]
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_5:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w0, [x20, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w1, [x21]
Lloh26:
	adrp	x8, _pm860x_onkey_handler@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pm860x_onkey_handler@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
Lloh32:
	adrp	x5, l_.str.4@PAGE
Lloh33:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	mov	w22, #0
	b	LBB0_9
LBB0_12:
	mov	x22, x0
	ldr	w0, [x20, #8]
	ldr	w8, [x21]
	stp	x8, x22, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHIP_PM8607,8,3                ; @CHIP_PM8607
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate input dev\n"

l_.str.1:                               ; @.str.1
	.asciz	"88pm860x_on"

l_.str.2:                               ; @.str.2
	.asciz	"88pm860x_on/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
l_.str.3:                               ; @.str.3
	.asciz	"Can't register input device: %d\n"

	.comm	_pm860x_onkey_handler,4,2       ; @pm860x_onkey_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"onkey"

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

	.no_dead_strip	_pm860x_onkey_probe
.subsections_via_symbols
