	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcnl4035_read_raw
_vcnl4035_read_raw:                     ## @vcnl4035_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, %r14
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$128, %r14
	je	LBB0_15
## %bb.1:
	cmpq	$130, %r14
	je	LBB0_12
## %bb.2:
	cmpq	$129, %r14
	jne	LBB0_16
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_vcnl4035_set_pm_runtime_state
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	cmpl	$0, (%r13)
	jne	LBB0_7
## %bb.8:
	movq	_VCNL4035_WHITE_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$64, (%rax)
	movl	(%r15), %eax
	imull	$2000, %eax, %ecx               ## imm = 0x7D0
	testl	%eax, %eax
	movl	$1000, %eax                     ## imm = 0x3E8
	cmovnel	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$50, (%rcx)
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	imull	$100, %eax, %eax
	movl	%eax, (%rcx)
LBB0_14:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_7:
	movq	_VCNL4035_ALS_DATA@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movl	4(%r15), %edi
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.10:
	movl	-52(%rbp), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vcnl4035_set_pm_runtime_state
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCNL4035_ALS_DATA,4,2          ## @VCNL4035_ALS_DATA
	.comm	_VCNL4035_WHITE_DATA,4,2        ## @VCNL4035_WHITE_DATA
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vcnl4035_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcnl4035_read_raw
_vcnl4035_read_raw:                     ; @vcnl4035_read_raw
	.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	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	cmp	x24, #128
	b.eq	LBB0_8
; %bb.1:
	cmp	x24, #130
	b.eq	LBB0_9
; %bb.2:
	cmp	x24, #129
	b.ne	LBB0_12
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_vcnl4035_set_pm_runtime_state
	tbnz	w0, #31, LBB0_13
; %bb.4:
	mov	x0, x21
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _VCNL4035_WHITE_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VCNL4035_WHITE_DATA@GOTPAGEOFF]
Lloh2:
	adrp	x10, _VCNL4035_ALS_DATA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VCNL4035_ALS_DATA@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	ldr	w0, [x20, #4]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x22, x0
	mov	x0, x21
	bl	_iio_device_release_direct_mode
	cbnz	w22, LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	str	w8, [x19]
Lloh4:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	bl	_vcnl4035_set_pm_runtime_state
	b	LBB0_14
LBB0_8:
	mov	w8, #64
	str	w8, [x19]
	ldr	w8, [x20]
	mov	w9, #2000
	mul	w9, w8, w9
	mov	w10, #1000
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x22]
Lloh7:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	b	LBB0_14
LBB0_9:
	mov	w8, #50
	str	w8, [x19]
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.10:
	mov	w9, #100
	mul	w8, w8, w9
	str	w8, [x19]
LBB0_11:
Lloh10:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_14
LBB0_12:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_13:
	mov	x22, x0
LBB0_14:
	mov	x0, x22
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VCNL4035_ALS_DATA,4,2          ; @VCNL4035_ALS_DATA
	.comm	_VCNL4035_WHITE_DATA,4,2        ; @VCNL4035_WHITE_DATA
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vcnl4035_read_raw
.subsections_via_symbols
