	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp2ap020a00f_prox_sensing_handler
_gp2ap020a00f_prox_sensing_handler:     ## @gp2ap020a00f_prox_sensing_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_GP2AP020A00F_OP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_gp2ap020a00f_prox_detect_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_GP2AP020A00F_PROX_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IIO_PROXIMITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_GP2AP020A00F_SCAN_MODE_PROXIMITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IIO_EV_TYPE_ROC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	-20(%rbp), %eax
	jne	LBB0_3
## %bb.4:
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iio_push_event
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GP2AP020A00F_OP_REG,4,2        ## @GP2AP020A00F_OP_REG
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_GP2AP020A00F_PROX_DETECT,4,2   ## @GP2AP020A00F_PROX_DETECT
	.comm	_IIO_PROXIMITY,4,2              ## @IIO_PROXIMITY
	.comm	_GP2AP020A00F_SCAN_MODE_PROXIMITY,4,2 ## @GP2AP020A00F_SCAN_MODE_PROXIMITY
	.comm	_IIO_EV_TYPE_ROC,4,2            ## @IIO_EV_TYPE_ROC
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.no_dead_strip	_gp2ap020a00f_prox_sensing_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp2ap020a00f_prox_sensing_handler
_gp2ap020a00f_prox_sensing_handler:     ; @gp2ap020a00f_prox_sensing_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GP2AP020A00F_OP_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GP2AP020A00F_OP_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_gp2ap020a00f_prox_detect_enabled
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _GP2AP020A00F_PROX_DETECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GP2AP020A00F_PROX_DETECT@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _IIO_PROXIMITY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IIO_PROXIMITY@GOTPAGEOFF]
Lloh8:
	adrp	x11, _GP2AP020A00F_SCAN_MODE_PROXIMITY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _GP2AP020A00F_SCAN_MODE_PROXIMITY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x10]
Lloh11:
	ldr	w1, [x11]
Lloh12:
	adrp	x10, _IIO_EV_TYPE_ROC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IIO_EV_TYPE_ROC@GOTPAGEOFF]
Lloh14:
	adrp	x11, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x10]
Lloh17:
	adrp	x10, _IIO_EV_DIR_RISING@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IIO_EV_DIR_RISING@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x11, x10, eq
	ldr	w3, [x8]
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x20, x0
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iio_push_event
LBB0_3:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GP2AP020A00F_OP_REG,4,2        ; @GP2AP020A00F_OP_REG
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_GP2AP020A00F_PROX_DETECT,4,2   ; @GP2AP020A00F_PROX_DETECT
	.comm	_IIO_PROXIMITY,4,2              ; @IIO_PROXIMITY
	.comm	_GP2AP020A00F_SCAN_MODE_PROXIMITY,4,2 ; @GP2AP020A00F_SCAN_MODE_PROXIMITY
	.comm	_IIO_EV_TYPE_ROC,4,2            ; @IIO_EV_TYPE_ROC
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.no_dead_strip	_gp2ap020a00f_prox_sensing_handler
.subsections_via_symbols
