	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_gpadc_main_bat_v_show
_ab8500_gpadc_main_bat_v_show:          ## @ab8500_gpadc_main_bat_v_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
	.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, %r15
	movq	_MAIN_BAT_V@GOTPCREL(%rip), %r12
	movl	(%r12), %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
	movq	%r15, %rdi
	callq	_ab8500_gpadc_read_raw
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ab8500_gpadc_ad_to_voltage
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_seq_printf
	xorl	%eax, %eax
	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	_MAIN_BAT_V,4,2                 ## @MAIN_BAT_V
	.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
L_.str.1:                               ## @.str.1
	.asciz	"%d,0x%X\n"

	.no_dead_strip	_ab8500_gpadc_main_bat_v_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_gpadc_main_bat_v_show
_ab8500_gpadc_main_bat_v_show:          ; @ab8500_gpadc_main_bat_v_show
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ab8500_gpadc_get
	mov	x20, x0
Lloh2:
	adrp	x22, _MAIN_BAT_V@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MAIN_BAT_V@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _avg_sample@GOTPAGE
Lloh5:
	ldr	x8, [x8, _avg_sample@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _trig_edge@GOTPAGE
Lloh8:
	ldr	x8, [x8, _trig_edge@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x8, _trig_timer@GOTPAGE
Lloh11:
	ldr	x8, [x8, _trig_timer@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x8, _conv_type@GOTPAGE
Lloh14:
	ldr	x8, [x8, _conv_type@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
	bl	_ab8500_gpadc_read_raw
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_ab8500_gpadc_ad_to_voltage
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_seq_printf
	mov	w0, #0
	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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ab8500-gpadc.0"

	.comm	_MAIN_BAT_V,4,2                 ; @MAIN_BAT_V
	.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
l_.str.1:                               ; @.str.1
	.asciz	"%d,0x%X\n"

	.no_dead_strip	_ab8500_gpadc_main_bat_v_show
.subsections_via_symbols
