	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq2415x_set_defaults
_bq2415x_set_defaults:                  ## @bq2415x_set_defaults
	.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
	movq	_BQ2415X_BOOST_MODE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bq2415x_exec_command
	movq	_BQ2415X_CHARGER_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_exec_command
	movq	_BQ2415X_CHARGE_TERMINATION_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_exec_command
	movq	_current_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_set_default_value
	movq	_weak_battery_voltage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_set_default_value
	movq	_battery_regulation_voltage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_set_default_value
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	_charge_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_set_default_value
	movq	_termination_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_set_default_value
	movq	_BQ2415X_CHARGE_TERMINATION_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_exec_command
LBB0_2:
	movq	_BQ2415X_CHARGER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bq2415x_exec_command
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ2415X_BOOST_MODE_DISABLE,4,2 ## @BQ2415X_BOOST_MODE_DISABLE
	.comm	_BQ2415X_CHARGER_DISABLE,4,2    ## @BQ2415X_CHARGER_DISABLE
	.comm	_BQ2415X_CHARGE_TERMINATION_DISABLE,4,2 ## @BQ2415X_CHARGE_TERMINATION_DISABLE
	.comm	_current_limit,4,2              ## @current_limit
	.comm	_weak_battery_voltage,4,2       ## @weak_battery_voltage
	.comm	_battery_regulation_voltage,4,2 ## @battery_regulation_voltage
	.comm	_charge_current,4,2             ## @charge_current
	.comm	_termination_current,4,2        ## @termination_current
	.comm	_BQ2415X_CHARGE_TERMINATION_ENABLE,4,2 ## @BQ2415X_CHARGE_TERMINATION_ENABLE
	.comm	_BQ2415X_CHARGER_ENABLE,4,2     ## @BQ2415X_CHARGER_ENABLE
	.no_dead_strip	_bq2415x_set_defaults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq2415x_set_defaults
_bq2415x_set_defaults:                  ; @bq2415x_set_defaults
	.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
Lloh0:
	adrp	x8, _BQ2415X_BOOST_MODE_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BQ2415X_BOOST_MODE_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bq2415x_exec_command
Lloh3:
	adrp	x8, _BQ2415X_CHARGER_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BQ2415X_CHARGER_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_exec_command
Lloh6:
	adrp	x8, _BQ2415X_CHARGE_TERMINATION_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BQ2415X_CHARGE_TERMINATION_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_exec_command
Lloh9:
	adrp	x8, _current_limit@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current_limit@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_set_default_value
Lloh12:
	adrp	x8, _weak_battery_voltage@GOTPAGE
Lloh13:
	ldr	x8, [x8, _weak_battery_voltage@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_set_default_value
Lloh15:
	adrp	x8, _battery_regulation_voltage@GOTPAGE
Lloh16:
	ldr	x8, [x8, _battery_regulation_voltage@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_set_default_value
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _charge_current@GOTPAGE
Lloh19:
	ldr	x8, [x8, _charge_current@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_set_default_value
Lloh21:
	adrp	x8, _termination_current@GOTPAGE
Lloh22:
	ldr	x8, [x8, _termination_current@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_set_default_value
Lloh24:
	adrp	x8, _BQ2415X_CHARGE_TERMINATION_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BQ2415X_CHARGE_TERMINATION_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_exec_command
LBB0_2:
Lloh27:
	adrp	x8, _BQ2415X_CHARGER_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BQ2415X_CHARGER_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bq2415x_exec_command
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ2415X_BOOST_MODE_DISABLE,4,2 ; @BQ2415X_BOOST_MODE_DISABLE
	.comm	_BQ2415X_CHARGER_DISABLE,4,2    ; @BQ2415X_CHARGER_DISABLE
	.comm	_BQ2415X_CHARGE_TERMINATION_DISABLE,4,2 ; @BQ2415X_CHARGE_TERMINATION_DISABLE
	.comm	_current_limit,4,2              ; @current_limit
	.comm	_weak_battery_voltage,4,2       ; @weak_battery_voltage
	.comm	_battery_regulation_voltage,4,2 ; @battery_regulation_voltage
	.comm	_charge_current,4,2             ; @charge_current
	.comm	_termination_current,4,2        ; @termination_current
	.comm	_BQ2415X_CHARGE_TERMINATION_ENABLE,4,2 ; @BQ2415X_CHARGE_TERMINATION_ENABLE
	.comm	_BQ2415X_CHARGER_ENABLE,4,2     ; @BQ2415X_CHARGER_ENABLE
	.no_dead_strip	_bq2415x_set_defaults
.subsections_via_symbols
