	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hmc5843_trigger_handler
_hmc5843_trigger_handler:               ## @hmc5843_trigger_handler
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r14
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_hmc5843_wait_measurement
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movl	8(%rbx), %edi
	movq	_HMC5843_DATA_OUT_MSB_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	js	LBB0_4
## %bb.3:
	movl	(%rbx), %ebx
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iio_push_to_buffers_with_timestamp
	jmp	LBB0_4
LBB0_1:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	(%r14), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HMC5843_DATA_OUT_MSB_REGS,4,2  ## @HMC5843_DATA_OUT_MSB_REGS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hmc5843_trigger_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hmc5843_trigger_handler
_hmc5843_trigger_handler:               ; @hmc5843_trigger_handler
	.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
	ldr	x19, [x1]
	mov	x0, x19
	bl	_iio_priv
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	bl	_hmc5843_wait_measurement
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _HMC5843_DATA_OUT_MSB_REGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HMC5843_DATA_OUT_MSB_REGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #12
	bl	_regmap_bulk_read
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_4
; %bb.2:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iio_push_to_buffers_with_timestamp
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_4:
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HMC5843_DATA_OUT_MSB_REGS,4,2  ; @HMC5843_DATA_OUT_MSB_REGS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hmc5843_trigger_handler
.subsections_via_symbols
