	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max17042_get_default_pdata
_max17042_get_default_pdata:            ## @max17042_get_default_pdata
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$28, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_MAXIM_DEVICE_TYPE_MAX17042@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_max17047_default_pdata_init_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 24(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 20(%rbx)
LBB0_3:
	movl	8(%r14), %edi
	movq	_MAX17042_MiscCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movl	-20(%rbp), %eax
	notl	%eax
	xorl	%ecx, %ecx
	testb	$3, %al
	setne	%cl
	movl	%ecx, (%rbx)
	movq	_MAX17042_DEFAULT_VMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_MAX17042_DEFAULT_VMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_MAX17042_DEFAULT_TEMP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_MAX17042_DEFAULT_TEMP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MAXIM_DEVICE_TYPE_MAX17042,8,3 ## @MAXIM_DEVICE_TYPE_MAX17042
	.comm	_max17047_default_pdata_init_regs,4,2 ## @max17047_default_pdata_init_regs
	.comm	_MAX17042_MiscCFG,4,2           ## @MAX17042_MiscCFG
	.comm	_MAX17042_DEFAULT_VMIN,4,2      ## @MAX17042_DEFAULT_VMIN
	.comm	_MAX17042_DEFAULT_VMAX,4,2      ## @MAX17042_DEFAULT_VMAX
	.comm	_MAX17042_DEFAULT_TEMP_MIN,4,2  ## @MAX17042_DEFAULT_TEMP_MIN
	.comm	_MAX17042_DEFAULT_TEMP_MAX,4,2  ## @MAX17042_DEFAULT_TEMP_MAX
	.no_dead_strip	_max17042_get_default_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max17042_get_default_pdata
_max17042_get_default_pdata:            ; @max17042_get_default_pdata
	.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	x20, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #28
	bl	_devm_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MAXIM_DEVICE_TYPE_MAX17042@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAXIM_DEVICE_TYPE_MAX17042@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _max17047_default_pdata_init_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max17047_default_pdata_init_regs@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	w0, [x19, #24]
	bl	_ARRAY_SIZE
	str	w0, [x19, #20]
LBB0_3:
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x8, _MAX17042_MiscCFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX17042_MiscCFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	mov	w9, #3
	bics	wzr, w9, w8
	cset	w8, ne
	str	w8, [x19]
Lloh12:
	adrp	x8, _MAX17042_DEFAULT_VMIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX17042_DEFAULT_VMIN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MAX17042_DEFAULT_VMAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX17042_DEFAULT_VMAX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh18:
	adrp	x8, _MAX17042_DEFAULT_TEMP_MIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX17042_DEFAULT_TEMP_MIN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MAX17042_DEFAULT_TEMP_MAX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MAX17042_DEFAULT_TEMP_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MAXIM_DEVICE_TYPE_MAX17042,8,3 ; @MAXIM_DEVICE_TYPE_MAX17042
	.comm	_max17047_default_pdata_init_regs,4,2 ; @max17047_default_pdata_init_regs
	.comm	_MAX17042_MiscCFG,4,2           ; @MAX17042_MiscCFG
	.comm	_MAX17042_DEFAULT_VMIN,4,2      ; @MAX17042_DEFAULT_VMIN
	.comm	_MAX17042_DEFAULT_VMAX,4,2      ; @MAX17042_DEFAULT_VMAX
	.comm	_MAX17042_DEFAULT_TEMP_MIN,4,2  ; @MAX17042_DEFAULT_TEMP_MIN
	.comm	_MAX17042_DEFAULT_TEMP_MAX,4,2  ; @MAX17042_DEFAULT_TEMP_MAX
	.no_dead_strip	_max17042_get_default_pdata
.subsections_via_symbols
