	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xadc_get_threshold_offset
_xadc_get_threshold_offset:             ## @xadc_get_threshold_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_XADC_THRESHOLD_OT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_5
LBB0_2:
	movl	8(%rdi), %ecx
	cmpl	$1, %ecx
	jg	LBB0_4
## %bb.3:
	incl	%ecx
	jmp	LBB0_5
LBB0_4:
	addl	$6, %ecx
LBB0_5:
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rdx
	leal	4(%rcx), %eax
	cmpl	%esi, (%rdx)
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_TEMP,8,3                   ## @IIO_TEMP
	.comm	_XADC_THRESHOLD_OT_MAX,4,2      ## @XADC_THRESHOLD_OT_MAX
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.no_dead_strip	_xadc_get_threshold_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xadc_get_threshold_offset
_xadc_get_threshold_offset:             ; @xadc_get_threshold_offset
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _XADC_THRESHOLD_OT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XADC_THRESHOLD_OT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	add	w9, w8, #6
	csinc	w8, w9, w8, gt
LBB0_3:
Lloh6:
	adrp	x9, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w10, w8, #4
	cmp	w9, w1
	csel	w0, w10, w8, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_TEMP,8,3                   ; @IIO_TEMP
	.comm	_XADC_THRESHOLD_OT_MAX,4,2      ; @XADC_THRESHOLD_OT_MAX
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.no_dead_strip	_xadc_get_threshold_offset
.subsections_via_symbols
