	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max5481_read_raw
_max5481_read_raw:                      ## @max5481_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, %r14
	movq	%rdx, %r15
	callq	_iio_priv
	movq	_IIO_CHAN_INFO_SCALE@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	movl	%eax, (%r15)
	movq	_MAX5481_MAX_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_SCALE,8,3        ## @IIO_CHAN_INFO_SCALE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX5481_MAX_POS,4,2            ## @MAX5481_MAX_POS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.no_dead_strip	_max5481_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max5481_read_raw
_max5481_read_raw:                      ; @max5481_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	x19, x3
	mov	x20, x2
	bl	_iio_priv
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
Lloh3:
	adrp	x9, _MAX5481_MAX_POS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX5481_MAX_POS@GOTPAGEOFF]
	str	w8, [x20]
Lloh5:
	ldr	w8, [x9]
	str	w8, [x19]
Lloh6:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_SCALE,8,3        ; @IIO_CHAN_INFO_SCALE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX5481_MAX_POS,4,2            ; @MAX5481_MAX_POS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.no_dead_strip	_max5481_read_raw
.subsections_via_symbols
