	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_coincell_probe
_qcom_coincell_probe:                   ## @qcom_coincell_probe
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movq	%rdi, -56(%rbp)
	movl	(%rdi), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_u32
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	movl	$0, %esi
	testl	%eax, %eax
	sete	%bl
	je	LBB0_4
LBB0_8:
	movb	%bl, %r15b
	leaq	-56(%rbp), %rdi
	movl	%r15d, %ecx
	callq	_qcom_coincell_chgr_config
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_7:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to get regmap\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"qcom,charger-disable"

L_.str.3:                               ## @.str.3
	.asciz	"qcom,rset-ohms"

L_.str.4:                               ## @.str.4
	.asciz	"can't find 'qcom,rset-ohms' in DT block"

L_.str.5:                               ## @.str.5
	.asciz	"qcom,vset-millivolts"

L_.str.6:                               ## @.str.6
	.asciz	"can't find 'qcom,vset-millivolts' in DT block"

	.no_dead_strip	_qcom_coincell_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_coincell_probe
_qcom_coincell_probe:                   ; @qcom_coincell_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0, #8]
	stp	xzr, x0, [sp, #8]
	ldr	w0, [x0]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [sp, #28]
	cbz	w0, LBB0_5
; %bb.1:
	add	x8, sp, #16
	add	x2, x8, #8
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_u32
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	cmp	w0, #0
	cset	w20, eq
	cbz	w0, LBB0_7
; %bb.3:
	mov	w2, #0
	mov	w1, #0
LBB0_4:
	add	x0, sp, #16
	mov	x3, x20
	bl	_qcom_coincell_chgr_config
	mov	x21, x0
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_of_property_read_u32
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
	ldr	x0, [sp, #16]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_9:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_of_property_read_u32
	cbz	w0, LBB0_11
; %bb.10:
	mov	x21, x0
	ldr	x0, [sp, #16]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_11:
	ldp	w2, w1, [sp, #8]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to get regmap\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"qcom,charger-disable"

l_.str.3:                               ; @.str.3
	.asciz	"qcom,rset-ohms"

l_.str.4:                               ; @.str.4
	.asciz	"can't find 'qcom,rset-ohms' in DT block"

l_.str.5:                               ; @.str.5
	.asciz	"qcom,vset-millivolts"

l_.str.6:                               ; @.str.6
	.asciz	"can't find 'qcom,vset-millivolts' in DT block"

	.no_dead_strip	_qcom_coincell_probe
.subsections_via_symbols
