	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_alloc_rx_rings
_bnxt_alloc_rx_rings:                   ## @bnxt_alloc_rx_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r13
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%rdi)
	jle	LBB0_17
## %bb.2:
	movq	_BNXT_FLAG_AGG_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_bnxt_alloc_rx_page_pool
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.3:
	movl	$16, %r14d
	movl	$1, %ecx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rax
	leaq	(%r12,%r14), %r13
	movl	12(%rax), %esi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-1(%rcx), %rdx
	movq	%r13, %rdi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_xdp_rxq_info_reg
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MEM_TYPE_PAGE_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12,%r14), %edx
	movq	%r13, %rdi
	callq	_xdp_rxq_info_reg_mem_model
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r14), %rsi
	addq	$12, %rsi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_bnxt_alloc_ring
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%r12,%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r14), %rsi
	addq	$-4, %rsi
	movq	%r13, %rdi
	callq	_bnxt_alloc_ring
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -8(%r12,%r14)
	movl	8(%r13), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r15)
	addl	$8, %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kzalloc
	movl	%eax, -12(%r12,%r14)
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	4(%r13), %rax
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movq	16(%r13), %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	shlq	$5, %r15
	addq	%r12, %r15
	leaq	(%r12,%r14), %rsi
	addq	$16, %rsi
	movq	%r13, %rdi
	callq	_bnxt_alloc_rx_page_pool
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %ebx
	addq	$32, %r14
	incq	%rcx
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_20
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_14:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_xdp_rxq_info_unreg
	jmp	LBB0_20
LBB0_16:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_17:
	movq	_BNXT_FLAG_TPA@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_alloc_tpa_info            ## TAILCALL
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ## @BNXT_FLAG_AGG_RINGS
	.comm	_MEM_TYPE_PAGE_POOL,4,2         ## @MEM_TYPE_PAGE_POOL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BNXT_FLAG_TPA,4,2              ## @BNXT_FLAG_TPA
	.no_dead_strip	_bnxt_alloc_rx_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_rx_rings
_bnxt_alloc_rx_rings:                   ; @bnxt_alloc_rx_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x28, [x0, #16]
	cbz	x28, LBB0_12
; %bb.1:
	mov	x19, x0
	ldp	w20, w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.2:
Lloh0:
	adrp	x8, _BNXT_FLAG_AGG_RINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_FLAG_AGG_RINGS@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x28
	bl	_bnxt_alloc_rx_page_pool
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.3:
	mov	x24, #0
	and	w8, w22, w20
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w26, #32
	mov	w27, #1
	mov	x20, x28
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x20, x26
	sub	x23, x25, #16
	ldr	w1, [x19, #12]
	sub	x22, x27, #1
	mov	x0, x23
	mov	x2, x22
	bl	_xdp_rxq_info_reg
	tbnz	w0, #31, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x8, _MEM_TYPE_PAGE_POOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEM_TYPE_PAGE_POOL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldur	w2, [x25, #-12]
	mov	x0, x23
	bl	_xdp_rxq_info_reg_mem_model
	cbnz	w0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x20, x26
	sub	x1, x23, #4
	mov	x0, x19
	bl	_bnxt_alloc_ring
	cbnz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	w22, [x23, #-8]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x26
	sub	x1, x20, #20
	mov	x0, x19
	bl	_bnxt_alloc_ring
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	w22, [x20, #-24]
	ldr	w8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x28]
	add	w10, w8, #8
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w0, w8, #3
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	stur	w0, [x20, #-28]
	cbz	w0, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19, #4]
	cmp	x27, x8
	b.ge	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x20, [x19, #16]
	add	x28, x20, x24, lsl #5
	add	x1, x20, x26
	mov	x0, x19
	bl	_bnxt_alloc_rx_page_pool
	mov	x21, x0
	add	x26, x26, #32
	add	x27, x27, #1
	cbz	w0, LBB0_4
	b	LBB0_19
LBB0_12:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_13:
	mov	x21, x0
	b	LBB0_19
LBB0_14:
	mov	x21, x0
	add	x8, x20, x26
	sub	x0, x8, #16
	bl	_xdp_rxq_info_unreg
	b	LBB0_19
LBB0_15:
	ldr	w20, [x19]
LBB0_16:
Lloh12:
	adrp	x8, _BNXT_FLAG_TPA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNXT_FLAG_TPA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_bnxt_alloc_tpa_info
LBB0_18:
	mov	w21, #0
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ; @BNXT_FLAG_AGG_RINGS
	.comm	_MEM_TYPE_PAGE_POOL,4,2         ; @MEM_TYPE_PAGE_POOL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BNXT_FLAG_TPA,4,2              ; @BNXT_FLAG_TPA
	.no_dead_strip	_bnxt_alloc_rx_rings
.subsections_via_symbols
