	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ionic_tx_flush
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ionic_tx_flush
	.p2align	4, 0x90
_ionic_tx_flush:                        ## @ionic_tx_flush
	.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
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movq	24(%rdi), %r12
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	movq	%rax, 16(%r15)
	movq	(%rax), %r13
	movq	%r15, %rdi
	callq	_DEBUG_STATS_CQE_CNT
	incl	%r14d
	cmpl	(%r15), %r14d
	jae	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	4(%r13), %edi
	movl	4(%r15), %esi
	callq	_color_match
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rbx
	movq	24(%rbx), %rax
	movq	%rax, (%r12)
	movq	16(%r15), %rdx
	movq	8(%rbx), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ionic_tx_clean
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	(%rbx), %rbx
	movl	(%r13), %edi
	callq	_le16_to_cpu
	cmpq	%rax, %rbx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	cmpl	$0, 4(%r15)
	sete	%cl
	movl	%ecx, 4(%r15)
	jmp	LBB0_6
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ionic_intr_credits             ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_tx_flush                 ; -- Begin function ionic_tx_flush
	.p2align	2
_ionic_tx_flush:                        ; @ionic_tx_flush
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w19, #0
	ldp	x21, x8, [x0, #24]
	ldr	x23, [x8]
	ldr	x8, [x0, #16]
	ldr	x24, [x8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #8]
	str	x8, [x20, #16]
	ldr	x24, [x8]
	mov	x0, x20
	bl	_DEBUG_STATS_CQE_CNT
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w0, [x24, #4]
	ldr	w1, [x20, #4]
	bl	_color_match
	cbz	x0, LBB0_7
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x22, [x21]
	ldr	x8, [x22, #24]
	str	x8, [x21]
	ldr	x2, [x20, #16]
	ldr	x3, [x22, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_ionic_tx_clean
	stp	xzr, xzr, [x22, #8]
	ldr	x22, [x22]
	ldr	w0, [x24]
	bl	_le16_to_cpu
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20, #4]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x20, #4]
	b	LBB0_2
LBB0_7:
	cbz	w19, LBB0_9
LBB0_8:
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #0
	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
	b	_ionic_intr_credits
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
