	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29018_read_raw
_isl29018_read_raw:                     ## @isl29018_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	callq	_iio_priv
	movq	%rax, %r12
	leaq	24(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpq	$0, 40(%r12)
	je	LBB0_4
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
LBB0_2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_3:
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	$-131, %r13
	cmpq	$4, %r13
	ja	LBB0_2
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_18
## %bb.7:
	cmpl	$130, %eax
	movq	%rdx, %rsi
	je	LBB0_19
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_21
## %bb.9:
	movq	%r12, %rdi
	callq	_isl29018_read_lux
	jmp	LBB0_20
LBB0_10:
	cmpl	$129, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_3
## %bb.11:
	movl	28(%r12), %eax
	movl	%eax, (%rdx)
	movl	32(%r12), %eax
	jmp	LBB0_16
LBB0_12:
	cmpl	$129, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_3
## %bb.13:
	movl	$0, (%rdx)
	movq	_isl29018_int_utimes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rdx,4), %eax
	jmp	LBB0_16
LBB0_14:
	cmpl	$129, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_3
## %bb.15:
	movl	16(%r12), %eax
	movl	%eax, (%rdx)
	movl	20(%r12), %eax
LBB0_16:
	movl	%eax, (%rsi)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_3
LBB0_18:
	movl	36(%r12), %esi
	movq	%r12, %rdi
	callq	_isl29018_read_proximity_ir
	jmp	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	callq	_isl29018_read_ir
LBB0_20:
	movl	%eax, %r14d
LBB0_21:
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.22:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_isl29018_int_utimes,8,3        ## @isl29018_int_utimes
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_isl29018_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29018_read_raw
_isl29018_read_raw:                     ; @isl29018_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_iio_priv
	mov	x22, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	neg	w20, w20
	sub	x8, x25, #131
	cmp	x8, #4
	b.hi	LBB0_2
; %bb.4:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w8, [x24]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.6:
	cmp	w8, #130
	b.eq	LBB0_17
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.8:
	mov	x0, x22
	mov	x1, x21
	bl	_isl29018_read_lux
	b	LBB0_18
LBB0_9:
	ldr	w8, [x24]
	cmp	w8, #129
	b.ne	LBB0_2
; %bb.10:
	ldr	w8, [x22, #28]
	str	w8, [x21]
	ldr	w8, [x22, #32]
	b	LBB0_15
LBB0_11:
	ldr	w8, [x24]
	cmp	w8, #129
	b.ne	LBB0_2
; %bb.12:
Lloh8:
	adrp	x8, _isl29018_int_utimes@GOTPAGE
Lloh9:
	ldr	x8, [x8, _isl29018_int_utimes@GOTPAGEOFF]
	str	wzr, [x21]
Lloh10:
	ldr	x8, [x8]
	ldp	x9, x10, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8, x10, lsl #2]
	b	LBB0_15
LBB0_13:
	ldr	w8, [x24]
	cmp	w8, #129
	b.ne	LBB0_2
; %bb.14:
	ldr	w8, [x22, #16]
	str	w8, [x21]
	ldr	w8, [x22, #20]
LBB0_15:
	str	w8, [x23]
Lloh11:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_2
LBB0_16:
	ldr	w1, [x22, #36]
	mov	x0, x22
	mov	x2, x21
	bl	_isl29018_read_proximity_ir
	b	LBB0_18
LBB0_17:
	mov	x0, x22
	mov	x1, x21
	bl	_isl29018_read_ir
LBB0_18:
	mov	x20, x0
LBB0_19:
Lloh14:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w20, w8, w20, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_isl29018_int_utimes,8,3        ; @isl29018_int_utimes
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_isl29018_read_raw
.subsections_via_symbols
