	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max17042_write_custom_regs
_max17042_write_custom_regs:            ## @max17042_write_custom_regs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	_MAX17042_RCOMP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %edx
	movq	%r14, %rdi
	callq	_max17042_write_verify_reg
	movq	_MAX17042_TempCo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	movq	%r14, %rdi
	callq	_max17042_write_verify_reg
	movq	_MAX17042_ICHGTerm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	callq	_max17042_write_verify_reg
	movq	(%r15), %rax
	movq	_MAXIM_DEVICE_TYPE_MAX17042@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MAX17042_EmptyTempCo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	addq	$16, %rbx
	movq	_MAX17042_K_empty0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_MAX17047_QRTbl00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	callq	_max17042_write_verify_reg
	movq	_MAX17047_QRTbl10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_max17042_write_verify_reg
	movq	_MAX17047_QRTbl20@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_max17042_write_verify_reg
	movq	_MAX17047_QRTbl30@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max17042_write_verify_reg      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX17042_RCOMP0,4,2            ## @MAX17042_RCOMP0
	.comm	_MAX17042_TempCo,4,2            ## @MAX17042_TempCo
	.comm	_MAX17042_ICHGTerm,4,2          ## @MAX17042_ICHGTerm
	.comm	_MAXIM_DEVICE_TYPE_MAX17042,8,3 ## @MAXIM_DEVICE_TYPE_MAX17042
	.comm	_MAX17042_EmptyTempCo,4,2       ## @MAX17042_EmptyTempCo
	.comm	_MAX17042_K_empty0,4,2          ## @MAX17042_K_empty0
	.comm	_MAX17047_QRTbl00,4,2           ## @MAX17047_QRTbl00
	.comm	_MAX17047_QRTbl10,4,2           ## @MAX17047_QRTbl10
	.comm	_MAX17047_QRTbl20,4,2           ## @MAX17047_QRTbl20
	.comm	_MAX17047_QRTbl30,4,2           ## @MAX17047_QRTbl30
	.no_dead_strip	_max17042_write_custom_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max17042_write_custom_regs
_max17042_write_custom_regs:            ; @max17042_write_custom_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldp	x19, x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _MAX17042_RCOMP0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX17042_RCOMP0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21, #32]
	mov	x0, x19
	bl	_max17042_write_verify_reg
Lloh3:
	adrp	x8, _MAX17042_TempCo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX17042_TempCo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x21, #28]
	mov	x0, x19
	bl	_max17042_write_verify_reg
Lloh6:
	adrp	x8, _MAX17042_ICHGTerm@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX17042_ICHGTerm@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x21, #24]
	mov	x0, x19
	bl	_max17042_write_verify_reg
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _MAXIM_DEVICE_TYPE_MAX17042@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAXIM_DEVICE_TYPE_MAX17042@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _MAX17042_EmptyTempCo@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX17042_EmptyTempCo@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x21, #20]
	mov	x0, x19
	bl	_regmap_write
	add	x21, x21, #16
Lloh15:
	adrp	x8, _MAX17042_K_empty0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX17042_K_empty0@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _MAX17047_QRTbl00@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX17047_QRTbl00@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_max17042_write_verify_reg
Lloh20:
	adrp	x8, _MAX17047_QRTbl10@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX17047_QRTbl10@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_max17042_write_verify_reg
Lloh23:
	adrp	x8, _MAX17047_QRTbl20@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX17047_QRTbl20@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_max17042_write_verify_reg
Lloh26:
	adrp	x8, _MAX17047_QRTbl30@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX17047_QRTbl30@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_max17042_write_verify_reg
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX17042_RCOMP0,4,2            ; @MAX17042_RCOMP0
	.comm	_MAX17042_TempCo,4,2            ; @MAX17042_TempCo
	.comm	_MAX17042_ICHGTerm,4,2          ; @MAX17042_ICHGTerm
	.comm	_MAXIM_DEVICE_TYPE_MAX17042,8,3 ; @MAXIM_DEVICE_TYPE_MAX17042
	.comm	_MAX17042_EmptyTempCo,4,2       ; @MAX17042_EmptyTempCo
	.comm	_MAX17042_K_empty0,4,2          ; @MAX17042_K_empty0
	.comm	_MAX17047_QRTbl00,4,2           ; @MAX17047_QRTbl00
	.comm	_MAX17047_QRTbl10,4,2           ; @MAX17047_QRTbl10
	.comm	_MAX17047_QRTbl20,4,2           ; @MAX17047_QRTbl20
	.comm	_MAX17047_QRTbl30,4,2           ; @MAX17047_QRTbl30
	.no_dead_strip	_max17042_write_custom_regs
.subsections_via_symbols
