	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_uvis25_buffer_handler_thread
_st_uvis25_buffer_handler_thread:       ## @st_uvis25_buffer_handler_thread
	.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
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$4, %edi
	movl	$4, %esi
	callq	_ALIGN
	cltq
	leaq	16(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movl	4(%rax), %edi
	movq	_ST_UVIS25_REG_OUT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_iio_push_to_buffers_with_timestamp
LBB0_2:
	movl	(%r15), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_UVIS25_REG_OUT_ADDR,4,2     ## @ST_UVIS25_REG_OUT_ADDR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_st_uvis25_buffer_handler_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_uvis25_buffer_handler_thread
_st_uvis25_buffer_handler_thread:       ; @st_uvis25_buffer_handler_thread
	.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
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w0, #4
	mov	w1, #4
	bl	_ALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #2, #32
	add	x9, x8, #16
	add	x8, x8, #31
	and	x8, x8, #0xfffffffffffffff0
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
	ldr	x21, [x20]
	mov	x0, x21
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh5:
	adrp	x8, _ST_UVIS25_REG_OUT_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_UVIS25_REG_OUT_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_regmap_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_iio_push_to_buffers_with_timestamp
LBB0_2:
	ldr	w0, [x20]
	bl	_iio_trigger_notify_done
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #32
	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
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_UVIS25_REG_OUT_ADDR,4,2     ; @ST_UVIS25_REG_OUT_ADDR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_st_uvis25_buffer_handler_thread
.subsections_via_symbols
