	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp4131_read_raw
_mcp4131_read_raw:                      ## @mcp4131_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	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$128, %rbx
	je	LBB0_7
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movl	(%r13), %ebx
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_MCP4131_WIPER_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_MCP4131_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r14), %rsi
	movl	%ebx, (%rsi)
	movl	$0, 4(%rsi)
	movl	20(%r14), %edi
	movl	$2, %edx
	callq	_mcp4131_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_7:
	movq	8(%r14), %rax
	imull	$1000, (%rax), %ecx             ## imm = 0x3E8
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, (%r12)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rdi
	callq	_MCP4131_CMDERR
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	callq	_MCP4131_RAW
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MCP4131_WIPER_SHIFT,4,2        ## @MCP4131_WIPER_SHIFT
	.comm	_MCP4131_READ,4,2               ## @MCP4131_READ
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mcp4131_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp4131_read_raw
_mcp4131_read_raw:                      ; @mcp4131_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	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	bl	_iio_priv
	mov	x21, x0
	cmp	x23, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x23, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	w22, [x22]
	add	x20, x21, #16
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _MCP4131_WIPER_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCP4131_WIPER_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh3:
	adrp	x9, _MCP4131_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCP4131_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x1, [x21]
	stp	w8, wzr, [x1]
	ldr	w0, [x21, #20]
	mov	w2, #2
	bl	_mcp4131_read
	cbz	w0, LBB0_8
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_7
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	mov	w10, #1000
	mul	w9, w9, w10
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x20]
Lloh6:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	ldr	x0, [x21]
	bl	_MCP4131_CMDERR
	cbz	w0, LBB0_10
; %bb.9:
	ldr	x0, [x21]
	bl	_MCP4131_RAW
	str	w0, [x19]
	mov	x0, x20
	bl	_mutex_unlock
Lloh11:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MCP4131_WIPER_SHIFT,4,2        ; @MCP4131_WIPER_SHIFT
	.comm	_MCP4131_READ,4,2               ; @MCP4131_READ
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mcp4131_read_raw
.subsections_via_symbols
