	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29018_read_lux
_isl29018_read_lux:                     ## @isl29018_read_lux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ISL29018_CMD1_OPMODE_ALS_ONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_isl29018_read_sensor_input
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	8(%rbx), %ecx
	imull	%eax, %ecx
	movl	12(%rbx), %edx
	imull	%eax, %edx
	movslq	%edx, %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$50, %rax
	addl	%edx, %eax
	addl	%ecx, %eax
	movl	(%rbx), %ecx
	imull	%eax, %ecx
	imull	4(%rbx), %eax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	shrq	$50, %rax
	addl	%ecx, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL29018_CMD1_OPMODE_ALS_ONCE,4,2 ## @ISL29018_CMD1_OPMODE_ALS_ONCE
	.no_dead_strip	_isl29018_read_lux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29018_read_lux
_isl29018_read_lux:                     ; @isl29018_read_lux
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ISL29018_CMD1_OPMODE_ALS_ONCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISL29018_CMD1_OPMODE_ALS_ONCE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_isl29018_read_sensor_input
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldp	w8, w9, [x20, #8]
	mul	w9, w9, w0
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	smull	x9, w9, w10
	lsr	x11, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w11
	madd	w8, w8, w0, w9
	ldp	w9, w11, [x20]
	mul	w11, w8, w11
	umull	x10, w11, w10
	lsr	x10, x10, #50
	madd	w8, w8, w9, w10
	str	w8, [x19]
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL29018_CMD1_OPMODE_ALS_ONCE,4,2 ; @ISL29018_CMD1_OPMODE_ALS_ONCE
	.no_dead_strip	_isl29018_read_lux
.subsections_via_symbols
