	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcnl4200_measure
_vcnl4200_measure:                      ## @vcnl4200_measure
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	4(%rsi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	callq	_ktime_add
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ktime_us_delta
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, %rsi
	addq	$500, %rsi                      ## imm = 0x1F4
	movq	%rax, %rdi
	callq	_usleep_range
LBB0_2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_i2c_smbus_read_word_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vcnl4200_measure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcnl4200_measure
_vcnl4200_measure:                      ; @vcnl4200_measure
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x1, #4
	mov	x0, x22
	bl	_mutex_lock
	ldp	w0, w1, [x20, #8]
	bl	_ktime_add
	mov	x23, x0
	bl	_ktime_get
	mov	x1, x0
	mov	x0, x23
	bl	_ktime_us_delta
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	add	x1, x0, #500
	bl	_usleep_range
LBB0_2:
	bl	_ktime_get
	str	w0, [x20, #8]
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_i2c_smbus_read_word_data
	tbnz	w0, #31, LBB0_4
; %bb.3:
	str	w0, [x19]
	mov	w0, #0
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vcnl4200_measure
.subsections_via_symbols
