	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp2ap020a00f_thresh_event_handler
_gp2ap020a00f_thresh_event_handler:     ## @gp2ap020a00f_thresh_event_handler
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, %r13
	movl	28(%rax), %edi
	movq	_GP2AP020A00F_OP_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_21
## %bb.1:
	movq	_GP2AP020A00F_FLAG_A@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_GP2AP020A00F_FLAG_P@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%eax, %ebx
	movq	_GP2AP020A00F_PROX_DETECT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	-64(%rbp), %r14d
	movl	%ebx, %edx
	notl	%edx
	andl	%r14d, %edx
	movl	%edx, -64(%rbp)
	movq	(%r13), %rcx
	movq	_GP2AP020A00F_OPMODE_PROX_DETECT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_4
## %bb.2:
	movl	28(%r13), %edi
	movl	(%r15), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_21
## %bb.3:
	movl	(%r12), %eax
LBB0_4:
	andl	%r14d, %ebx
	testl	%eax, %ebx
	je	LBB0_13
## %bb.5:
	movl	28(%r13), %edi
	movq	_GP2AP020A00F_D0_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	$2, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_21
## %bb.6:
	leaq	-56(%rbp), %rdi
	callq	_le16_to_cpup
	movl	%eax, -60(%rbp)
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_gp2ap020a00f_adjust_lux_mode
	testq	%rax, %rax
	jne	LBB0_21
## %bb.7:
	leaq	-60(%rbp), %rsi
	movq	%r13, %rdi
	callq	_gp2ap020a00f_output_to_lux
	movq	_GP2AP020A00F_FLAG_ALS_RISING_EV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r13), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_GP2AP020A00F_TH_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GP2AP020A00F_THRESH_VAL_ID
	movl	-60(%rbp), %ecx
	movq	8(%r13), %rdx
	cltq
	cmpl	(%rdx,%rax,4), %ecx
	jbe	LBB0_10
## %bb.9:
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IIO_MOD_LIGHT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_IIO_MOD_EVENT_CODE
	movl	%eax, %r12d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_iio_push_event
LBB0_10:
	movq	_GP2AP020A00F_FLAG_ALS_FALLING_EV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_GP2AP020A00F_TL_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GP2AP020A00F_THRESH_VAL_ID
	movl	-60(%rbp), %ecx
	movq	8(%r13), %rdx
	cltq
	cmpl	(%rdx,%rax,4), %ecx
	jae	LBB0_13
## %bb.12:
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IIO_MOD_LIGHT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_IIO_MOD_EVENT_CODE
	movl	%eax, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_iio_push_event
LBB0_13:
	movq	(%r13), %rax
	movq	_GP2AP020A00F_OPMODE_READ_RAW_CLEAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.14:
	movq	_GP2AP020A00F_OPMODE_READ_RAW_IR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	movq	_GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.17:
	movq	_GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r13), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	movq	_GP2AP020A00F_FLAG_ALS_IR_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_GP2AP020A00F_FLAG_PROX_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_irq_work_queue
	jmp	LBB0_21
LBB0_16:
	movq	_GP2AP020A00F_FLAG_DATA_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r13), %rsi
	callq	_set_bit
	addq	$24, %r13
	movq	%r13, %rdi
	callq	_wake_up
LBB0_21:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GP2AP020A00F_OP_REG,4,2        ## @GP2AP020A00F_OP_REG
	.comm	_GP2AP020A00F_FLAG_A,4,2        ## @GP2AP020A00F_FLAG_A
	.comm	_GP2AP020A00F_FLAG_P,4,2        ## @GP2AP020A00F_FLAG_P
	.comm	_GP2AP020A00F_PROX_DETECT,4,2   ## @GP2AP020A00F_PROX_DETECT
	.comm	_GP2AP020A00F_OPMODE_PROX_DETECT,8,3 ## @GP2AP020A00F_OPMODE_PROX_DETECT
	.comm	_GP2AP020A00F_D0_L_REG,4,2      ## @GP2AP020A00F_D0_L_REG
	.comm	_GP2AP020A00F_FLAG_ALS_RISING_EV,4,2 ## @GP2AP020A00F_FLAG_ALS_RISING_EV
	.comm	_GP2AP020A00F_TH_L_REG,4,2      ## @GP2AP020A00F_TH_L_REG
	.comm	_IIO_LIGHT,4,2                  ## @IIO_LIGHT
	.comm	_GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR,4,2 ## @GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR
	.comm	_IIO_MOD_LIGHT_CLEAR,4,2        ## @IIO_MOD_LIGHT_CLEAR
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_GP2AP020A00F_FLAG_ALS_FALLING_EV,4,2 ## @GP2AP020A00F_FLAG_ALS_FALLING_EV
	.comm	_GP2AP020A00F_TL_L_REG,4,2      ## @GP2AP020A00F_TL_L_REG
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.comm	_GP2AP020A00F_OPMODE_READ_RAW_CLEAR,8,3 ## @GP2AP020A00F_OPMODE_READ_RAW_CLEAR
	.comm	_GP2AP020A00F_OPMODE_READ_RAW_IR,8,3 ## @GP2AP020A00F_OPMODE_READ_RAW_IR
	.comm	_GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY,8,3 ## @GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY
	.comm	_GP2AP020A00F_FLAG_DATA_READY,4,2 ## @GP2AP020A00F_FLAG_DATA_READY
	.comm	_GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER,4,2 ## @GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER
	.comm	_GP2AP020A00F_FLAG_ALS_IR_TRIGGER,4,2 ## @GP2AP020A00F_FLAG_ALS_IR_TRIGGER
	.comm	_GP2AP020A00F_FLAG_PROX_TRIGGER,4,2 ## @GP2AP020A00F_FLAG_PROX_TRIGGER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_gp2ap020a00f_thresh_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp2ap020a00f_thresh_event_handler
