	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xadc_handle_event
_xadc_handle_event:                     ## @xadc_handle_event
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_xadc_event_to_channel
	movq	(%rax), %rdi
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	movl	8(%rax), %esi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpq	(%rcx), %rdi
	jne	LBB0_2
## %bb.3:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	retq
LBB0_2:
	movq	_IIO_EV_DIR_EITHER@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ecx
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iio_push_event                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_TEMP,8,3                   ## @IIO_TEMP
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_EITHER,4,2          ## @IIO_EV_DIR_EITHER
	.no_dead_strip	_xadc_handle_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xadc_handle_event
_xadc_handle_event:                     ; @xadc_handle_event
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_xadc_event_to_channel
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x0, #8]
Lloh3:
	adrp	x10, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh5:
	adrp	x11, _IIO_EV_DIR_RISING@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x10]
Lloh8:
	adrp	x10, _IIO_EV_DIR_EITHER@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IIO_EV_DIR_EITHER@GOTPAGEOFF]
	cmp	x8, x9
	csel	x9, x11, x10, eq
	ldr	w3, [x9]
	mov	x0, 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
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iio_push_event
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_TEMP,8,3                   ; @IIO_TEMP
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_EITHER,4,2          ; @IIO_EV_DIR_EITHER
	.no_dead_strip	_xadc_handle_event
.subsections_via_symbols
