	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_axp20x_device_probe            ## -- Begin function axp20x_device_probe
	.p2align	4, 0x90
_axp20x_device_probe:                   ## @axp20x_device_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_AXP806_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	44(%rbx), %edi
	movq	_AXP806_REG_ADDR_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	callq	_regmap_write
LBB0_7:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	8(%rbx), %edx
	movl	44(%rbx), %edi
	movl	28(%rbx), %esi
	movl	40(%rbx), %r8d
	leaq	24(%rbx), %r9
	movl	$-1, %ecx
	callq	_regmap_add_irq_chip
	movq	16(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movl	32(%rbx), %ecx
	movl	36(%rbx), %edx
	movq	$0, (%rsp)
	movl	$-1, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_regmap_del_irq_chip
	jmp	LBB0_14
LBB0_11:
	movq	_pm_power_off@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	_axp20x_pm_power_off@GOTPCREL(%rip), %rcx
	movq	%rbx, (%rcx)
	movq	_axp20x_power_off@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_13:
	movq	16(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP806_ID,8,3                  ## @AXP806_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x-powers,master-mode"

L_.str.1:                               ## @.str.1
	.asciz	"x-powers,self-working-mode"

	.comm	_AXP806_REG_ADDR_EXT,4,2        ## @AXP806_REG_ADDR_EXT
	.comm	_AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE,4,2 ## @AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE
	.comm	_AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE,4,2 ## @AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"failed to add irq chip: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to add MFD devices: %d\n"

	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_axp20x_pm_power_off,8,3        ## @axp20x_pm_power_off
	.comm	_axp20x_power_off,8,3           ## @axp20x_power_off
L_.str.4:                               ## @.str.4
	.asciz	"AXP20X driver loaded\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_axp20x_device_probe            ; -- Begin function axp20x_device_probe
	.p2align	2
_axp20x_device_probe:                   ; @axp20x_device_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AXP806_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXP806_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
Lloh5:
	adrp	x20, _AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
Lloh9:
	adrp	x8, _AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x20, x8, x20, eq
LBB0_3:
	ldr	w0, [x19, #44]
Lloh11:
	adrp	x8, _AXP806_REG_ADDR_EXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AXP806_REG_ADDR_EXT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
	bl	_regmap_write
LBB0_4:
	ldr	w1, [x19, #28]
Lloh14:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w2, w8, w9
	ldp	w4, w0, [x19, #40]
	add	x5, x19, #24
	mov	w3, #-1
	bl	_regmap_add_irq_chip
	mov	x20, x0
	ldr	x0, [x19, #16]
	cbz	w20, LBB0_6
; %bb.5:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_11
LBB0_6:
	ldp	w3, w2, [x19, #32]
	mov	w1, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	ldp	w1, w0, [x19, #24]
	bl	_regmap_del_irq_chip
	b	LBB0_11
LBB0_8:
Lloh24:
	adrp	x8, _pm_power_off@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pm_power_off@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_10
; %bb.9:
Lloh26:
	adrp	x9, _axp20x_pm_power_off@GOTPAGE
Lloh27:
	ldr	x9, [x9, _axp20x_pm_power_off@GOTPAGEOFF]
Lloh28:
	str	x19, [x9]
Lloh29:
	adrp	x9, _axp20x_power_off@GOTPAGE
Lloh30:
	ldr	x9, [x9, _axp20x_power_off@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_10:
	ldr	x0, [x19, #16]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP806_ID,8,3                  ; @AXP806_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x-powers,master-mode"

l_.str.1:                               ; @.str.1
	.asciz	"x-powers,self-working-mode"

	.comm	_AXP806_REG_ADDR_EXT,4,2        ; @AXP806_REG_ADDR_EXT
	.comm	_AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE,4,2 ; @AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE
	.comm	_AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE,4,2 ; @AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"failed to add irq chip: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to add MFD devices: %d\n"

	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_axp20x_pm_power_off,8,3        ; @axp20x_pm_power_off
	.comm	_axp20x_power_off,8,3           ; @axp20x_power_off
l_.str.4:                               ; @.str.4
	.asciz	"AXP20X driver loaded\n"

.subsections_via_symbols
