	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds990x_irq
_apds990x_irq:                          ## @apds990x_irq
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_APDS990X_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_apds990x_read_byte
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_apds990x_ack_int
	leaq	64(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	72(%rbx), %rdi
	callq	_pm_runtime_suspended
	testl	%eax, %eax
	je	LBB0_1
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_APDS990X_ST_AINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_4
## %bb.2:
	movq	_APDS990X_CDATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_apds990x_read_word
	movq	_APDS990X_IRDATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_apds990x_read_word
	movq	24(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_apds990x_get_lux
	movl	%eax, 100(%rbx)
	movq	%rbx, %rdi
	callq	_apds990x_calc_again
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	100(%rbx), %eax
	movl	%eax, 104(%rbx)
	movl	$0, 32(%rbx)
	leaq	96(%rbx), %rdi
	callq	_wake_up
	movq	72(%rbx), %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
LBB0_4:
	movq	_APDS990X_ST_PINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_16
## %bb.5:
	cmpq	$0, 88(%rbx)
	je	LBB0_16
## %bb.6:
	movq	_APDS990X_CDATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_apds990x_read_word
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
## %bb.7:
	movq	-40(%rbp), %rax
	cmpq	40(%rbx), %rax
	jne	LBB0_9
## %bb.8:
	leaq	48(%rbx), %r15
	movq	$0, 48(%rbx)
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_9:
	movq	_APDS990X_PDATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	48(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_apds990x_read_word
	movq	48(%rbx), %rsi
LBB0_10:
	movq	%rbx, %rdi
	callq	_apds990x_refresh_pthres
	movq	48(%rbx), %rax
	cmpq	56(%rbx), %rax
	jge	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	cmpl	$0, 80(%rbx)
	jne	LBB0_15
## %bb.13:
	movq	_APDS_PROX_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	movq	%rax, (%r15)
LBB0_15:
	movq	72(%rbx), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_APDS990X_STATUS,4,2            ## @APDS990X_STATUS
	.comm	_APDS990X_ST_AINT,4,2           ## @APDS990X_ST_AINT
	.comm	_APDS990X_CDATAL,4,2            ## @APDS990X_CDATAL
	.comm	_APDS990X_IRDATAL,4,2           ## @APDS990X_IRDATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lux0_input"

	.comm	_APDS990X_ST_PINT,4,2           ## @APDS990X_ST_PINT
	.comm	_APDS990X_PDATAL,4,2            ## @APDS990X_PDATAL
	.comm	_APDS_PROX_RANGE,8,3            ## @APDS_PROX_RANGE
L_.str.1:                               ## @.str.1
	.asciz	"prox0_raw"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_apds990x_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds990x_irq
_apds990x_irq:                          ; @apds990x_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _APDS990X_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APDS990X_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_apds990x_read_byte
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_apds990x_ack_int
	add	x20, x19, #64
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x19, #72]
	bl	_pm_runtime_suspended
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _APDS990X_ST_AINT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APDS990X_ST_AINT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x21, _APDS990X_CDATAL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _APDS990X_CDATAL@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x19
	bl	_apds990x_read_word
Lloh11:
	adrp	x8, _APDS990X_IRDATAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _APDS990X_IRDATAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, x19, #8
	mov	x0, x19
	bl	_apds990x_read_word
	ldr	x8, [x19, #24]
	str	x8, [x19, #16]
	ldp	x1, x2, [x19]
	mov	x0, x19
	bl	_apds990x_get_lux
	str	w0, [x19, #100]
	mov	x0, x19
	bl	_apds990x_calc_again
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x19, #100]
	str	w8, [x19, #104]
	str	wzr, [x19, #32]
	add	x0, x19, #96
	bl	_wake_up
	ldr	x0, [x19, #72]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
LBB0_5:
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _APDS990X_ST_PINT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _APDS990X_ST_PINT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.6:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_1
; %bb.7:
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	bl	_apds990x_read_word
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
; %bb.8:
	ldr	x8, [sp]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x1, #0
	mov	x21, x19
	str	xzr, [x21, #48]!
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x8, _APDS990X_PDATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _APDS990X_PDATAL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x21, x19, #48
	mov	x0, x19
	mov	x2, x21
	bl	_apds990x_read_word
	ldr	x1, [x19, #48]
LBB0_11:
	mov	x0, x19
	bl	_apds990x_refresh_pthres
	ldp	x8, x9, [x19, #48]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.12:
	mov	x8, #0
	b	LBB0_15
LBB0_13:
	ldr	w8, [x19, #80]
	cbnz	w8, LBB0_16
; %bb.14:
Lloh22:
	adrp	x8, _APDS_PROX_RANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _APDS_PROX_RANGE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
LBB0_15:
	str	x8, [x21]
LBB0_16:
	ldr	x0, [x19, #72]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_APDS990X_STATUS,4,2            ; @APDS990X_STATUS
	.comm	_APDS990X_ST_AINT,4,2           ; @APDS990X_ST_AINT
	.comm	_APDS990X_CDATAL,4,2            ; @APDS990X_CDATAL
	.comm	_APDS990X_IRDATAL,4,2           ; @APDS990X_IRDATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lux0_input"

	.comm	_APDS990X_ST_PINT,4,2           ; @APDS990X_ST_PINT
	.comm	_APDS990X_PDATAL,4,2            ; @APDS990X_PDATAL
	.comm	_APDS_PROX_RANGE,8,3            ; @APDS_PROX_RANGE
l_.str.1:                               ; @.str.1
	.asciz	"prox0_raw"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_apds990x_irq
.subsections_via_symbols
