	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1363_read_single_chan
_max1363_read_single_chan:              ## @max1363_read_single_chan
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %rbx
	movq	32(%rax), %r13
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$0, 24(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_iio_buffer_enabled
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.4:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_max1363_mode_table@GOTPCREL(%rip), %rcx
	movq	(%r12), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	cmpq	%rax, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_max1363_set_scan_mode
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_3
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpl	$8, (%rcx)
	jne	LBB0_11
## %bb.9:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movl	-56(%rbp), %eax
	jmp	LBB0_13
LBB0_11:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:
	movl	-56(%rbp), %edx
	shll	$8, %edx
	movq	8(%rbx), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	orl	-52(%rbp), %edx
	notl	%eax
	andl	%edx, %eax
LBB0_13:
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_15:
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_max1363_mode_table,8,3         ## @max1363_mode_table
	.no_dead_strip	_max1363_read_single_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1363_read_single_chan
_max1363_read_single_chan:              ; @max1363_read_single_chan
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_iio_priv
	mov	x22, x0
	ldr	x23, [x0, #32]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_iio_buffer_enabled
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.4:
	mov	x0, x21
	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
LBB0_5:
	ldr	x9, [x22, #16]
Lloh9:
	adrp	x8, _max1363_mode_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _max1363_mode_table@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x10, [x21]
	add	x8, x8, x10, lsl #2
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.6:
	str	x8, [x22, #16]
	mov	x0, x22
	bl	_max1363_set_scan_mode
	mov	x21, x0
	tbz	w0, #31, LBB0_8
	b	LBB0_3
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldp	x8, x9, [x22]
	ldr	w9, [x9]
	mov	x1, sp
	mov	x0, x23
	cmp	w9, #8
	b.ne	LBB0_11
; %bb.9:
	mov	w2, #1
	blr	x8
	tbnz	w0, #31, LBB0_14
; %bb.10:
	ldr	w8, [sp]
	b	LBB0_13
LBB0_11:
	mov	w2, #2
	blr	x8
	tbnz	w0, #31, LBB0_14
; %bb.12:
	ldp	w9, w8, [sp]
	orr	w8, w8, w9, lsl #8
	ldr	x9, [x22, #8]
	ldr	w9, [x9]
	mov	w10, #-1
	lsl	w9, w10, w9
	bic	w8, w8, w9
LBB0_13:
	str	w8, [x20]
	b	LBB0_3
LBB0_14:
	mov	x21, x0
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_max1363_mode_table,8,3         ; @max1363_mode_table
	.no_dead_strip	_max1363_read_single_chan
.subsections_via_symbols
