	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max17042_write_config_regs
_max17042_write_config_regs:            ## @max17042_write_config_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, %r14
	movq	8(%rdi), %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	_MAX17042_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_MAX17042_LearnCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_MAX17042_FilterCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_MAX17042_RelaxCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	(%r14), %rax
	movq	_MAXIM_DEVICE_TYPE_MAX17047@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_MAXIM_DEVICE_TYPE_MAX17050@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_MAX17047_FullSOCThr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX17042_CONFIG,4,2            ## @MAX17042_CONFIG
	.comm	_MAX17042_LearnCFG,4,2          ## @MAX17042_LearnCFG
	.comm	_MAX17042_FilterCFG,4,2         ## @MAX17042_FilterCFG
	.comm	_MAX17042_RelaxCFG,4,2          ## @MAX17042_RelaxCFG
	.comm	_MAXIM_DEVICE_TYPE_MAX17047,8,3 ## @MAXIM_DEVICE_TYPE_MAX17047
	.comm	_MAXIM_DEVICE_TYPE_MAX17050,8,3 ## @MAXIM_DEVICE_TYPE_MAX17050
	.comm	_MAX17047_FullSOCThr,4,2        ## @MAX17047_FullSOCThr
	.no_dead_strip	_max17042_write_config_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_config_regs
_max17042_write_config_regs:            ; @max17042_write_config_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_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX17042_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21, #16]
	mov	x0, x19
	bl	_regmap_write
Lloh3:
	adrp	x8, _MAX17042_LearnCFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX17042_LearnCFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_regmap_write
Lloh6:
	adrp	x8, _MAX17042_FilterCFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX17042_FilterCFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_regmap_write
Lloh9:
	adrp	x8, _MAX17042_RelaxCFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX17042_RelaxCFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_regmap_write
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _MAXIM_DEVICE_TYPE_MAX17047@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAXIM_DEVICE_TYPE_MAX17047@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _MAXIM_DEVICE_TYPE_MAX17050@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MAXIM_DEVICE_TYPE_MAX17050@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _MAX17047_FullSOCThr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX17047_FullSOCThr@GOTPAGEOFF]
Lloh20:
	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	_regmap_write
LBB0_2:
	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
	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	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX17042_CONFIG,4,2            ; @MAX17042_CONFIG
	.comm	_MAX17042_LearnCFG,4,2          ; @MAX17042_LearnCFG
	.comm	_MAX17042_FilterCFG,4,2         ; @MAX17042_FilterCFG
	.comm	_MAX17042_RelaxCFG,4,2          ; @MAX17042_RelaxCFG
	.comm	_MAXIM_DEVICE_TYPE_MAX17047,8,3 ; @MAXIM_DEVICE_TYPE_MAX17047
	.comm	_MAXIM_DEVICE_TYPE_MAX17050,8,3 ; @MAXIM_DEVICE_TYPE_MAX17050
	.comm	_MAX17047_FullSOCThr,4,2        ; @MAX17047_FullSOCThr
	.no_dead_strip	_max17042_write_config_regs
.subsections_via_symbols
