	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_txrx_alloc
_ionic_txrx_alloc:                      ## @ionic_txrx_alloc
	.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	%rdi, %r12
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	_IONIC_QCQ_F_TX_STATS@GOTPCREL(%rip), %rax
	movq	_IONIC_QCQ_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	8(%r12), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IONIC_QTYPE_TXQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	32(%r12), %r10d
	movl	44(%r12), %r9d
	addq	%r13, %rax
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%ebx, %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %r8d
	pushq	%rax
	pushq	%r10
	pushq	$4
	pushq	$4
	pushq	$4
	callq	_ionic_qcq_alloc
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movl	8(%rax,%r13), %ecx
	movq	(%rax,%r13), %rdx
	movl	%ecx, 4(%rdx)
	incq	%rbx
	movl	(%r12), %ecx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jb	LBB0_2
LBB0_5:
	movq	_IONIC_QCQ_F_RX_STATS@GOTPCREL(%rip), %rax
	movq	_IONIC_QCQ_F_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	24(%r12), %rdi
	movl	40(%r12), %esi
	callq	_ionic_coal_usec_to_hw
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IONIC_QTYPE_RXQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r12), %r10d
	movl	36(%r12), %r9d
	movq	16(%r12), %rax
	addq	%rbx, %rax
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r13d, %edx
	leaq	L_.str.1(%rip), %rcx
	movl	%r14d, %r8d
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$4
	pushq	$4
	callq	_ionic_qcq_alloc
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r12), %rax
	movl	8(%rax,%rbx), %ecx
	movq	(%rax,%rbx), %rax
	movl	%ecx, 4(%rax)
	movq	24(%r12), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ionic_intr_coal_init
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	callq	_ionic_link_qcq_interrupts
	incq	%r13
	movl	(%r12), %eax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jb	LBB0_7
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_ionic_txrx_free
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_QCQ_F_TX_STATS,4,2       ## @IONIC_QCQ_F_TX_STATS
	.comm	_IONIC_QCQ_F_SG,4,2             ## @IONIC_QCQ_F_SG
	.comm	_IONIC_QTYPE_TXQ,4,2            ## @IONIC_QTYPE_TXQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

	.comm	_IONIC_QCQ_F_RX_STATS,4,2       ## @IONIC_QCQ_F_RX_STATS
	.comm	_IONIC_QCQ_F_INTR,4,2           ## @IONIC_QCQ_F_INTR
	.comm	_IONIC_QTYPE_RXQ,4,2            ## @IONIC_QTYPE_RXQ
L_.str.1:                               ## @.str.1
	.asciz	"rx"

	.no_dead_strip	_ionic_txrx_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_txrx_alloc
_ionic_txrx_alloc:                      ; @ionic_txrx_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x20, #0
Lloh0:
	adrp	x8, _IONIC_QCQ_F_TX_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IONIC_QCQ_F_TX_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IONIC_QCQ_F_SG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IONIC_QCQ_F_SG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x25, _IONIC_QTYPE_TXQ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IONIC_QTYPE_TXQ@GOTPAGEOFF]
	mov	w26, #4
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w5, [x19, #44]
	add	x8, x8, x23
	ldr	w9, [x19, #32]
	str	x8, [sp, #8]
	stp	w26, w9, [sp]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	mov	w6, #4
	mov	w7, #4
	bl	_ionic_qcq_alloc
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x23
	ldr	w10, [x9, #8]
	ldr	x9, [x9]
	str	w10, [x9, #4]
	add	x20, x20, #1
	ldr	w9, [x19]
	add	x23, x23, #16
	cmp	x20, x9
	b.lo	LBB0_2
LBB0_4:
Lloh10:
	adrp	x8, _IONIC_QCQ_F_RX_STATS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IONIC_QCQ_F_RX_STATS@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _IONIC_QCQ_F_INTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IONIC_QCQ_F_INTR@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #40]
	bl	_ionic_coal_usec_to_hw
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x20, x0
	mov	x25, #0
	mov	x21, #0
	orr	w22, w23, w22
Lloh16:
	adrp	x26, _IONIC_QTYPE_RXQ@GOTPAGE
Lloh17:
	ldr	x26, [x26, _IONIC_QTYPE_RXQ@GOTPAGEOFF]
Lloh18:
	adrp	x23, l_.str.1@PAGE
Lloh19:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	ldp	w8, w5, [x19, #32]
	ldr	x9, [x19, #16]
	add	x9, x9, x25
	str	x9, [sp, #8]
	stp	wzr, w8, [sp]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	mov	w6, #4
	mov	w7, #4
	bl	_ionic_qcq_alloc
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x8, x9, [x19, #16]
	add	x8, x8, x25
	ldr	w10, [x8, #8]
	ldr	x8, [x8]
	str	w10, [x8, #4]
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ionic_intr_coal_init
	ldp	x9, x8, [x19, #8]
	ldr	x0, [x8, x25]
	ldr	x1, [x9, x25]
	bl	_ionic_link_qcq_interrupts
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x25, x25, #16
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_8:
	mov	w24, #0
	b	LBB0_10
LBB0_9:
	mov	x24, x0
	mov	x0, x19
	bl	_ionic_txrx_free
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_QCQ_F_TX_STATS,4,2       ; @IONIC_QCQ_F_TX_STATS
	.comm	_IONIC_QCQ_F_SG,4,2             ; @IONIC_QCQ_F_SG
	.comm	_IONIC_QTYPE_TXQ,4,2            ; @IONIC_QTYPE_TXQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

	.comm	_IONIC_QCQ_F_RX_STATS,4,2       ; @IONIC_QCQ_F_RX_STATS
	.comm	_IONIC_QCQ_F_INTR,4,2           ; @IONIC_QCQ_F_INTR
	.comm	_IONIC_QTYPE_RXQ,4,2            ; @IONIC_QTYPE_RXQ
l_.str.1:                               ; @.str.1
	.asciz	"rx"

	.no_dead_strip	_ionic_txrx_alloc
.subsections_via_symbols
