	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hts221_buffer_handler_thread
_hts221_buffer_handler_thread:          ## @hts221_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_HTS221_DATA_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	addl	%edi, %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
	movq	(%rbx), %rax
	movq	_HTS221_SENSOR_H@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%r15), %edi
	movl	(%rax,%rcx,4), %esi
	movl	(%r12), %ecx
	movq	%r14, %rdx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_HTS221_SENSOR_T@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%r15), %edi
	movl	(%rax,%rcx,4), %esi
	movslq	(%r12), %rcx
	leaq	(%r14,%rcx,4), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	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_3:
	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	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HTS221_DATA_SIZE,4,2           ## @HTS221_DATA_SIZE
	.comm	_HTS221_SENSOR_H,8,3            ## @HTS221_SENSOR_H
	.comm	_HTS221_SENSOR_T,8,3            ## @HTS221_SENSOR_T
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hts221_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 hts221_buffer_handler_thread
_hts221_buffer_handler_thread:          ; @hts221_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]
Lloh3:
	adrp	x22, _HTS221_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HTS221_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w0, w8, #1
	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
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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
Lloh7:
	adrp	x8, _HTS221_SENSOR_H@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HTS221_SENSOR_H@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh9:
	ldr	x8, [x8]
	ldr	w0, [x0, #4]
	ldr	w1, [x9, x8, lsl #2]
	ldr	w3, [x22]
	mov	x2, x19
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _HTS221_SENSOR_T@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HTS221_SENSOR_T@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w0, [x20, #4]
	ldr	w1, [x8, x9, lsl #2]
	ldrsw	x3, [x22]
	add	x2, x19, x3, lsl #2
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_3
; %bb.2:
	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_3:
	ldr	w0, [x20]
	bl	_iio_trigger_notify_done
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HTS221_DATA_SIZE,4,2           ; @HTS221_DATA_SIZE
	.comm	_HTS221_SENSOR_H,8,3            ; @HTS221_SENSOR_H
	.comm	_HTS221_SENSOR_T,8,3            ; @HTS221_SENSOR_T
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hts221_buffer_handler_thread
.subsections_via_symbols
