	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function voltage_show
_voltage_show:                          ## @voltage_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movq	_REG_GAIN_MUX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MUX_CNV_BM@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MUX_M3_BM@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movq	%r15, %rdi
	callq	_ads7871_write_reg8
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ads7871_read_reg8
	andl	(%r13), %eax
	movq	_MUX_CNV_BV@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ads7871_read_reg8
	movl	%eax, %ebx
	andl	(%r13), %ebx
	movb	(%r14), %cl
	sarl	%cl, %ebx
	movl	$1, %edi
	callq	_msleep_interruptible
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ads7871_read_reg8
	movl	%eax, %ebx
	movb	(%r14), %r12b
	andl	(%r13), %ebx
	movl	$1, %edi
	callq	_msleep_interruptible
	movl	%r12d, %ecx
	sarl	%cl, %ebx
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_REG_LS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ads7871_read_reg16
	sarl	$2, %eax
	imull	$25000, %eax, %eax              ## imm = 0x61A8
	leal	8191(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$13, %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GAIN_MUX,4,2               ## @REG_GAIN_MUX
	.comm	_MUX_CNV_BM,4,2                 ## @MUX_CNV_BM
	.comm	_MUX_M3_BM,4,2                  ## @MUX_M3_BM
	.comm	_MUX_CNV_BV,4,2                 ## @MUX_CNV_BV
	.comm	_REG_LS_BYTE,4,2                ## @REG_LS_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_voltage_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function voltage_show
_voltage_show:                          ; @voltage_show
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _REG_GAIN_MUX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_GAIN_MUX@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x21, _MUX_CNV_BM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MUX_CNV_BM@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh4:
	adrp	x10, _MUX_M3_BM@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MUX_M3_BM@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	mov	x0, x20
	bl	_ads7871_write_reg8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ads7871_read_reg8
	ldr	w8, [x21]
	and	w8, w8, w0
Lloh7:
	adrp	x23, _MUX_CNV_BV@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MUX_CNV_BV@GOTPAGEOFF]
	ldr	w9, [x23]
	asr	w8, w8, w9
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ads7871_read_reg8
	ldr	w8, [x21]
	and	w8, w8, w0
	ldr	w9, [x23]
	asr	w24, w8, w9
	mov	w0, #1
	bl	_msleep_interruptible
	cbz	w24, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ads7871_read_reg8
	ldr	w8, [x21]
	and	w8, w8, w0
	ldr	w9, [x23]
	asr	w24, w8, w9
	mov	w0, #1
	bl	_msleep_interruptible
LBB0_3:
	cbz	w24, LBB0_5
; %bb.4:
	mov	w0, #-1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x8, _REG_LS_BYTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_LS_BYTE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ads7871_read_reg16
	asr	w8, w0, #2
	mov	w9, #25000
	mul	w8, w8, w9
	mov	w9, #8191
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #13
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GAIN_MUX,4,2               ; @REG_GAIN_MUX
	.comm	_MUX_CNV_BM,4,2                 ; @MUX_CNV_BM
	.comm	_MUX_M3_BM,4,2                  ; @MUX_M3_BM
	.comm	_MUX_CNV_BV,4,2                 ; @MUX_CNV_BV
	.comm	_REG_LS_BYTE,4,2                ; @REG_LS_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_voltage_show
.subsections_via_symbols
