	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp2ap020a00f_get_thresh_reg
_gp2ap020a00f_get_thresh_reg:           ## @gp2ap020a00f_get_thresh_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_8
## %bb.3:
	movq	_GP2AP020A00F_PH_L_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_9
## %bb.6:
	movq	_GP2AP020A00F_TH_L_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_GP2AP020A00F_PL_L_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_GP2AP020A00F_TL_L_REG@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_GP2AP020A00F_PH_L_REG,4,2      ## @GP2AP020A00F_PH_L_REG
	.comm	_GP2AP020A00F_PL_L_REG,4,2      ## @GP2AP020A00F_PL_L_REG
	.comm	_GP2AP020A00F_TH_L_REG,4,2      ## @GP2AP020A00F_TH_L_REG
	.comm	_GP2AP020A00F_TL_L_REG,4,2      ## @GP2AP020A00F_TL_L_REG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gp2ap020a00f_get_thresh_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp2ap020a00f_get_thresh_reg
_gp2ap020a00f_get_thresh_reg:           ; @gp2ap020a00f_get_thresh_reg
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	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, w1
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _GP2AP020A00F_PH_L_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GP2AP020A00F_PH_L_REG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh6:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _GP2AP020A00F_TH_L_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GP2AP020A00F_TH_L_REG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
Lloh15:
	adrp	x8, _GP2AP020A00F_PL_L_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GP2AP020A00F_PL_L_REG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh18:
	adrp	x8, _GP2AP020A00F_TL_L_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GP2AP020A00F_TL_L_REG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_GP2AP020A00F_PH_L_REG,4,2      ; @GP2AP020A00F_PH_L_REG
	.comm	_GP2AP020A00F_PL_L_REG,4,2      ; @GP2AP020A00F_PL_L_REG
	.comm	_GP2AP020A00F_TH_L_REG,4,2      ; @GP2AP020A00F_TH_L_REG
	.comm	_GP2AP020A00F_TL_L_REG,4,2      ; @GP2AP020A00F_TL_L_REG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gp2ap020a00f_get_thresh_reg
.subsections_via_symbols
