	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_init_tx_queue
_slic_init_tx_queue:                    ## @slic_init_tx_queue
	.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, %r14
	movq	_SLIC_NUM_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rsi
	movq	_SLIC_TX_DESC_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$32, %edx
	movl	$4096, %r8d                     ## imm = 0x1000
	callq	_dma_pool_create
	movl	%eax, 32(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$0, 16(%r14)
	je	LBB0_16
## %bb.4:
	movq	24(%r14), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_dma_pool_zalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.14:
	movq	%rax, %r12
	movl	$1, %ebx
	movl	$16, %r13d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r12)
	movq	_SLIC_CMD_XMT_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	$0, 8(%r12)
	movq	_SLIC_CMD_TYPE_DUMB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	movq	%r12, -8(%r15,%r13)
	movl	16(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_15 Depth=1
	movl	32(%r14), %edi
	movq	24(%r14), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%r15,%r13), %rdx
	callq	_dma_pool_zalloc
	movq	%rax, %r12
	incq	%rbx
	addq	$16, %r13
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	decq	%rbx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_13
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_5:
	xorl	%ebx, %ebx
LBB0_9:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	shlq	$4, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	32(%r14), %edi
	movq	-8(%rax,%rbx), %rsi
	movl	-16(%rax,%rbx), %edx
	callq	_dma_pool_free
	addq	$-16, %rbx
	jne	LBB0_11
LBB0_12:
	movl	32(%r14), %edi
	callq	_dma_pool_destroy
LBB0_13:
	negl	%r15d
	movq	24(%r14), %rdi
	callq	_kfree
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_NUM_TX_DESCS,4,2          ## @SLIC_NUM_TX_DESCS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slic_pool"

	.comm	_SLIC_TX_DESC_ALIGN,4,2         ## @SLIC_TX_DESC_ALIGN
L_.str.1:                               ## @.str.1
	.asciz	"failed to create dma pool\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to alloc pool chunk (%i)\n"

	.comm	_SLIC_CMD_XMT_REQ,4,2           ## @SLIC_CMD_XMT_REQ
	.comm	_SLIC_CMD_TYPE_DUMB,4,2         ## @SLIC_CMD_TYPE_DUMB
	.no_dead_strip	_slic_init_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_init_tx_queue
_slic_init_tx_queue:                    ; @slic_init_tx_queue
	.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
Lloh0:
	adrp	x8, _SLIC_NUM_TX_DESCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLIC_NUM_TX_DESCS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x19, #16]
	stp	xzr, xzr, [x19, #40]
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #16
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x1, [x19, #8]
Lloh5:
	adrp	x8, _SLIC_TX_DESC_ALIGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SLIC_TX_DESC_ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #32
	mov	w4, #4096
	bl	_dma_pool_create
	str	w0, [x19, #32]
	cbz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	x20, [x19, #24]
	ldr	w1, [x23]
	mov	x2, x20
	bl	_dma_pool_zalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	mov	w21, #1
	mov	w24, #8
Lloh10:
	adrp	x25, _SLIC_CMD_XMT_REQ@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SLIC_CMD_XMT_REQ@GOTPAGEOFF]
Lloh12:
	adrp	x26, _SLIC_CMD_TYPE_DUMB@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SLIC_CMD_TYPE_DUMB@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x22, #24]
	ldr	w8, [x25]
	str	w8, [x22, #16]
	str	xzr, [x22, #8]
	ldr	w0, [x26]
	bl	_cpu_to_le32
	str	x0, [x22]
	str	x22, [x20, x24]
	ldr	w8, [x19, #16]
	cmp	x21, x8
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #32]
	ldr	x20, [x19, #24]
	ldr	w1, [x23]
	add	x8, x20, x24
	add	x2, x8, #8
	bl	_dma_pool_zalloc
	mov	x22, x0
	add	x21, x21, #1
	add	x24, x24, #16
	cbnz	x0, LBB0_5
; %bb.7:
	sub	x21, x21, #1
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_16
LBB0_10:
	mov	w20, #0
	b	LBB0_17
LBB0_11:
	mov	x21, #0
LBB0_12:
	ldr	w0, [x19]
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	cbz	w21, LBB0_15
; %bb.13:
	lsl	x21, x21, #4
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #32]
	add	x8, x8, x21
	ldur	x1, [x8, #-8]
	ldur	w2, [x8, #-16]
	bl	_dma_pool_free
	subs	x21, x21, #16
	b.ne	LBB0_14
LBB0_15:
	ldr	w0, [x19, #32]
	bl	_dma_pool_destroy
LBB0_16:
	neg	w20, w20
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_17:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_NUM_TX_DESCS,4,2          ; @SLIC_NUM_TX_DESCS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slic_pool"

	.comm	_SLIC_TX_DESC_ALIGN,4,2         ; @SLIC_TX_DESC_ALIGN
l_.str.1:                               ; @.str.1
	.asciz	"failed to create dma pool\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to alloc pool chunk (%i)\n"

	.comm	_SLIC_CMD_XMT_REQ,4,2           ; @SLIC_CMD_XMT_REQ
	.comm	_SLIC_CMD_TYPE_DUMB,4,2         ; @SLIC_CMD_TYPE_DUMB
	.no_dead_strip	_slic_init_tx_queue
.subsections_via_symbols
