	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_power_init
_device_power_init:                     ## @device_power_init
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	_power_devs@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movl	$4, (%rcx)
	movq	_battery_resources@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	(%r15), %rdx
	movq	%rax, 24(%rdx)
	movq	(%r12), %r8
	movq	%r8, 16(%rdx)
	movl	(%rbx), %edi
	movl	4(%rbx), %r9d
	movq	$0, (%rsp)
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movq	8(%r14), %rax
	movq	(%r15), %rcx
	movq	%rax, 40(%rcx)
	movl	$4, 32(%rcx)
	movq	_charger_resources@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	(%r15), %rcx
	leaq	32(%rcx), %rdx
	movq	%rax, 56(%rcx)
	movq	(%r12), %r8
	movq	%r8, 48(%rcx)
	movl	(%rbx), %edi
	movl	4(%rbx), %r9d
	movq	$0, (%rsp)
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movq	(%r15), %rax
	leaq	64(%rax), %rdx
	movq	_preg_init_data@GOTPCREL(%rip), %rcx
	movq	%rcx, 72(%rax)
	movl	$4, 64(%rax)
	movl	(%rbx), %edi
	movl	4(%rbx), %r9d
	movq	$0, (%rsp)
	xorl	%esi, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_chg_desc_regulator_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rdi, 8(%rax)
	callq	_ARRAY_SIZE
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	leaq	96(%rax), %rdx
	movq	%rcx, 104(%rax)
	movl	$16, 96(%rax)
	movl	(%rbx), %edi
	movl	4(%rbx), %r9d
	movq	$0, (%rsp)
	xorl	%esi, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_10
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_power_devs,8,3                 ## @power_devs
	.comm	_battery_resources,8,3          ## @battery_resources
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add battery subdev\n"

	.comm	_charger_resources,8,3          ## @charger_resources
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add charger subdev\n"

	.comm	_preg_init_data,16,3            ## @preg_init_data
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add preg subdev\n"

	.comm	_chg_desc_regulator_data,8,3    ## @chg_desc_regulator_data
L_.str.3:                               ## @.str.3
	.asciz	"Failed to add chg-manager subdev\n"

	.no_dead_strip	_device_power_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_power_init
_device_power_init:                     ; @device_power_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x21, _power_devs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _power_devs@GOTPAGEOFF]
	ldr	x9, [x21]
	str	x8, [x9, #8]
	mov	w22, #4
	str	w22, [x9]
Lloh2:
	adrp	x23, _battery_resources@GOTPAGE
Lloh3:
	ldr	x23, [x23, _battery_resources@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	ldr	x2, [x21]
	ldr	x4, [x23]
	stp	x4, x0, [x2, #16]
	ldp	w0, w5, [x19]
	mov	w1, #0
	mov	w3, #1
	mov	x6, #0
	bl	_mfd_add_devices
	tbz	w0, #31, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	str	x8, [x9, #40]
	str	w22, [x9, #32]
Lloh6:
	adrp	x22, _charger_resources@GOTPAGE
Lloh7:
	ldr	x22, [x22, _charger_resources@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	ldr	x8, [x21]
	add	x2, x8, #32
	ldr	x4, [x22]
	stp	x4, x0, [x8, #48]
	ldp	w0, w5, [x19]
	mov	w1, #0
	mov	w3, #1
	mov	x6, #0
	bl	_mfd_add_devices
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_5:
	ldr	x2, [x21]
Lloh10:
	adrp	x8, _preg_init_data@GOTPAGE
Lloh11:
	ldr	x8, [x8, _preg_init_data@GOTPAGEOFF]
	mov	w9, #4
	str	w9, [x2, #64]!
	str	x8, [x2, #8]
	ldp	w0, w5, [x19]
	mov	w1, #0
	mov	w3, #1
	mov	x4, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x8, [x20]
	cbz	x8, LBB0_9
LBB0_8:
Lloh14:
	adrp	x9, _chg_desc_regulator_data@GOTPAGE
Lloh15:
	ldr	x9, [x9, _chg_desc_regulator_data@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x9]
	str	x0, [x8, #8]
	bl	_ARRAY_SIZE
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x2, [x21]
	mov	w9, #16
	str	w9, [x2, #96]!
	str	x8, [x2, #8]
	ldp	w0, w5, [x19]
	mov	w1, #0
	mov	w3, #1
	mov	x4, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_10
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_power_devs,8,3                 ; @power_devs
	.comm	_battery_resources,8,3          ; @battery_resources
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add battery subdev\n"

	.comm	_charger_resources,8,3          ; @charger_resources
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add charger subdev\n"

	.comm	_preg_init_data,16,3            ; @preg_init_data
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add preg subdev\n"

	.comm	_chg_desc_regulator_data,8,3    ; @chg_desc_regulator_data
l_.str.3:                               ; @.str.3
	.asciz	"Failed to add chg-manager subdev\n"

	.no_dead_strip	_device_power_init
.subsections_via_symbols
