	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_alloc_tx_rings          ## -- Begin function qlcnic_alloc_tx_rings
	.p2align	4, 0x90
_qlcnic_alloc_tx_rings:                 ## @qlcnic_alloc_tx_rings
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, 24(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r14), %r13
	movl	32(%r15), %eax
	movl	%eax, 36(%r12,%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_netdev_get_tx_queue
	movl	%eax, 32(%r12,%r14)
	movq	%r13, %rdi
	callq	_TX_BUFF_RINGSIZE
	movl	%eax, %edi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 24(%r12,%r14)
	leaq	(%r12,%r14), %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r15), %r12
	addq	$40, %r14
	jmp	LBB0_4
LBB0_8:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	movq	24(%r15), %rcx
	movl	4(%r15), %edx
	addq	$8, %rcx
	xorl	%esi, %esi
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %r8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rsi
	addq	$40, %rcx
	cmpq	%rsi, %rax
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rcx)
	testl	%edx, (%r8)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	8(%r15), %rbx
	movq	16(%r15), %rdi
	addq	%rsi, %rbx
	movl	(%rdi,%rbx,4), %edi
	movl	%edi, -8(%rcx)
	jmp	LBB0_15
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_5:
	movq	%r15, %rdi
	callq	_qlcnic_free_tx_rings
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_qlcnic_82xx_check
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%r15, %rdi
	callq	_qlcnic_check_multi_tx
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_alloc_tx_rings          ; -- Begin function qlcnic_alloc_tx_rings
	.p2align	2
_qlcnic_alloc_tx_rings:                 ; @qlcnic_alloc_tx_rings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_kcalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	str	x0, [x19, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	ldr	w8, [x19, #32]
	str	w8, [x21, #36]
	mov	x0, x20
	mov	w1, #0
	bl	_netdev_get_tx_queue
	str	w0, [x21, #32]
	mov	x0, x21
	bl	_TX_BUFF_RINGSIZE
	bl	_vzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x24, #0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x21, x24
	str	x0, [x8, #24]
	add	x0, x8, #16
	bl	_spin_lock_init
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x19, #24]
	add	x25, x21, x24
	add	x23, x25, #40
	ldr	w8, [x19, #32]
	str	w8, [x25, #76]
	mov	x0, x20
	mov	x1, x22
	bl	_netdev_get_tx_queue
	str	w0, [x25, #72]
	mov	x0, x23
	bl	_TX_BUFF_RINGSIZE
	bl	_vzalloc
	add	x24, x24, #40
	add	x22, x22, #1
	cbnz	x0, LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_qlcnic_free_tx_rings
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_16
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x9, #0
	ldr	x11, [x19, #24]
	ldr	w10, [x19, #4]
	add	x11, x11, #8
Lloh6:
	adrp	x12, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	add	x11, x11, #40
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x19, [x11]
	ldr	w13, [x12]
	tst	w13, w10
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x13, [x19, #8]
	ldr	x14, [x19, #16]
	add	x13, x9, x13
	ldr	w13, [x14, x13, lsl #2]
	stur	w13, [x11, #-8]
	b	LBB0_11
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_15
; %bb.17:
	mov	x0, x19
	bl	_qlcnic_check_multi_tx
	cbnz	x0, LBB0_9
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
.subsections_via_symbols
