	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds990x_lux_show
_apds990x_lux_show:                     ## @apds990x_lux_show
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_pm_runtime_suspended
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$0, 12(%r12)
	movl	16(%r12), %r15d
	sete	%bl
	movq	_APDS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%r12), %eax
	imull	(%r12), %eax
	movq	_APDS_CALIB_SCALER@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_APDS_RANGE@GOTPCREL(%rip), %rcx
	movq	_APDS990X_LUX_OUTPUT_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	(%rcx), %ecx
	imull	%esi, %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_sprintf
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_APDS_TIMEOUT,4,2               ## @APDS_TIMEOUT
	.comm	_APDS_CALIB_SCALER,4,2          ## @APDS_CALIB_SCALER
	.comm	_APDS_RANGE,4,2                 ## @APDS_RANGE
	.comm	_APDS990X_LUX_OUTPUT_SCALE,4,2  ## @APDS990X_LUX_OUTPUT_SCALE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d\n"

	.no_dead_strip	_apds990x_lux_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds990x_lux_show
_apds990x_lux_show:                     ; @apds990x_lux_show
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_pm_runtime_suspended
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	ldp	w8, w21, [x20, #12]
	cmp	w8, #0
	cset	w22, eq
Lloh3:
	adrp	x8, _APDS_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APDS_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_wait_event_interruptible_timeout
	cbz	x0, LBB0_1
; %bb.3:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
Lloh6:
	adrp	x9, _APDS_CALIB_SCALER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APDS_CALIB_SCALER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
Lloh9:
	adrp	x9, _APDS_RANGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _APDS_RANGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _APDS990X_LUX_OUTPUT_SCALE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _APDS990X_LUX_OUTPUT_SCALE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sdiv	w2, w8, w10
	msub	w3, w2, w10, w8
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_APDS_TIMEOUT,4,2               ; @APDS_TIMEOUT
	.comm	_APDS_CALIB_SCALER,4,2          ; @APDS_CALIB_SCALER
	.comm	_APDS_RANGE,4,2                 ; @APDS_RANGE
	.comm	_APDS990X_LUX_OUTPUT_SCALE,4,2  ; @APDS990X_LUX_OUTPUT_SCALE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d\n"

	.no_dead_strip	_apds990x_lux_show
.subsections_via_symbols
