	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function al3320a_read_raw
_al3320a_read_raw:                      ## @al3320a_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_6
## %bb.2:
	movl	(%rax), %edi
	movq	_AL3320A_REG_DATA_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	movl	(%rax), %edi
	movq	_AL3320A_REG_CONFIG_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_AL3320A_GAIN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_AL3320A_GAIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rdx
	movq	_al3320a_scales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	4(%rax), %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AL3320A_REG_DATA_LOW,4,2       ## @AL3320A_REG_DATA_LOW
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_AL3320A_REG_CONFIG_RANGE,4,2   ## @AL3320A_REG_CONFIG_RANGE
	.comm	_AL3320A_GAIN_MASK,4,2          ## @AL3320A_GAIN_MASK
	.comm	_AL3320A_GAIN_SHIFT,4,2         ## @AL3320A_GAIN_SHIFT
	.comm	_al3320a_scales,8,3             ## @al3320a_scales
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_al3320a_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function al3320a_read_raw
_al3320a_read_raw:                      ; @al3320a_read_raw
	.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	x21, x4
	mov	x20, x3
	mov	x19, x2
	bl	_iio_priv
	cmp	x21, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x21, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AL3320A_REG_DATA_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AL3320A_REG_DATA_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
	tbnz	w0, #31, LBB0_7
; %bb.3:
	str	w0, [x19]
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _AL3320A_REG_CONFIG_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AL3320A_REG_CONFIG_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _AL3320A_GAIN_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AL3320A_GAIN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _AL3320A_GAIN_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AL3320A_GAIN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	x8, x8, x9
Lloh15:
	adrp	x9, _al3320a_scales@GOTPAGE
Lloh16:
	ldr	x9, [x9, _al3320a_scales@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x20]
Lloh18:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AL3320A_REG_DATA_LOW,4,2       ; @AL3320A_REG_DATA_LOW
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_AL3320A_REG_CONFIG_RANGE,4,2   ; @AL3320A_REG_CONFIG_RANGE
	.comm	_AL3320A_GAIN_MASK,4,2          ; @AL3320A_GAIN_MASK
	.comm	_AL3320A_GAIN_SHIFT,4,2         ; @AL3320A_GAIN_SHIFT
	.comm	_al3320a_scales,8,3             ; @al3320a_scales
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_al3320a_read_raw
.subsections_via_symbols
