	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc084s021_read_raw
_adc084s021_read_raw:                   ## @adc084s021_read_raw
	.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	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r12
	cmpq	$128, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_12
## %bb.2:
	movq	%r13, %rdi
	callq	_iio_device_claim_direct_mode
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	8(%r12), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_iio_device_release_direct_mode
	jmp	LBB0_13
LBB0_8:
	movl	8(%r12), %edi
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movl	8(%r12), %edi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_regulator_disable
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.10:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_6:
	movl	(%r15), %eax
	shll	$3, %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_adc084s021_adc_conversion
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_iio_device_release_direct_mode
	movl	8(%r12), %edi
	callq	_regulator_disable
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.7:
	movl	(%r14), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
	movb	4(%r15), %cl
	sarl	%cl, %eax
	movzbl	%al, %eax
	movl	%eax, (%r14)
LBB0_11:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adc084s021_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc084s021_read_raw
_adc084s021_read_raw:                   ; @adc084s021_read_raw
	.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	x20, x4
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_iio_priv
	mov	x22, x0
	cmp	x20, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x20, #129
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x23
	bl	_iio_device_claim_direct_mode
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w0, [x22, #8]
	bl	_regulator_enable
	cbz	w0, LBB0_10
; %bb.4:
	mov	x20, x0
	mov	x0, x23
	bl	_iio_device_release_direct_mode
	b	LBB0_13
LBB0_5:
	ldr	w0, [x22, #8]
	bl	_regulator_enable
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	w0, [x22, #8]
	bl	_regulator_get_voltage
	mov	x20, x0
	ldr	w0, [x22, #8]
	bl	_regulator_disable
	tbnz	w20, #31, LBB0_13
; %bb.7:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w20, w8
	lsr	x8, x8, #38
	str	w8, [x19]
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	b	LBB0_13
LBB0_10:
	ldr	w8, [x21]
	lsl	w8, w8, #3
	ldr	x9, [x22]
	str	w8, [x9]
	mov	x0, x22
	mov	x1, x19
	bl	_adc084s021_adc_conversion
	mov	x20, x0
	mov	x0, x23
	bl	_iio_device_release_direct_mode
	ldr	w0, [x22, #8]
	bl	_regulator_disable
	tbnz	w20, #31, LBB0_13
; %bb.11:
	ldr	w0, [x19]
	bl	_be16_to_cpu
	str	w0, [x19]
	ldr	w8, [x21, #4]
	asr	w8, w0, w8
	and	w8, w8, #0xff
	str	w8, [x19]
LBB0_12:
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adc084s021_read_raw
.subsections_via_symbols
