	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29501_read_ext
_isl29501_read_ext:                     ## @isl29501_read_ext
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	callq	_iio_priv
	movq	%rax, %r15
	leal	-130(%rbx), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.4:
	movq	_REG_PHASE_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_isl29501_register_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_isl29501_register_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	-32(%rbp), %edx
	movb	-28(%rbp), %cl
	shll	%cl, %edx
	jmp	LBB0_7
LBB0_1:
	leal	-128(%rbx), %eax
	cmpl	$1, %eax
	ja	LBB0_9
## %bb.2:
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_isl29501_register_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	-36(%rbp), %edx
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PHASE_EXP,4,2              ## @REG_PHASE_EXP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_isl29501_read_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29501_read_ext
_isl29501_read_ext:                     ; @isl29501_read_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x1
	bl	_iio_priv
	mov	x21, x0
	sub	w8, w20, #130
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _REG_PHASE_EXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_PHASE_EXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x21
	bl	_isl29501_register_read
	tbnz	w0, #31, LBB0_9
; %bb.2:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_isl29501_register_read
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldp	w9, w8, [sp, #4]
	lsl	w2, w8, w9
	b	LBB0_7
LBB0_4:
	sub	w8, w20, #128
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.5:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_isl29501_register_read
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w2, [sp, #12]
LBB0_7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PHASE_EXP,4,2              ; @REG_PHASE_EXP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_isl29501_read_ext
.subsections_via_symbols
