	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp2ap020a00f_read_event_config
_gp2ap020a00f_read_event_config:        ## @gp2ap020a00f_read_event_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_GP2AP020A00F_FLAG_PROX_RISING_EV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_GP2AP020A00F_FLAG_ALS_RISING_EV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_GP2AP020A00F_FLAG_PROX_FALLING_EV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_GP2AP020A00F_FLAG_ALS_FALLING_EV@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$4, %rsi
	callq	_test_bit
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_GP2AP020A00F_FLAG_PROX_RISING_EV,4,2 ## @GP2AP020A00F_FLAG_PROX_RISING_EV
	.comm	_GP2AP020A00F_FLAG_PROX_FALLING_EV,4,2 ## @GP2AP020A00F_FLAG_PROX_FALLING_EV
	.comm	_GP2AP020A00F_FLAG_ALS_RISING_EV,4,2 ## @GP2AP020A00F_FLAG_ALS_RISING_EV
	.comm	_GP2AP020A00F_FLAG_ALS_FALLING_EV,4,2 ## @GP2AP020A00F_FLAG_ALS_FALLING_EV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gp2ap020a00f_read_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp2ap020a00f_read_event_config
_gp2ap020a00f_read_event_config:        ; @gp2ap020a00f_read_event_config
	.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	x20, x3
	mov	x21, x1
	bl	_iio_priv
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _GP2AP020A00F_FLAG_PROX_RISING_EV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_PROX_RISING_EV@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _GP2AP020A00F_FLAG_ALS_RISING_EV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_ALS_RISING_EV@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _GP2AP020A00F_FLAG_PROX_FALLING_EV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_PROX_FALLING_EV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _GP2AP020A00F_FLAG_ALS_FALLING_EV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GP2AP020A00F_FLAG_ALS_FALLING_EV@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	mov	x20, x0
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_GP2AP020A00F_FLAG_PROX_RISING_EV,4,2 ; @GP2AP020A00F_FLAG_PROX_RISING_EV
	.comm	_GP2AP020A00F_FLAG_PROX_FALLING_EV,4,2 ; @GP2AP020A00F_FLAG_PROX_FALLING_EV
	.comm	_GP2AP020A00F_FLAG_ALS_RISING_EV,4,2 ; @GP2AP020A00F_FLAG_ALS_RISING_EV
	.comm	_GP2AP020A00F_FLAG_ALS_FALLING_EV,4,2 ; @GP2AP020A00F_FLAG_ALS_FALLING_EV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gp2ap020a00f_read_event_config
.subsections_via_symbols
