	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29125_read_raw
_isl29125_read_raw:                     ## @isl29125_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r13
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_isl29125_read_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_ISL29125_MODE_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	jne	LBB0_8
## %bb.6:
	movq	_ISL29125_SENSING_RANGE_0@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_ISL29125_SENSING_RANGE_1@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	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	_ISL29125_MODE_RANGE,4,2        ## @ISL29125_MODE_RANGE
	.comm	_ISL29125_SENSING_RANGE_1,4,2   ## @ISL29125_SENSING_RANGE_1
	.comm	_ISL29125_SENSING_RANGE_0,4,2   ## @ISL29125_SENSING_RANGE_0
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_isl29125_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29125_read_raw
_isl29125_read_raw:                     ; @isl29125_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	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x23, x0
	cmp	x24, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x24, #129
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_iio_device_claim_direct_mode
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x23
	bl	_isl29125_read_data
	mov	x21, x0
	mov	x0, x20
	bl	_iio_device_release_direct_mode
	tbnz	w21, #31, LBB0_7
; %bb.4:
	str	w21, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_5:
	str	wzr, [x19]
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _ISL29125_MODE_RANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISL29125_MODE_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ISL29125_SENSING_RANGE_0@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ISL29125_SENSING_RANGE_0@GOTPAGEOFF]
Lloh8:
	adrp	x11, _ISL29125_SENSING_RANGE_1@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ISL29125_SENSING_RANGE_1@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x21]
Lloh10:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_ISL29125_MODE_RANGE,4,2        ; @ISL29125_MODE_RANGE
	.comm	_ISL29125_SENSING_RANGE_1,4,2   ; @ISL29125_SENSING_RANGE_1
	.comm	_ISL29125_SENSING_RANGE_0,4,2   ; @ISL29125_SENSING_RANGE_0
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_isl29125_read_raw
.subsections_via_symbols
