	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc13783_pwrbutton_probe
_mc13783_pwrbutton_probe:               ## @mc13783_pwrbutton_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, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r15
	movl	(%r13), %eax
	andl	$3, %eax
	movq	_MC13783_POWER_CONTROL_2_ON1BDBNC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	4(%r13), %edx
	andl	$3, %edx
	movq	_MC13783_POWER_CONTROL_2_ON2BDBNC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_MC13783_POWER_CONTROL_2_ON3BDBNC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rbx, %rdi
	movl	8(%r13), %ebx
	andl	$3, %ebx
	shll	%cl, %ebx
	orl	%eax, %edx
	orl	%edx, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, 24(%r15)
	movq	%rdi, 16(%r15)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mc13xxx_lock
	movl	(%r13), %r12d
	movq	_MC13783_BUTTON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.4:
	movq	16(%r13), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	16(%r13), %rdi
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	48(%rax), %esi
	callq	___set_bit
	movl	(%r13), %r12d
LBB0_6:
	movq	_MC13783_BUTTON_POL_INVERT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_MC13783_PWRB_B1_POL_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
LBB0_8:
	movq	_MC13783_BUTTON_RESET_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_MC13783_POWER_CONTROL_2_ON1BRSTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_MC13783_IRQ_ONOFD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_button_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_mc13xxx_irq_request
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_43
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_43
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_42
LBB0_13:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	andl	%r12d, %ecx
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	cmovel	%ecx, %eax
	orl	%eax, %ebx
	movq	_MC13783_BUTTON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movl	4(%r13), %r12d
	testl	%r12d, %eax
	je	LBB0_21
## %bb.15:
	movq	24(%r13), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r13), %rdi
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	48(%rax), %esi
	callq	___set_bit
	movl	4(%r13), %r12d
LBB0_17:
	movq	_MC13783_BUTTON_POL_INVERT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.18:
	movq	_MC13783_PWRB_B2_POL_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
LBB0_19:
	movq	_MC13783_BUTTON_RESET_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_MC13783_POWER_CONTROL_2_ON2BRSTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_MC13783_IRQ_ONOFD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_button_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_mc13xxx_irq_request
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_MC13783_BUTTON_ENABLE@GOTPCREL(%rip), %rbx
	jmp	LBB0_38
LBB0_21:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_22:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	andl	%r12d, %ecx
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	cmovel	%ecx, %eax
	orl	%eax, %ebx
	movq	_MC13783_BUTTON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_23:
	movl	8(%r13), %edx
	testl	%edx, %eax
	je	LBB0_33
## %bb.24:
	movq	32(%r13), %rax
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	32(%r13), %rdi
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_26
## %bb.25:
	movl	48(%r12), %esi
	callq	___set_bit
	movl	8(%r13), %edx
LBB0_26:
	movq	_MC13783_BUTTON_POL_INVERT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_28
## %bb.27:
	movq	_MC13783_PWRB_B3_POL_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
LBB0_28:
	movq	_MC13783_BUTTON_RESET_EN@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	je	LBB0_30
## %bb.29:
	movq	_MC13783_POWER_CONTROL_2_ON3BRSTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_30:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	_MC13783_IRQ_ONOFD3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_button_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_mc13xxx_irq_request
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_MC13783_BUTTON_ENABLE@GOTPCREL(%rip), %rbx
	jmp	LBB0_36
