	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_pwron_probe
_palmas_pwron_probe:                    ## @palmas_pwron_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_palmas_pwron_params_ofinit
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r12, 16(%r15)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	movq	%r13, %r14
	movl	-64(%rbp), %r13d
	movq	_PALMAS_LPK_TIME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___ffs
	movl	%eax, %ecx
	shll	%cl, %r13d
	movl	-60(%rbp), %ebx
	movq	_PALMAS_PWRON_DEBOUNCE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___ffs
	movl	%eax, %ecx
	shll	%cl, %ebx
	orl	%r13d, %ebx
	movq	%r14, %r13
	movq	_PALMAS_PMU_CONTROL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PALMAS_LONG_PRESS_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_PWRON_DEBOUNCE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PALMAS_LPK_TIME_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_palmas_update_bits
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, 16(%r14)
	movq	%r15, 8(%r14)
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_palmas_power_button_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_INIT_DELAYED_WORK
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	movl	%eax, (%r14)
	movq	_pwron_irq@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	orl	(%rcx), %r13d
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_cancel_delayed_work_sync
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_10:
	movq	%r15, %rdi
	callq	_input_free_device
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate power button\n"

L_.str.1:                               ## @.str.1
	.asciz	"palmas_pwron"

L_.str.2:                               ## @.str.2
	.asciz	"palmas_pwron/input0"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_PALMAS_LPK_TIME_MASK,4,2       ## @PALMAS_LPK_TIME_MASK
	.comm	_PALMAS_PWRON_DEBOUNCE_MASK,4,2 ## @PALMAS_PWRON_DEBOUNCE_MASK
	.comm	_PALMAS_PMU_CONTROL_BASE,4,2    ## @PALMAS_PMU_CONTROL_BASE
	.comm	_PALMAS_LONG_PRESS_KEY,4,2      ## @PALMAS_LONG_PRESS_KEY
L_.str.3:                               ## @.str.3
	.asciz	"LONG_PRESS_KEY_UPDATE failed: %d\n"

	.comm	_palmas_power_button_work,4,2   ## @palmas_power_button_work
	.comm	_pwron_irq,4,2                  ## @pwron_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"Can't get IRQ for pwron: %d\n"

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

	.no_dead_strip	_palmas_pwron_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_pwron_probe
_palmas_pwron_probe:                    ; @palmas_pwron_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	x20, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_palmas_pwron_params_ofinit
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
	str	x20, [x0, #16]
Lloh7:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	w23, [sp, #8]
Lloh13:
	adrp	x24, _PALMAS_LPK_TIME_MASK@GOTPAGE
Lloh14:
	ldr	x24, [x24, _PALMAS_LPK_TIME_MASK@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	___ffs
	lsl	w23, w23, w0
	ldr	w25, [sp, #12]
Lloh15:
	adrp	x26, _PALMAS_PWRON_DEBOUNCE_MASK@GOTPAGE
Lloh16:
	ldr	x26, [x26, _PALMAS_PWRON_DEBOUNCE_MASK@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	___ffs
	lsl	w8, w25, w0
	orr	w4, w8, w23
Lloh17:
	adrp	x8, _PALMAS_PMU_CONTROL_BASE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PALMAS_PMU_CONTROL_BASE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _PALMAS_LONG_PRESS_KEY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PALMAS_LONG_PRESS_KEY@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w3, w9, w8
	mov	x0, x22
	bl	_palmas_update_bits
	cbz	w0, LBB0_6
; %bb.3:
	mov	x23, x0
	str	x23, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_11
LBB0_4:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_5:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_6:
	stp	x21, x22, [x19, #8]
	add	x22, x19, #4
Lloh33:
	adrp	x8, _palmas_power_button_work@GOTPAGE
Lloh34:
	ldr	x8, [x8, _palmas_power_button_work@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_DELAYED_WORK
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	str	w0, [x19]
Lloh36:
	adrp	x8, _pwron_irq@GOTPAGE
Lloh37:
	ldr	x8, [x8, _pwron_irq@GOTPAGEOFF]
Lloh38:
	ldr	w24, [x8]
Lloh39:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh45:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w25, w8, w9
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x23
	mov	x1, #0
	mov	x2, x24
	mov	x3, x25
	mov	x5, x19
	bl	_request_threaded_irq
	cbz	w0, LBB0_8
; %bb.7:
	mov	x23, x0
	str	x23, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.9:
	str	x23, [sp]
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x22
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_10:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_11:
	mov	x0, x21
	bl	_input_free_device
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x23
	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_14:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate power button\n"

l_.str.1:                               ; @.str.1
	.asciz	"palmas_pwron"

l_.str.2:                               ; @.str.2
	.asciz	"palmas_pwron/input0"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_PALMAS_LPK_TIME_MASK,4,2       ; @PALMAS_LPK_TIME_MASK
	.comm	_PALMAS_PWRON_DEBOUNCE_MASK,4,2 ; @PALMAS_PWRON_DEBOUNCE_MASK
	.comm	_PALMAS_PMU_CONTROL_BASE,4,2    ; @PALMAS_PMU_CONTROL_BASE
	.comm	_PALMAS_LONG_PRESS_KEY,4,2      ; @PALMAS_LONG_PRESS_KEY
l_.str.3:                               ; @.str.3
	.asciz	"LONG_PRESS_KEY_UPDATE failed: %d\n"

	.comm	_palmas_power_button_work,4,2   ; @palmas_power_button_work
	.comm	_pwron_irq,4,2                  ; @pwron_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"Can't get IRQ for pwron: %d\n"

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

	.no_dead_strip	_palmas_pwron_probe
.subsections_via_symbols
