	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9030_battery_charger_init
_da9030_battery_charger_init:           ## @da9030_battery_charger_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movb	4(%rdi), %al
	movb	%al, -12(%rbp)
	movb	%al, -13(%rbp)
	movb	5(%rdi), %al
	movb	%al, -11(%rbp)
	movb	6(%rdi), %al
	movb	%al, -10(%rbp)
	movb	7(%rdi), %al
	movb	%al, -9(%rbp)
	movl	(%rdi), %edi
	movq	_DA9030_VBATMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-13(%rbp), %rcx
	movl	$5, %edx
	callq	_da903x_writes
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movq	_DA9030_ADC_MAN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9030_ADC_LDO_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	_DA9030_ADC_TBATREF_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_da903x_write
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_DA9030_ADC_TBAT_ENABLE@GOTPCREL(%rip), %rax
	movq	_DA9030_ADC_VBAT_IN_TXON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_DA9030_ADC_VCH_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %edi
	movq	_DA9030_ADC_ICH_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_DA9030_ADC_AUTO_CONTROL@GOTPCREL(%rip), %rax
	movq	_DA9030_ADC_VBAT_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_DA9030_ADC_AUTO_SLEEP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_da903x_write
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9030_VBATMON,4,2             ## @DA9030_VBATMON
	.comm	_DA9030_ADC_MAN_CONTROL,4,2     ## @DA9030_ADC_MAN_CONTROL
	.comm	_DA9030_ADC_LDO_INT_ENABLE,4,2  ## @DA9030_ADC_LDO_INT_ENABLE
	.comm	_DA9030_ADC_TBATREF_ENABLE,4,2  ## @DA9030_ADC_TBATREF_ENABLE
	.comm	_DA9030_ADC_AUTO_CONTROL,4,2    ## @DA9030_ADC_AUTO_CONTROL
	.comm	_DA9030_ADC_TBAT_ENABLE,4,2     ## @DA9030_ADC_TBAT_ENABLE
	.comm	_DA9030_ADC_VBAT_IN_TXON,4,2    ## @DA9030_ADC_VBAT_IN_TXON
	.comm	_DA9030_ADC_VCH_ENABLE,4,2      ## @DA9030_ADC_VCH_ENABLE
	.comm	_DA9030_ADC_ICH_ENABLE,4,2      ## @DA9030_ADC_ICH_ENABLE
	.comm	_DA9030_ADC_VBAT_ENABLE,4,2     ## @DA9030_ADC_VBAT_ENABLE
	.comm	_DA9030_ADC_AUTO_SLEEP_ENABLE,4,2 ## @DA9030_ADC_AUTO_SLEEP_ENABLE
	.no_dead_strip	_da9030_battery_charger_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9030_battery_charger_init
_da9030_battery_charger_init:           ; @da9030_battery_charger_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldrb	w8, [x0, #4]
	strb	w8, [sp, #12]
	strb	w8, [sp, #11]
	ldrb	w8, [x0, #5]
	strb	w8, [sp, #13]
	ldrh	w8, [x0, #6]
	sturh	w8, [sp, #14]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DA9030_VBATMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9030_VBATMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #11
	mov	w2, #5
	bl	_da903x_writes
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _DA9030_ADC_MAN_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9030_ADC_MAN_CONTROL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DA9030_ADC_LDO_INT_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DA9030_ADC_LDO_INT_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _DA9030_ADC_TBATREF_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DA9030_ADC_TBATREF_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_da903x_write
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _DA9030_ADC_AUTO_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9030_ADC_AUTO_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DA9030_ADC_TBAT_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DA9030_ADC_TBAT_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _DA9030_ADC_VBAT_IN_TXON@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DA9030_ADC_VBAT_IN_TXON@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _DA9030_ADC_VCH_ENABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DA9030_ADC_VCH_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _DA9030_ADC_ICH_ENABLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DA9030_ADC_ICH_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _DA9030_ADC_VBAT_ENABLE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DA9030_ADC_VBAT_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _DA9030_ADC_AUTO_SLEEP_ENABLE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DA9030_ADC_AUTO_SLEEP_ENABLE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_da903x_write
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9030_VBATMON,4,2             ; @DA9030_VBATMON
	.comm	_DA9030_ADC_MAN_CONTROL,4,2     ; @DA9030_ADC_MAN_CONTROL
	.comm	_DA9030_ADC_LDO_INT_ENABLE,4,2  ; @DA9030_ADC_LDO_INT_ENABLE
	.comm	_DA9030_ADC_TBATREF_ENABLE,4,2  ; @DA9030_ADC_TBATREF_ENABLE
	.comm	_DA9030_ADC_AUTO_CONTROL,4,2    ; @DA9030_ADC_AUTO_CONTROL
	.comm	_DA9030_ADC_TBAT_ENABLE,4,2     ; @DA9030_ADC_TBAT_ENABLE
	.comm	_DA9030_ADC_VBAT_IN_TXON,4,2    ; @DA9030_ADC_VBAT_IN_TXON
	.comm	_DA9030_ADC_VCH_ENABLE,4,2      ; @DA9030_ADC_VCH_ENABLE
	.comm	_DA9030_ADC_ICH_ENABLE,4,2      ; @DA9030_ADC_ICH_ENABLE
	.comm	_DA9030_ADC_VBAT_ENABLE,4,2     ; @DA9030_ADC_VBAT_ENABLE
	.comm	_DA9030_ADC_AUTO_SLEEP_ENABLE,4,2 ; @DA9030_ADC_AUTO_SLEEP_ENABLE
	.no_dead_strip	_da9030_battery_charger_init
.subsections_via_symbols
