	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx25_tcq_irq_thread
_mx25_tcq_irq_thread:                   ## @mx25_tcq_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TSC_MAX_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	4(%r15), %edi
	movq	_MX25_ADCQ_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	movl	-52(%rbp), %edi
	callq	_MX25_ADCQ_SR_FDN
	movl	%eax, %r12d
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	divl	(%r15)
	subl	%edx, %r12d
	je	LBB0_4
## %bb.1:
	movq	_MX25_ADCQ_FIFO@GOTPCREL(%rip), %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_regmap_read
	addq	$4, %rbx
	incl	%r13d
	cmpl	%r12d, %r13d
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_mx25_tcq_create_event_for_4wire
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TSC_MAX_SAMPLES,4,2            ## @TSC_MAX_SAMPLES
	.comm	_MX25_ADCQ_SR,4,2               ## @MX25_ADCQ_SR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_MX25_ADCQ_FIFO,4,2             ## @MX25_ADCQ_FIFO
	.no_dead_strip	_mx25_tcq_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx25_tcq_irq_thread
_mx25_tcq_irq_thread:                   ; @mx25_tcq_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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _TSC_MAX_SAMPLES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSC_MAX_SAMPLES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x1, #4]
Lloh8:
	adrp	x8, _MX25_ADCQ_SR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MX25_ADCQ_SR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x2, x29, #60
	bl	_regmap_read
	ldur	w0, [x29, #-60]
	bl	_MX25_ADCQ_SR_FDN
	ldr	w8, [x19]
	udiv	w9, w0, w8
	mul	w21, w9, w8
	sub	w8, w0, w21
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w23, #0
Lloh11:
	adrp	x24, _MX25_ADCQ_FIFO@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MX25_ADCQ_FIFO@GOTPAGEOFF]
	mov	x22, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
	mov	x2, x22
	bl	_regmap_read
	add	x22, x22, #4
	add	w23, w23, #1
	cmp	w23, w21
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mx25_tcq_create_event_for_4wire
LBB0_4:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
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_6
; %bb.5:
	sub	sp, x29, #48
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TSC_MAX_SAMPLES,4,2            ; @TSC_MAX_SAMPLES
	.comm	_MX25_ADCQ_SR,4,2               ; @MX25_ADCQ_SR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_MX25_ADCQ_FIFO,4,2             ; @MX25_ADCQ_FIFO
	.no_dead_strip	_mx25_tcq_irq_thread
.subsections_via_symbols
