	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds990x_get_lux
_apds990x_get_lux:                      ## @apds990x_get_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
	movl	%edx, %ecx
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	imull	%esi, %eax
	movl	20(%rdi), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movq	_APDS_PARAM_SCALE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	cltd
	idivl	%edi
	movl	%eax, %r8d
	imull	24(%rbx), %esi
	imull	28(%rbx), %ecx
	subl	%ecx, %esi
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	%r8d, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %ecx
	movq	_APDS990X_LUX_OUTPUT_SCALE@GOTPCREL(%rip), %rdx
	movl	32(%rbx), %eax
	imull	(%rdx), %eax
	imull	36(%rbx), %eax
	movq	_again@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rbx), %rsi
	movl	(%rdx,%rsi,4), %esi
	imull	8(%rbx), %esi
	cltd
	idivl	%esi
	imull	%ecx, %eax
	cltd
	idivl	(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APDS_PARAM_SCALE,4,2           ## @APDS_PARAM_SCALE
	.comm	_APDS990X_LUX_OUTPUT_SCALE,4,2  ## @APDS990X_LUX_OUTPUT_SCALE
	.comm	_again,8,3                      ## @again
	.no_dead_strip	_apds990x_get_lux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds990x_get_lux
_apds990x_get_lux:                      ; @apds990x_get_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, x0
	ldp	w8, w9, [x0, #16]
	mul	w9, w9, w2
	neg	w9, w9
	madd	w8, w8, w1, w9
Lloh0:
	adrp	x20, _APDS_PARAM_SCALE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _APDS_PARAM_SCALE@GOTPAGEOFF]
	ldr	w9, [x20]
	sdiv	w0, w8, w9
	ldp	w8, w10, [x19, #24]
	mul	w10, w10, w2
	neg	w10, w10
	madd	w8, w8, w1, w10
	sdiv	w1, w8, w9
	bl	_max
	mov	w1, #0
	bl	_max
Lloh2:
	adrp	x8, _APDS990X_LUX_OUTPUT_SCALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APDS990X_LUX_OUTPUT_SCALE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #32]
	mul	w8, w9, w8
Lloh5:
	adrp	x9, _again@GOTPAGE
Lloh6:
	ldr	x9, [x9, _again@GOTPAGEOFF]
	mul	w8, w8, w10
Lloh7:
	ldr	x9, [x9]
	ldr	x10, [x19]
	ldr	w9, [x9, x10, lsl #2]
	ldr	w10, [x19, #8]
	mul	w9, w9, w10
	sdiv	w8, w8, w9
	mul	w8, w8, w0
	ldr	w9, [x20]
	sdiv	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_APDS_PARAM_SCALE,4,2           ; @APDS_PARAM_SCALE
	.comm	_APDS990X_LUX_OUTPUT_SCALE,4,2  ; @APDS990X_LUX_OUTPUT_SCALE
	.comm	_again,8,3                      ; @again
	.no_dead_strip	_apds990x_get_lux
.subsections_via_symbols
