	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8540_gpadc_vbat_true_meas_and_ibat_show
_ab8540_gpadc_vbat_true_meas_and_ibat_show: ## @ab8540_gpadc_vbat_true_meas_and_ibat_show
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_ab8500_gpadc_get
	movq	%rax, %rbx
	movq	_VBAT_TRUE_MEAS_AND_IBAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_avg_sample@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_trig_edge@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_trig_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_conv_type@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-36(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	callq	_ab8500_gpadc_double_read_raw
	movl	%eax, %r15d
	movq	_VBAT_TRUE_MEAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ab8500_gpadc_ad_to_voltage
	movl	%eax, %r12d
	movq	_IBAT_VIRTUAL_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_ab8500_gpadc_ad_to_voltage
	movl	-36(%rbp), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_seq_printf
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ab8500-gpadc.0"

	.comm	_VBAT_TRUE_MEAS_AND_IBAT,4,2    ## @VBAT_TRUE_MEAS_AND_IBAT
	.comm	_avg_sample,4,2                 ## @avg_sample
	.comm	_trig_edge,4,2                  ## @trig_edge
	.comm	_trig_timer,4,2                 ## @trig_timer
	.comm	_conv_type,4,2                  ## @conv_type
	.comm	_VBAT_TRUE_MEAS,4,2             ## @VBAT_TRUE_MEAS
	.comm	_IBAT_VIRTUAL_CHANNEL,4,2       ## @IBAT_VIRTUAL_CHANNEL
L_.str.1:                               ## @.str.1
	.asciz	"%d,0x%X\n%d,0x%X\n"

	.no_dead_strip	_ab8540_gpadc_vbat_true_meas_and_ibat_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8540_gpadc_vbat_true_meas_and_ibat_show
_ab8540_gpadc_vbat_true_meas_and_ibat_show: ; @ab8540_gpadc_vbat_true_meas_and_ibat_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ab8500_gpadc_get
	mov	x20, x0
Lloh2:
	adrp	x8, _VBAT_TRUE_MEAS_AND_IBAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VBAT_TRUE_MEAS_AND_IBAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _avg_sample@GOTPAGE
Lloh6:
	ldr	x8, [x8, _avg_sample@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _trig_edge@GOTPAGE
Lloh9:
	ldr	x8, [x8, _trig_edge@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _trig_timer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _trig_timer@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _conv_type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _conv_type@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
	add	x6, sp, #12
	bl	_ab8500_gpadc_double_read_raw
	mov	x21, x0
Lloh17:
	adrp	x8, _VBAT_TRUE_MEAS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VBAT_TRUE_MEAS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_ab8500_gpadc_ad_to_voltage
	mov	x22, x0
Lloh20:
	adrp	x8, _IBAT_VIRTUAL_CHANNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IBAT_VIRTUAL_CHANNEL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_ab8500_gpadc_ad_to_voltage
	mov	x4, x0
	ldr	w5, [sp, #12]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_seq_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ab8500-gpadc.0"

	.comm	_VBAT_TRUE_MEAS_AND_IBAT,4,2    ; @VBAT_TRUE_MEAS_AND_IBAT
	.comm	_avg_sample,4,2                 ; @avg_sample
	.comm	_trig_edge,4,2                  ; @trig_edge
	.comm	_trig_timer,4,2                 ; @trig_timer
	.comm	_conv_type,4,2                  ; @conv_type
	.comm	_VBAT_TRUE_MEAS,4,2             ; @VBAT_TRUE_MEAS
	.comm	_IBAT_VIRTUAL_CHANNEL,4,2       ; @IBAT_VIRTUAL_CHANNEL
l_.str.1:                               ; @.str.1
	.asciz	"%d,0x%X\n%d,0x%X\n"

	.no_dead_strip	_ab8540_gpadc_vbat_true_meas_and_ibat_show
.subsections_via_symbols
