	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_iio_read_raw
_vprbrd_iio_read_raw:                   ## @vprbrd_iio_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, %r13
	movq	%rdi, %r15
	callq	_iio_priv
	cmpq	$128, %rbx
	jne	LBB0_7
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movq	8(%r12), %r14
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_VPRBRD_ADC_CMD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	(%r13), %eax
	movl	%eax, 4(%r14)
	movl	$0, (%r14)
	movl	4(%r12), %r13d
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_VPRBRD_USB_REQUEST_ADC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VPRBRD_USB_TYPE_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%r13d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$12
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	$12, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	4(%r12), %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_VPRBRD_USB_REQUEST_ADC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VPRBRD_USB_TYPE_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%r13d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$12
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r13d
	movl	(%r14), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	cmpl	$12, %r13d
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_ADC_CMD_GET,4,2         ## @VPRBRD_ADC_CMD_GET
	.comm	_VPRBRD_USB_REQUEST_ADC,4,2     ## @VPRBRD_USB_REQUEST_ADC
	.comm	_VPRBRD_USB_TYPE_OUT,4,2        ## @VPRBRD_USB_TYPE_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb send error on adc read\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ## @VPRBRD_USB_TYPE_IN
L_.str.1:                               ## @.str.1
	.asciz	"usb recv error on adc read\n"

	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vprbrd_iio_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_iio_read_raw
_vprbrd_iio_read_raw:                   ; @vprbrd_iio_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	cmp	x21, #128
	b.ne	LBB0_6
; %bb.1:
	ldr	x21, [x0]
	ldr	x22, [x21, #8]
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _VPRBRD_ADC_CMD_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_ADC_CMD_GET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	ldr	w8, [x23]
	stp	wzr, w8, [x22]
	ldr	w23, [x21, #4]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x26, _VPRBRD_USB_REQUEST_ADC@GOTPAGE
Lloh4:
	ldr	x26, [x26, _VPRBRD_USB_REQUEST_ADC@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh5:
	adrp	x8, _VPRBRD_USB_TYPE_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x27, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
	ldr	w8, [x27]
	str	w8, [sp]
	mov	x0, x23
	mov	w4, #0
	mov	w5, #0
	mov	x6, x22
	mov	w7, #12
	bl	_usb_control_msg
	mov	w25, #0
Lloh10:
	adrp	x24, _EREMOTEIO@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EREMOTEIO@GOTPAGEOFF]
	cmp	w0, #12
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x24]
	neg	w25, w8
LBB0_3:
	ldr	w23, [x21, #4]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x26]
Lloh14:
	adrp	x8, _VPRBRD_USB_TYPE_IN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_IN@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	ldr	w8, [x27]
	str	w8, [sp]
	mov	x0, x23
	mov	w4, #0
	mov	w5, #0
	mov	x6, x22
	mov	w7, #12
	bl	_usb_control_msg
	mov	x23, x0
	ldr	w8, [x22]
	str	w8, [x20]
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w23, #12
	b.eq	LBB0_5
; %bb.4:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x24]
	neg	w25, w8
LBB0_5:
Lloh19:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w25, #0
	csel	w0, w8, w25, eq
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_ADC_CMD_GET,4,2         ; @VPRBRD_ADC_CMD_GET
	.comm	_VPRBRD_USB_REQUEST_ADC,4,2     ; @VPRBRD_USB_REQUEST_ADC
	.comm	_VPRBRD_USB_TYPE_OUT,4,2        ; @VPRBRD_USB_TYPE_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb send error on adc read\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ; @VPRBRD_USB_TYPE_IN
l_.str.1:                               ; @.str.1
	.asciz	"usb recv error on adc read\n"

	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vprbrd_iio_read_raw
.subsections_via_symbols
