	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_alloc_tx_rings
_bnxt_alloc_tx_rings:                   ## @bnxt_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	%rdi, %r15
	movq	40(%rdi), %rdi
	movq	48(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	addq	$4, %rdi
	callq	_L1_CACHE_ALIGN
	cmpl	$257, %eax                      ## imm = 0x101
	jl	LBB0_3
## %bb.2:
	movq	$0, 40(%r15)
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, (%r15)
LBB0_4:
	cmpl	$0, 4(%r15)
	jle	LBB0_14
## %bb.5:
	xorl	%r12d, %r12d
	movl	$40, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	addq	$48, %rbx
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %r14
	leaq	(%r14,%rbx), %rsi
	movq	%r15, %rdi
	callq	_bnxt_alloc_ring
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-16(%r14,%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%r14,%rbx)
	movl	(%r15), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r14,%rbx), %rdx
	addq	$-32, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_alloc_coherent
	movl	%eax, -24(%r14,%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-32(%r14,%rbx), %rdi
	addq	$4, %rdi
	callq	_cpu_to_le64
	movl	%eax, -40(%r14,%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r13d, %rax
	movq	8(%r15), %rcx
	movq	24(%r15), %rdx
	movq	(%rcx,%rax,8), %rax
	movl	(%rdx,%rax,4), %eax
	movl	%eax, -8(%r14,%rbx)
	movslq	16(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	20(%r15), %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	decl	%ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	sete	%al
	addl	%eax, %r13d
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_bnxt_alloc_tx_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_alloc_tx_rings
_bnxt_alloc_tx_rings:                   ; @bnxt_alloc_tx_rings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	wzr, [x0]
	ldp	x8, x20, [x0, #40]
	cbz	x8, LBB0_4
; %bb.1:
	add	x0, x8, #4
	bl	_L1_CACHE_ALIGN
	cmp	w0, #257
	b.lt	LBB0_3
; %bb.2:
	mov	w0, #0
	str	xzr, [x19, #40]
LBB0_3:
	str	w0, [x19]
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	add	x22, x22, #48
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #32]
	add	x21, x26, x22
	add	x1, x21, #40
	mov	x0, x19
	bl	_bnxt_alloc_ring
	cbnz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	str	w8, [x21, #36]
	ldr	w1, [x19]
	cbz	w1, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x26, x22
	add	x21, x27, #8
	ldr	w3, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_dma_alloc_coherent
	str	w0, [x27, #16]
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	add	x0, x8, #4
	bl	_cpu_to_le64
	str	w0, [x26, x22]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w24, sxtw #3]
	ldr	x9, [x19, #24]
	ldr	w8, [x9, x8, lsl #2]
	add	x9, x26, x22
	str	w8, [x9, #32]
	ldrsw	x8, [x19, #16]
	cmp	x23, x8
	b.lt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #20]
	sdiv	w9, w23, w8
	msub	w9, w9, w8, w23
	sub	w8, w8, #1
	cmp	w9, w8
	cinc	w24, w24, eq
	b	LBB0_6
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_bnxt_alloc_tx_rings
.subsections_via_symbols
