	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adis_single_conversion         ## -- Begin function adis_single_conversion
	.p2align	4, 0x90
_adis_single_conversion:                ## @adis_single_conversion
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_iio_device_get_drvdata
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	movl	12(%rbx), %esi
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_adis_read_reg
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	testl	%r12d, -44(%rbp)
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_adis_check_status
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
LBB0_3:
	cmpb	$115, 4(%rbx)
	movl	-44(%rbp), %eax
	movl	8(%rbx), %ecx
	jne	LBB0_5
## %bb.4:
	decl	%ecx
	movl	%eax, %edi
	movl	%ecx, %esi
	callq	_sign_extend32
	jmp	LBB0_6
LBB0_5:
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %eax
LBB0_6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adis_single_conversion         ; -- Begin function adis_single_conversion
	.p2align	2
_adis_single_conversion:                ; @adis_single_conversion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iio_device_get_drvdata
	mov	x23, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x21, #12]
	ldr	w8, [x21]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #3
	add	x2, sp, #12
	mov	x0, x23
	bl	_adis_read_reg
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_adis_check_status
	mov	x24, x0
	cbnz	w0, LBB0_7
LBB0_3:
	ldrb	w9, [x21, #4]
	ldr	w0, [sp, #12]
	ldr	w8, [x21, #8]
	cmp	w9, #115
	b.ne	LBB0_5
; %bb.4:
	sub	w1, w8, #1
	bl	_sign_extend32
	b	LBB0_6
LBB0_5:
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w0, w0, w8
LBB0_6:
	str	w0, [x20]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
.subsections_via_symbols