LBB0_32:
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_33:
	movq	_MC13783_REG_POWER_CONTROL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1022, %edx                     ## imm = 0x3FE
	movl	%ebx, %ecx
	movq	%rdi, %rbx
	callq	_mc13xxx_reg_rmw
	movq	%rbx, %rdi
	callq	_mc13xxx_unlock
	leaq	L_.str.7(%rip), %rax
	movq	%rax, (%r12)
	leaq	L_.str.8(%rip), %rax
	movq	%rax, 8(%r12)
	movq	%r14, 40(%r12)
	movq	(%r15), %rdi
	movq	%rdi, 16(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 32(%r12)
	movl	$8, 24(%r12)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	28(%r12), %esi
	callq	___set_bit
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_44
## %bb.34:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_mc13xxx_lock
	movq	%rbx, %r14
	movq	_MC13783_BUTTON_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 8(%r13)
	je	LBB0_36
## %bb.35:
	movq	_MC13783_IRQ_ONOFD3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mc13xxx_irq_free
LBB0_36:
	movl	(%rbx), %eax
	testl	%eax, 4(%r13)
	je	LBB0_38
## %bb.37:
	movq	_MC13783_IRQ_ONOFD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mc13xxx_irq_free
LBB0_38:
	movl	(%rbx), %eax
	testl	%eax, (%r13)
	je	LBB0_40
## %bb.39:
	movq	_MC13783_IRQ_ONOFD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mc13xxx_irq_free
	jmp	LBB0_41
LBB0_40:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_41:
	movq	%r14, %rdi
	callq	_mc13xxx_unlock
	movq	%rbx, %rdi
	callq	_kfree
LBB0_42:
	movq	%r12, %rdi
	callq	_input_free_device
LBB0_43:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	%r15, %rsi
	movq	%r14, %rdi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing platform data\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate power button\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MC13783_POWER_CONTROL_2_ON1BDBNC,4,2 ## @MC13783_POWER_CONTROL_2_ON1BDBNC
	.comm	_MC13783_POWER_CONTROL_2_ON2BDBNC,4,2 ## @MC13783_POWER_CONTROL_2_ON2BDBNC
	.comm	_MC13783_POWER_CONTROL_2_ON3BDBNC,4,2 ## @MC13783_POWER_CONTROL_2_ON3BDBNC
	.comm	_MC13783_BUTTON_ENABLE,4,2      ## @MC13783_BUTTON_ENABLE
	.comm	_KEY_RESERVED,8,3               ## @KEY_RESERVED
	.comm	_MC13783_BUTTON_POL_INVERT,4,2  ## @MC13783_BUTTON_POL_INVERT
	.comm	_MC13783_PWRB_B1_POL_INVERT,4,2 ## @MC13783_PWRB_B1_POL_INVERT
	.comm	_MC13783_BUTTON_RESET_EN,4,2    ## @MC13783_BUTTON_RESET_EN
	.comm	_MC13783_POWER_CONTROL_2_ON1BRSTEN,4,2 ## @MC13783_POWER_CONTROL_2_ON1BRSTEN
	.comm	_MC13783_IRQ_ONOFD1,4,2         ## @MC13783_IRQ_ONOFD1
	.comm	_button_irq,4,2                 ## @button_irq
L_.str.2:                               ## @.str.2
	.asciz	"b1on"

L_.str.3:                               ## @.str.3
	.asciz	"Can't request irq\n"

	.comm	_MC13783_PWRB_B2_POL_INVERT,4,2 ## @MC13783_PWRB_B2_POL_INVERT
	.comm	_MC13783_POWER_CONTROL_2_ON2BRSTEN,4,2 ## @MC13783_POWER_CONTROL_2_ON2BRSTEN
	.comm	_MC13783_IRQ_ONOFD2,4,2         ## @MC13783_IRQ_ONOFD2
L_.str.4:                               ## @.str.4
	.asciz	"b2on"

	.comm	_MC13783_PWRB_B3_POL_INVERT,4,2 ## @MC13783_PWRB_B3_POL_INVERT
	.comm	_MC13783_POWER_CONTROL_2_ON3BRSTEN,4,2 ## @MC13783_POWER_CONTROL_2_ON3BRSTEN
	.comm	_MC13783_IRQ_ONOFD3,4,2         ## @MC13783_IRQ_ONOFD3
L_.str.5:                               ## @.str.5
	.asciz	"b3on"

L_.str.6:                               ## @.str.6
	.asciz	"Can't request irq: %d\n"

	.comm	_MC13783_REG_POWER_CONTROL_2,4,2 ## @MC13783_REG_POWER_CONTROL_2
L_.str.7:                               ## @.str.7
	.asciz	"mc13783_pwrbutton"

L_.str.8:                               ## @.str.8
	.asciz	"mc13783_pwrbutton/input0"

	.comm	_EV_KEY,8,3                     ## @EV_KEY
L_.str.9:                               ## @.str.9
	.asciz	"Can't register power button: %d\n"

	.no_dead_strip	_mc13783_pwrbutton_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc13783_pwrbutton_probe
_mc13783_pwrbutton_probe:               ; @mc13783_pwrbutton_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x23
	bl	_dev_get_platdata
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, 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_13
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x8, _MC13783_POWER_CONTROL_2_ON1BDBNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC13783_POWER_CONTROL_2_ON1BDBNC@GOTPAGEOFF]
	ldp	w9, w10, [x22]
	and	w9, w9, #0x3
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	and	w9, w10, #0x3
Lloh6:
	adrp	x10, _MC13783_POWER_CONTROL_2_ON2BDBNC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MC13783_POWER_CONTROL_2_ON2BDBNC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	ldr	w9, [x22, #8]
Lloh9:
	adrp	x10, _MC13783_POWER_CONTROL_2_ON3BDBNC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MC13783_POWER_CONTROL_2_ON3BDBNC@GOTPAGEOFF]
	and	w9, w9, #0x3
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w25, w8, w9
	stp	x20, x19, [x0, #16]
	mov	x0, x20
	bl	_mc13xxx_lock
	ldr	w27, [x22]
Lloh12:
	adrp	x24, _MC13783_BUTTON_ENABLE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MC13783_BUTTON_ENABLE@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w27
	b.eq	LBB0_15
; %bb.4:
	ldr	x8, [x22, #16]
	ldr	x9, [x21]
	str	x8, [x9]
	ldr	x0, [x22, #16]
Lloh14:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x19, #48]
	bl	___set_bit
	ldr	w27, [x22]
LBB0_6:
	mov	x24, x25
Lloh17:
	adrp	x8, _MC13783_BUTTON_POL_INVERT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MC13783_BUTTON_POL_INVERT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _MC13783_PWRB_B1_POL_INVERT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MC13783_PWRB_B1_POL_INVERT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
LBB0_8:
Lloh23:
	adrp	x8, _MC13783_BUTTON_RESET_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MC13783_BUTTON_RESET_EN@GOTPAGEOFF]
Lloh25:
	ldr	w28, [x8]
Lloh26:
	adrp	x8, _MC13783_POWER_CONTROL_2_ON1BRSTEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MC13783_POWER_CONTROL_2_ON1BRSTEN@GOTPAGEOFF]
Lloh28:
	ldr	w26, [x8]
Lloh29:
	adrp	x8, _MC13783_IRQ_ONOFD1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MC13783_IRQ_ONOFD1@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _button_irq@GOTPAGE
Lloh33:
	ldr	x8, [x8, _button_irq@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x3, l_.str.2@PAGE
Lloh36:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x4, x21
	bl	_mc13xxx_irq_request
	cbz	w0, LBB0_14
; %bb.9:
	mov	x25, x0
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
	b	LBB0_38
LBB0_10:
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
Lloh41:
	adrp	x8, _ENODEV@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_40
LBB0_13:
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w25, w8
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
	b	LBB0_39
LBB0_14:
	tst	w28, w27
	csel	w8, wzr, w26, eq
	mov	x25, x24
	orr	w25, w8, w24
Lloh52:
	adrp	x24, _MC13783_BUTTON_ENABLE@GOTPAGE
Lloh53:
	ldr	x24, [x24, _MC13783_BUTTON_ENABLE@GOTPAGEOFF]
	ldr	w9, [x24]
LBB0_15:
	ldr	w27, [x22, #4]
	tst	w9, w27
	b.eq	LBB0_23
; %bb.16:
	ldr	x8, [x22, #24]
	ldr	x9, [x21]
	str	x8, [x9, #8]
	ldr	x0, [x22, #24]
Lloh54:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh55:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.17:
	ldr	w1, [x19, #48]
	bl	___set_bit
	ldr	w27, [x22, #4]
LBB0_18:
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
Lloh57:
	adrp	x8, _MC13783_BUTTON_POL_INVERT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MC13783_BUTTON_POL_INVERT@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_20
; %bb.19:
Lloh60:
	adrp	x8, _MC13783_PWRB_B2_POL_INVERT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MC13783_PWRB_B2_POL_INVERT@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
LBB0_20:
Lloh63:
	adrp	x8, _MC13783_BUTTON_RESET_EN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _MC13783_BUTTON_RESET_EN@GOTPAGEOFF]
Lloh65:
	ldr	w26, [x8]
Lloh66:
	adrp	x8, _MC13783_POWER_CONTROL_2_ON2BRSTEN@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MC13783_POWER_CONTROL_2_ON2BRSTEN@GOTPAGEOFF]
Lloh68:
	ldr	w28, [x8]
Lloh69:
	adrp	x8, _MC13783_IRQ_ONOFD2@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MC13783_IRQ_ONOFD2@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _button_irq@GOTPAGE
Lloh73:
	ldr	x8, [x8, _button_irq@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
Lloh75:
	adrp	x3, l_.str.4@PAGE
Lloh76:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x4, x21
	bl	_mc13xxx_irq_request
	cbz	w0, LBB0_22
; %bb.21:
	mov	x25, x0
Lloh77:
	adrp	x1, l_.str.3@PAGE
Lloh78:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
	b	LBB0_36
LBB0_22:
	tst	w26, w27
	csel	w8, wzr, w28, eq
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	orr	w25, w8, w25
	ldr	w9, [x24]
LBB0_23:
	ldr	w8, [x22, #8]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.24:
	ldr	x9, [x22, #32]
	ldr	x10, [x21]
	str	x9, [x10, #16]
	ldr	x0, [x22, #32]
Lloh79:
	adrp	x9, _KEY_RESERVED@GOTPAGE
Lloh80:
	ldr	x9, [x9, _KEY_RESERVED@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_26
; %bb.25:
	ldr	w1, [x19, #48]
	bl	___set_bit
	ldr	w8, [x22, #8]
LBB0_26:
	mov	x27, x25
Lloh82:
	adrp	x9, _MC13783_BUTTON_POL_INVERT@GOTPAGE
Lloh83:
	ldr	x9, [x9, _MC13783_BUTTON_POL_INVERT@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
Lloh85:
	adrp	x9, _MC13783_PWRB_B3_POL_INVERT@GOTPAGE
Lloh86:
	ldr	x9, [x9, _MC13783_PWRB_B3_POL_INVERT@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	ldr	w10, [x21, #8]
	orr	w9, w10, w9
	str	w9, [x21, #8]
LBB0_28:
Lloh88:
	adrp	x9, _MC13783_BUTTON_RESET_EN@GOTPAGE
Lloh89:
	ldr	x9, [x9, _MC13783_BUTTON_RESET_EN@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
Lloh91:
	adrp	x10, _MC13783_POWER_CONTROL_2_ON3BRSTEN@GOTPAGE
Lloh92:
	ldr	x10, [x10, _MC13783_POWER_CONTROL_2_ON3BRSTEN@GOTPAGEOFF]
Lloh93:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w26, wzr, w10, eq
Lloh94:
	adrp	x8, _MC13783_IRQ_ONOFD3@GOTPAGE
Lloh95:
	ldr	x8, [x8, _MC13783_IRQ_ONOFD3@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
Lloh97:
	adrp	x8, _button_irq@GOTPAGE
Lloh98:
	ldr	x8, [x8, _button_irq@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
Lloh100:
	adrp	x3, l_.str.5@PAGE
Lloh101:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x4, x21
	bl	_mc13xxx_irq_request
	cbz	w0, LBB0_30
; %bb.29:
	mov	x25, x0
	str	x25, [sp]
Lloh102:
	adrp	x1, l_.str.6@PAGE
Lloh103:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	b	LBB0_34
LBB0_30:
	mov	x25, x27
	orr	w25, w26, w27
LBB0_31:
Lloh104:
	adrp	x8, _MC13783_REG_POWER_CONTROL_2@GOTPAGE
Lloh105:
	ldr	x8, [x8, _MC13783_REG_POWER_CONTROL_2@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1022
	mov	x3, x25
	bl	_mc13xxx_reg_rmw
	mov	x0, x20
	bl	_mc13xxx_unlock
Lloh107:
	adrp	x8, l_.str.7@PAGE
Lloh108:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh109:
	adrp	x9, l_.str.8@PAGE
Lloh110:
	add	x9, x9, l_.str.8@PAGEOFF
	stp	x8, x9, [x19]
	str	x23, [x19, #40]
	ldr	x0, [x21]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	str	w0, [x19, #32]
	mov	w8, #8
	str	w8, [x19, #24]
Lloh111:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh112:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh113:
	ldr	x0, [x8]
	ldr	w1, [x19, #28]
	bl	___set_bit
	mov	x0, x19
	bl	_input_register_device
	mov	x25, x0
	cbz	w0, LBB0_41
; %bb.32:
	str	x25, [sp]
Lloh114:
	adrp	x1, l_.str.9@PAGE
Lloh115:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
	mov	x0, x20
	bl	_mc13xxx_lock
	ldr	w8, [x22, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:
Lloh116:
	adrp	x8, _MC13783_IRQ_ONOFD3@GOTPAGE
Lloh117:
	ldr	x8, [x8, _MC13783_IRQ_ONOFD3@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_mc13xxx_irq_free
LBB0_34:
	ldr	w8, [x22, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
Lloh119:
	adrp	x8, _MC13783_IRQ_ONOFD2@GOTPAGE
Lloh120:
	ldr	x8, [x8, _MC13783_IRQ_ONOFD2@GOTPAGEOFF]
Lloh121:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_mc13xxx_irq_free
LBB0_36:
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.37:
Lloh122:
	adrp	x8, _MC13783_IRQ_ONOFD1@GOTPAGE
Lloh123:
	ldr	x8, [x8, _MC13783_IRQ_ONOFD1@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_mc13xxx_irq_free
LBB0_38:
	mov	x0, x20
	bl	_mc13xxx_unlock
	mov	x0, x21
	bl	_kfree
LBB0_39:
	mov	x0, x19
	bl	_input_free_device
LBB0_40:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_41:
	mov	x0, x23
	mov	x1, x21
	bl	_platform_set_drvdata
	b	LBB0_40
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing platform data\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate power button\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MC13783_POWER_CONTROL_2_ON1BDBNC,4,2 ; @MC13783_POWER_CONTROL_2_ON1BDBNC
	.comm	_MC13783_POWER_CONTROL_2_ON2BDBNC,4,2 ; @MC13783_POWER_CONTROL_2_ON2BDBNC
	.comm	_MC13783_POWER_CONTROL_2_ON3BDBNC,4,2 ; @MC13783_POWER_CONTROL_2_ON3BDBNC
	.comm	_MC13783_BUTTON_ENABLE,4,2      ; @MC13783_BUTTON_ENABLE
	.comm	_KEY_RESERVED,8,3               ; @KEY_RESERVED
	.comm	_MC13783_BUTTON_POL_INVERT,4,2  ; @MC13783_BUTTON_POL_INVERT
	.comm	_MC13783_PWRB_B1_POL_INVERT,4,2 ; @MC13783_PWRB_B1_POL_INVERT
	.comm	_MC13783_BUTTON_RESET_EN,4,2    ; @MC13783_BUTTON_RESET_EN
	.comm	_MC13783_POWER_CONTROL_2_ON1BRSTEN,4,2 ; @MC13783_POWER_CONTROL_2_ON1BRSTEN
	.comm	_MC13783_IRQ_ONOFD1,4,2         ; @MC13783_IRQ_ONOFD1
	.comm	_button_irq,4,2                 ; @button_irq
l_.str.2:                               ; @.str.2
	.asciz	"b1on"

l_.str.3:                               ; @.str.3
	.asciz	"Can't request irq\n"

	.comm	_MC13783_PWRB_B2_POL_INVERT,4,2 ; @MC13783_PWRB_B2_POL_INVERT
	.comm	_MC13783_POWER_CONTROL_2_ON2BRSTEN,4,2 ; @MC13783_POWER_CONTROL_2_ON2BRSTEN
	.comm	_MC13783_IRQ_ONOFD2,4,2         ; @MC13783_IRQ_ONOFD2
l_.str.4:                               ; @.str.4
	.asciz	"b2on"

	.comm	_MC13783_PWRB_B3_POL_INVERT,4,2 ; @MC13783_PWRB_B3_POL_INVERT
	.comm	_MC13783_POWER_CONTROL_2_ON3BRSTEN,4,2 ; @MC13783_POWER_CONTROL_2_ON3BRSTEN
	.comm	_MC13783_IRQ_ONOFD3,4,2         ; @MC13783_IRQ_ONOFD3
l_.str.5:                               ; @.str.5
	.asciz	"b3on"

l_.str.6:                               ; @.str.6
	.asciz	"Can't request irq: %d\n"

	.comm	_MC13783_REG_POWER_CONTROL_2,4,2 ; @MC13783_REG_POWER_CONTROL_2
l_.str.7:                               ; @.str.7
	.asciz	"mc13783_pwrbutton"

l_.str.8:                               ; @.str.8
	.asciz	"mc13783_pwrbutton/input0"

	.comm	_EV_KEY,8,3                     ; @EV_KEY
l_.str.9:                               ; @.str.9
	.asciz	"Can't register power button: %d\n"

	.no_dead_strip	_mc13783_pwrbutton_probe
.subsections_via_symbols
