	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_reg_init
_max77693_reg_init:                     ## @max77693_reg_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_CHG_CNFG_06_CHGPROT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$3, %eax
	shll	%cl, %eax
	movq	%rdi, %r14
	movq	24(%rdi), %rcx
	movl	(%rcx), %edi
	movq	_MAX77693_CHG_REG_CHG_CNFG_06@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CHG_CNFG_06_CHGPROT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	20(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movq	_DEFAULT_FAST_CHARGE_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_max77693_set_fast_charge_timer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_DEFAULT_TOP_OFF_THRESHOLD_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_max77693_set_top_off_threshold_current
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_DEFAULT_TOP_OFF_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_max77693_set_top_off_timer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	16(%r14), %esi
	movq	%r14, %rdi
	callq	_max77693_set_constant_volt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	12(%r14), %esi
	movq	%r14, %rdi
	callq	_max77693_set_min_system_volt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_max77693_set_thermal_regulation_temp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_max77693_set_batttery_overcurrent
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	(%r14), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_max77693_set_charge_input_threshold_volt ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHG_CNFG_06_CHGPROT_SHIFT,4,2  ## @CHG_CNFG_06_CHGPROT_SHIFT
	.comm	_MAX77693_CHG_REG_CHG_CNFG_06,4,2 ## @MAX77693_CHG_REG_CHG_CNFG_06
	.comm	_CHG_CNFG_06_CHGPROT_MASK,4,2   ## @CHG_CNFG_06_CHGPROT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error unlocking registers: %d\n"

	.comm	_DEFAULT_FAST_CHARGE_TIMER,4,2  ## @DEFAULT_FAST_CHARGE_TIMER
	.comm	_DEFAULT_TOP_OFF_THRESHOLD_CURRENT,4,2 ## @DEFAULT_TOP_OFF_THRESHOLD_CURRENT
	.comm	_DEFAULT_TOP_OFF_TIMER,4,2      ## @DEFAULT_TOP_OFF_TIMER
	.no_dead_strip	_max77693_reg_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_reg_init
_max77693_reg_init:                     ; @max77693_reg_init
	.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, _CHG_CNFG_06_CHGPROT_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHG_CNFG_06_CHGPROT_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #3
	lsl	w3, w9, w8
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MAX77693_CHG_REG_CHG_CNFG_06@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_CNFG_06@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CHG_CNFG_06_CHGPROT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHG_CNFG_06_CHGPROT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_9
LBB0_2:
Lloh11:
	adrp	x8, _DEFAULT_FAST_CHARGE_TIMER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEFAULT_FAST_CHARGE_TIMER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max77693_set_fast_charge_timer
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh14:
	adrp	x8, _DEFAULT_TOP_OFF_THRESHOLD_CURRENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEFAULT_TOP_OFF_THRESHOLD_CURRENT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max77693_set_top_off_threshold_current
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.4:
Lloh17:
	adrp	x8, _DEFAULT_TOP_OFF_TIMER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEFAULT_TOP_OFF_TIMER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_max77693_set_top_off_timer
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_max77693_set_constant_volt
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_max77693_set_min_system_volt
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_max77693_set_thermal_regulation_temp
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_max77693_set_batttery_overcurrent
	mov	x20, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_max77693_set_charge_input_threshold_volt
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CHG_CNFG_06_CHGPROT_SHIFT,4,2  ; @CHG_CNFG_06_CHGPROT_SHIFT
	.comm	_MAX77693_CHG_REG_CHG_CNFG_06,4,2 ; @MAX77693_CHG_REG_CHG_CNFG_06
	.comm	_CHG_CNFG_06_CHGPROT_MASK,4,2   ; @CHG_CNFG_06_CHGPROT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error unlocking registers: %d\n"

	.comm	_DEFAULT_FAST_CHARGE_TIMER,4,2  ; @DEFAULT_FAST_CHARGE_TIMER
	.comm	_DEFAULT_TOP_OFF_THRESHOLD_CURRENT,4,2 ; @DEFAULT_TOP_OFF_THRESHOLD_CURRENT
	.comm	_DEFAULT_TOP_OFF_TIMER,4,2      ; @DEFAULT_TOP_OFF_TIMER
	.no_dead_strip	_max77693_reg_init
.subsections_via_symbols
