	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_sensors_irq_thread
_st_sensors_irq_thread:                 ## @st_sensors_irq_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_iio_trigger_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_st_sensors_new_samples_available
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_iio_trigger_poll_chained
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r13
	cmpl	$0, 16(%rbx)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_st_sensors_new_samples_available
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	%r12, %rsi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_iio_get_time_ns
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_iio_trigger_poll_chained
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_IRQ_NONE@GOTPCREL(%rip), %r13
LBB0_7:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious IRQ\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"more samples came in during polling\n"

	.no_dead_strip	_st_sensors_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_sensors_irq_thread
_st_sensors_irq_thread:                 ; @st_sensors_irq_thread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x0, x1
	bl	_iio_trigger_get_drvdata
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_st_sensors_new_samples_available
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_iio_trigger_poll_chained
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_8
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.4:
Lloh0:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_st_sensors_new_samples_available
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, #4]
	mov	x1, x22
	bl	_dev_dbg
	mov	x0, x20
	bl	_iio_get_time_ns
	str	w0, [x21]
	mov	x0, x19
	bl	_iio_trigger_poll_chained
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
	b	LBB0_9
LBB0_7:
	ldr	w0, [x21, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh6:
	adrp	x23, _IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious IRQ\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"more samples came in during polling\n"

	.no_dead_strip	_st_sensors_irq_thread
.subsections_via_symbols
