	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_adc_read_raw
_dln2_adc_read_raw:                     ## @dln2_adc_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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	cmpq	$129, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_8
## %bb.3:
	movq	%r13, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_dln2_adc_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.4:
	movl	%ebx, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movl	$0, (%r14)
	movl	$3222656, (%r15)                ## imm = 0x312C80
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.7:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	shrq	$50, %rcx
	movl	%ecx, (%r14)
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	subl	%ecx, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_10:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	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	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dln2_adc_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_adc_read_raw
_dln2_adc_read_raw:                     ; @dln2_adc_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	x21, x1
	bl	_iio_priv
	cmp	x23, #128
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
	cmp	x23, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	x23, #130
	b.ne	LBB0_8
; %bb.3:
	add	x23, x22, #4
	mov	x0, x23
	bl	_mutex_lock
	ldr	w1, [x21]
	mov	x0, x22
	bl	_dln2_adc_read
	mov	x20, x0
	mov	x0, x23
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_12
; %bb.4:
	str	w20, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	str	wzr, [x19]
	mov	w8, #11392
	movk	w8, #49, lsl #16
	str	w8, [x20]
Lloh2:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	sdiv	w8, w9, w8
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #50
	str	w9, [x19]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w8, w9, w10, w8
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_9:
	str	wzr, [x19]
LBB0_10:
	str	w8, [x20]
Lloh7:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dln2_adc_read_raw
.subsections_via_symbols
