	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm80x_onkey_probe
_pm80x_onkey_probe:                     ## @pm80x_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_I2C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	%r14, 32(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	8(%r15), %rcx
	movq	24(%rcx), %rdx
	movl	%eax, (%rdx)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rcx), %esi
	callq	___set_bit
	movq	(%r15), %rsi
	movq	16(%r15), %rdi
	movq	_pm80x_onkey_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %r8
	movq	%r15, %r9
	callq	_pm80x_request_irq
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	8(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r15), %rsi
	movq	16(%r15), %rdi
	movq	%r15, %rdx
	callq	_pm80x_free_irq
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %ebx
	movq	(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movq	8(%r15), %rdi
	callq	_input_free_device
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	24(%r15), %edi
	movq	_PM800_RTC_MISC4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PM800_LONG_ONKEY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	24(%r15), %edi
	movq	_PM800_RTC_MISC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PM800_LONKEY_PRESS_TIME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PM800_LONKEY_PRESS_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no regmap!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate input dev\n"

L_.str.2:                               ## @.str.2
	.asciz	"88pm80x_on"

L_.str.3:                               ## @.str.3
	.asciz	"88pm80x_on/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_pm80x_onkey_handler,4,2        ## @pm80x_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"

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

	.comm	_PM800_RTC_MISC4,4,2            ## @PM800_RTC_MISC4
	.comm	_PM800_LONG_ONKEY_EN,4,2        ## @PM800_LONG_ONKEY_EN
	.comm	_PM800_RTC_MISC3,4,2            ## @PM800_RTC_MISC3
	.comm	_PM800_LONKEY_PRESS_TIME_MASK,4,2 ## @PM800_LONKEY_PRESS_TIME_MASK
	.comm	_PM800_LONKEY_PRESS_TIME,4,2    ## @PM800_LONKEY_PRESS_TIME
	.no_dead_strip	_pm80x_onkey_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm80x_onkey_probe
_pm80x_onkey_probe:                     ; @pm80x_onkey_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_9
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #24]
	cbz	w8, LBB0_8
; %bb.3:
	bl	_input_allocate_device
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.4:
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh5:
	adrp	x9, l_.str.3@PAGE
Lloh6:
	add	x9, x9, l_.str.3@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, #40]
	str	x20, [x0, #32]
Lloh10:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	str	w0, [x9]
Lloh13:
	adrp	x9, _KEY_POWER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KEY_POWER@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	w1, [x8, #16]
	bl	___set_bit
	ldr	x0, [x19, #16]
	ldr	x1, [x19]
Lloh16:
	adrp	x8, _pm80x_onkey_handler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pm80x_onkey_handler@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x4, l_.str.4@PAGE
Lloh23:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x5, x19
	bl	_pm80x_request_irq
	tbnz	w0, #31, LBB0_14
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.6:
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	ldr	x1, [x19]
	mov	x2, x19
	bl	_pm80x_free_irq
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_15
LBB0_7:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_8:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_14:
	mov	x21, x0
	ldr	x8, [x19]
	stp	x8, x21, [sp]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_15:
	ldr	x0, [x19, #8]
	bl	_input_free_device
	b	LBB0_11
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x19, #24]
Lloh39:
	adrp	x8, _PM800_RTC_MISC4@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PM800_RTC_MISC4@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _PM800_LONG_ONKEY_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PM800_LONG_ONKEY_EN@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x19, #24]
Lloh45:
	adrp	x8, _PM800_RTC_MISC3@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PM800_RTC_MISC3@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _PM800_LONKEY_PRESS_TIME_MASK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PM800_LONKEY_PRESS_TIME_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
Lloh51:
	adrp	x8, _PM800_LONKEY_PRESS_TIME@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PM800_LONKEY_PRESS_TIME@GOTPAGEOFF]
Lloh53:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	mov	x0, x20
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no regmap!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate input dev\n"

l_.str.2:                               ; @.str.2
	.asciz	"88pm80x_on"

l_.str.3:                               ; @.str.3
	.asciz	"88pm80x_on/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_pm80x_onkey_handler,4,2        ; @pm80x_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"

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

	.comm	_PM800_RTC_MISC4,4,2            ; @PM800_RTC_MISC4
	.comm	_PM800_LONG_ONKEY_EN,4,2        ; @PM800_LONG_ONKEY_EN
	.comm	_PM800_RTC_MISC3,4,2            ; @PM800_RTC_MISC3
	.comm	_PM800_LONKEY_PRESS_TIME_MASK,4,2 ; @PM800_LONKEY_PRESS_TIME_MASK
	.comm	_PM800_LONKEY_PRESS_TIME,4,2    ; @PM800_LONKEY_PRESS_TIME
	.no_dead_strip	_pm80x_onkey_probe
.subsections_via_symbols