_gp2ap020a00f_thresh_event_handler:     ; @gp2ap020a00f_thresh_event_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	w0, [x0, #28]
Lloh3:
	adrp	x22, _GP2AP020A00F_OP_REG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GP2AP020A00F_OP_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	bl	_regmap_read
	tbnz	w0, #31, LBB0_21
; %bb.1:
	ldr	w21, [sp, #8]
Lloh5:
	adrp	x23, _GP2AP020A00F_FLAG_A@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GP2AP020A00F_FLAG_A@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x9, _GP2AP020A00F_FLAG_P@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GP2AP020A00F_FLAG_P@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh10:
	adrp	x10, _GP2AP020A00F_PROX_DETECT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _GP2AP020A00F_PROX_DETECT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w24, w9, w10
	bic	w2, w21, w24
	str	w2, [sp, #8]
	ldr	x9, [x19]
Lloh13:
	adrp	x10, _GP2AP020A00F_OPMODE_PROX_DETECT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _GP2AP020A00F_OPMODE_PROX_DETECT@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19, #28]
	ldr	w1, [x22]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_21
; %bb.3:
	ldr	w8, [x23]
LBB0_4:
	and	w9, w24, w21
	tst	w9, w8
	b.eq	LBB0_13
; %bb.5:
	ldr	w0, [x19, #28]
Lloh16:
	adrp	x8, _GP2AP020A00F_D0_L_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GP2AP020A00F_D0_L_REG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	w3, #2
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_21
; %bb.6:
	add	x0, sp, #16
	bl	_le16_to_cpup
	mov	x1, x0
	str	w0, [sp, #12]
	mov	x0, x19
	bl	_gp2ap020a00f_adjust_lux_mode
	cbnz	x0, LBB0_21
; %bb.7:
	add	x1, sp, #12
	mov	x0, x19
	bl	_gp2ap020a00f_output_to_lux
Lloh19:
	adrp	x8, _GP2AP020A00F_FLAG_ALS_RISING_EV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_ALS_RISING_EV@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x21, x19, #20
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.8:
Lloh22:
	adrp	x8, _GP2AP020A00F_TH_L_REG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GP2AP020A00F_TH_L_REG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_GP2AP020A00F_THRESH_VAL_ID
	ldr	w8, [sp, #12]
	ldr	x9, [x19, #8]
	ldr	w9, [x9, w0, sxtw #2]
	cmp	w8, w9
	b.ls	LBB0_10
; %bb.9:
Lloh25:
	adrp	x8, _IIO_LIGHT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IIO_LIGHT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _IIO_MOD_LIGHT_CLEAR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IIO_MOD_LIGHT_CLEAR@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh39:
	ldr	w4, [x8]
	bl	_IIO_MOD_EVENT_CODE
	mov	x22, x0
	mov	x0, x20
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_iio_push_event
LBB0_10:
Lloh40:
	adrp	x8, _GP2AP020A00F_FLAG_ALS_FALLING_EV@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_ALS_FALLING_EV@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.11:
Lloh43:
	adrp	x8, _GP2AP020A00F_TL_L_REG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _GP2AP020A00F_TL_L_REG@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_GP2AP020A00F_THRESH_VAL_ID
	ldr	w8, [sp, #12]
	ldr	x9, [x19, #8]
	ldr	w9, [x9, w0, sxtw #2]
	cmp	w8, w9
	b.hs	LBB0_13
; %bb.12:
Lloh46:
	adrp	x8, _IIO_LIGHT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IIO_LIGHT@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x8, _GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _IIO_MOD_LIGHT_CLEAR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IIO_MOD_LIGHT_CLEAR@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
Lloh55:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
Lloh58:
	adrp	x8, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh60:
	ldr	w4, [x8]
	bl	_IIO_MOD_EVENT_CODE
	mov	x21, x0
	mov	x0, x20
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_iio_push_event
LBB0_13:
	ldr	x8, [x19]
Lloh61:
	adrp	x9, _GP2AP020A00F_OPMODE_READ_RAW_CLEAR@GOTPAGE
Lloh62:
	ldr	x9, [x9, _GP2AP020A00F_OPMODE_READ_RAW_CLEAR@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.14:
Lloh64:
	adrp	x9, _GP2AP020A00F_OPMODE_READ_RAW_IR@GOTPAGE
Lloh65:
	ldr	x9, [x9, _GP2AP020A00F_OPMODE_READ_RAW_IR@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.15:
Lloh67:
	adrp	x9, _GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY@GOTPAGE
Lloh68:
	ldr	x9, [x9, _GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.16:
Lloh70:
	adrp	x8, _GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER@GOTPAGE
Lloh71:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	add	x20, x19, #20
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_19
; %bb.17:
Lloh73:
	adrp	x8, _GP2AP020A00F_FLAG_ALS_IR_TRIGGER@GOTPAGE
Lloh74:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_ALS_IR_TRIGGER@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_19
; %bb.18:
Lloh76:
	adrp	x8, _GP2AP020A00F_FLAG_PROX_TRIGGER@GOTPAGE
Lloh77:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_PROX_TRIGGER@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_21
LBB0_19:
	add	x0, x19, #16
	bl	_irq_work_queue
	b	LBB0_21
LBB0_20:
Lloh79:
	adrp	x8, _GP2AP020A00F_FLAG_DATA_READY@GOTPAGE
Lloh80:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_DATA_READY@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	add	x0, x19, #24
	bl	_wake_up
LBB0_21:
Lloh82:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh83:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh85:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh86:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh87:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_GP2AP020A00F_OP_REG,4,2        ; @GP2AP020A00F_OP_REG
	.comm	_GP2AP020A00F_FLAG_A,4,2        ; @GP2AP020A00F_FLAG_A
	.comm	_GP2AP020A00F_FLAG_P,4,2        ; @GP2AP020A00F_FLAG_P
	.comm	_GP2AP020A00F_PROX_DETECT,4,2   ; @GP2AP020A00F_PROX_DETECT
	.comm	_GP2AP020A00F_OPMODE_PROX_DETECT,8,3 ; @GP2AP020A00F_OPMODE_PROX_DETECT
	.comm	_GP2AP020A00F_D0_L_REG,4,2      ; @GP2AP020A00F_D0_L_REG
	.comm	_GP2AP020A00F_FLAG_ALS_RISING_EV,4,2 ; @GP2AP020A00F_FLAG_ALS_RISING_EV
	.comm	_GP2AP020A00F_TH_L_REG,4,2      ; @GP2AP020A00F_TH_L_REG
	.comm	_IIO_LIGHT,4,2                  ; @IIO_LIGHT
	.comm	_GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR,4,2 ; @GP2AP020A00F_SCAN_MODE_LIGHT_CLEAR
	.comm	_IIO_MOD_LIGHT_CLEAR,4,2        ; @IIO_MOD_LIGHT_CLEAR
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_GP2AP020A00F_FLAG_ALS_FALLING_EV,4,2 ; @GP2AP020A00F_FLAG_ALS_FALLING_EV
	.comm	_GP2AP020A00F_TL_L_REG,4,2      ; @GP2AP020A00F_TL_L_REG
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.comm	_GP2AP020A00F_OPMODE_READ_RAW_CLEAR,8,3 ; @GP2AP020A00F_OPMODE_READ_RAW_CLEAR
	.comm	_GP2AP020A00F_OPMODE_READ_RAW_IR,8,3 ; @GP2AP020A00F_OPMODE_READ_RAW_IR
	.comm	_GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY,8,3 ; @GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY
	.comm	_GP2AP020A00F_FLAG_DATA_READY,4,2 ; @GP2AP020A00F_FLAG_DATA_READY
	.comm	_GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER,4,2 ; @GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER
	.comm	_GP2AP020A00F_FLAG_ALS_IR_TRIGGER,4,2 ; @GP2AP020A00F_FLAG_ALS_IR_TRIGGER
	.comm	_GP2AP020A00F_FLAG_PROX_TRIGGER,4,2 ; @GP2AP020A00F_FLAG_PROX_TRIGGER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_gp2ap020a00f_thresh_event_handler
.subsections_via_symbols
