	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_ring_alloc
_bnxt_hwrm_ring_alloc:                  ## @bnxt_hwrm_ring_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ecx
	movq	_BNXT_FLAG_AGG_RINGS@GOTPCREL(%rip), %rax
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rdx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	testl	%ecx, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_HWRM_RING_ALLOC_CMPL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_HWRM_RING_ALLOC_NQ@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%r15)
	jle	LBB0_10
## %bb.4:
	movq	(%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	4(%r15), %rax
	addq	$12, %r13
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	48(%r15), %rax
	movq	56(%r15), %rcx
	movq	%r15, %r14
	movq	(%rcx,%rbx,8), %r15
	leaq	16(%r15), %r13
	movq	16(%r15), %r12
	movl	(%rax,%r12,4), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_disable_irq_nosync
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_hwrm_ring_alloc_send_msg
	testl	%eax, %eax
	jne	LBB0_29
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	12(%r15), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	40(%r15), %r8d
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_bnxt_set_db
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnxt_db_nq
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_enable_irq
	movl	40(%r15), %esi
	movq	16(%r14), %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%esi, 8(%rax,%r13)
	xorl	%edx, %edx
	testq	%rbx, %rbx
	movq	%r14, %r15
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_bnxt_hwrm_set_async_event_cr
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	movl	40(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	movl	%r12d, %edx
	jmp	LBB0_5
LBB0_10:
	xorl	%edx, %edx
LBB0_11:
	cmpl	$0, 8(%r15)
	jle	LBB0_19
## %bb.12:
	movq	_HWRM_RING_ALLOC_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rbx
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rbx,%r14), %rax
	movq	_HWRM_RING_ALLOC_CMPL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	48(%rax), %rcx
	movq	_BNXT_TX_HDL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%r15, %r13
	movq	(%rcx,%rdx,8), %r15
	leaq	8(%r15), %rsi
	movq	%rdx, 16(%r15)
	movq	(%rax), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_hwrm_ring_alloc_send_msg
	testl	%eax, %eax
	jne	LBB0_40
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdx
	leaq	4(%r15), %rbx
	movl	32(%r15), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_bnxt_set_db
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_db_cq
	movq	%r13, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rbx,%r14), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_hwrm_ring_alloc_send_msg
	testl	%eax, %eax
	jne	LBB0_40
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	32(%rbx,%r14), %r8d
	addq	%r14, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_bnxt_set_db
	incq	%r12
	movslq	8(%r15), %rax
	addq	$48, %r14
	cmpq	%rax, %r12
	jl	LBB0_13
## %bb.18:
	xorl	%edx, %edx
LBB0_19:
	movl	12(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_34
## %bb.20:
	movq	_HWRM_RING_ALLOC_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	$56, %r15d
	xorl	%ecx, %ecx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=1
	leaq	4(%r14), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	32(%r14), %r8d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_bnxt_set_db
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnxt_db_cq
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	12(%rax), %rax
	addq	$88, %r15
	cmpq	%rax, %rcx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_33
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %r13
	leaq	(%r15,%r13), %rsi
	movq	-8(%r13,%r15), %rbx
	movq	(%rbx), %r12
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_hwrm_ring_alloc_send_msg
	testl	%eax, %eax
	jne	LBB0_40
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %rbx
	addq	$-52, %rbx
	movl	24(%r13,%r15), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_bnxt_set_db
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	-56(%r13,%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_bnxt_db_write
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	24(%r13,%r15), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rcx
	leaq	(%r12,%r12,2), %rdx
	movl	%eax, 4(%rcx,%rdx,4)
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_22
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_HWRM_RING_ALLOC_CMPL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rax
	movq	_BNXT_RX_HDL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	leaq	8(%r14), %rsi
	movq	%rcx, 16(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_hwrm_ring_alloc_send_msg
	testl	%eax, %eax
	je	LBB0_21
LBB0_40:
	movl	%eax, %edx
	jmp	LBB0_41
LBB0_29:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %ebx
	callq	_enable_irq
	movl	%ebx, %edx
	jmp	LBB0_41
LBB0_33:
	xorl	%edx, %edx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_34:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, -72(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_41
## %bb.35:
	testl	%eax, %eax
	jle	LBB0_41
## %bb.36:
	movq	_HWRM_RING_ALLOC_AGG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$40, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r13
	movq	24(%r15), %r15
	leaq	(%r15,%r14), %rsi
	addq	$-24, %rsi
	movq	-8(%r15,%r14), %rcx
	movslq	%eax, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addq	%rcx, %r12
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_hwrm_ring_alloc_send_msg
	testl	%eax, %eax
	jne	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14), %rbx
	addq	$-28, %rbx
	movl	(%r15,%r14), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_bnxt_set_db
	movl	-32(%r15,%r14), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_bnxt_db_write
	leaq	(%r15,%r14), %rsi
	addq	$-36, %rsi
	movl	-40(%r15,%r14), %edx
	movq	%r13, %rdi
	callq	_bnxt_db_write
	movl	(%r15,%r14), %eax
	movq	16(%r13), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rbx
	movslq	12(%r13), %rax
	addq	$88, %r14
	cmpq	%rax, %rbx
	movq	%r13, %r15
	jl	LBB0_37
## %bb.39:
	xorl	%edx, %edx
LBB0_41:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ## @BNXT_FLAG_AGG_RINGS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_HWRM_RING_ALLOC_NQ,8,3         ## @HWRM_RING_ALLOC_NQ
	.comm	_HWRM_RING_ALLOC_CMPL,8,3       ## @HWRM_RING_ALLOC_CMPL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set async event completion ring.\n"

	.comm	_HWRM_RING_ALLOC_TX,8,3         ## @HWRM_RING_ALLOC_TX
	.comm	_BNXT_TX_HDL,8,3                ## @BNXT_TX_HDL
	.comm	_HWRM_RING_ALLOC_RX,8,3         ## @HWRM_RING_ALLOC_RX
	.comm	_BNXT_RX_HDL,8,3                ## @BNXT_RX_HDL
	.comm	_HWRM_RING_ALLOC_AGG,8,3        ## @HWRM_RING_ALLOC_AGG
	.no_dead_strip	_bnxt_hwrm_ring_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_ring_alloc
_bnxt_hwrm_ring_alloc:                  ; @bnxt_hwrm_ring_alloc
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BNXT_FLAG_AGG_RINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_FLAG_AGG_RINGS@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
Lloh3:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh5:
	adrp	x11, _HWRM_RING_ALLOC_CMPL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _HWRM_RING_ALLOC_CMPL@GOTPAGEOFF]
Lloh7:
	adrp	x8, _HWRM_RING_ALLOC_NQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HWRM_RING_ALLOC_NQ@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldp	w13, w10, [x0]
	tst	w9, w13
	csel	x8, x11, x8, eq
	cmp	w10, #1
	stp	w13, w12, [sp, #8]              ; 8-byte Folded Spill
	b.lt	LBB0_8
; %bb.1:
	mov	x27, #0
	ldr	x21, [x8]
	mov	w26, #8
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19, #4]
	add	x26, x26, #12
	cmp	x27, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #48]
	ldr	x28, [x8, x27, lsl #3]
	mov	x20, x28
	ldr	x24, [x20, #16]!
	ldr	w23, [x9, x24, lsl #2]
	mov	x0, x23
	bl	_disable_irq_nosync
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	bl	_hwrm_ring_alloc_send_msg
	cbnz	w0, LBB0_27
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x28, #12
	ldr	w4, [x28, #40]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	bl	_bnxt_set_db
	ldr	w2, [x28, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_db_nq
	mov	x0, x23
	bl	_enable_irq
	ldr	w1, [x28, #40]
	ldr	x8, [x19, #16]
	str	w1, [x8, x26]
	cmp	x26, #8
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_bnxt_hwrm_set_async_event_cr
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #40]
	mov	x1, x22
	bl	_netdev_warn
	b	LBB0_3
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x26, #0
	mov	x21, #0
Lloh12:
	adrp	x8, _HWRM_RING_ALLOC_TX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HWRM_RING_ALLOC_TX@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
Lloh15:
	adrp	x27, _BNXT_TX_HDL@GOTPAGE
Lloh16:
	ldr	x27, [x27, _BNXT_TX_HDL@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #32]
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x28, x26
	ldr	x8, [x8, #40]
Lloh20:
	adrp	x9, _HWRM_RING_ALLOC_CMPL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HWRM_RING_ALLOC_CMPL@GOTPAGEOFF]
Lloh22:
	ldr	x23, [x9]
	ldr	x9, [x8, #48]
	ldr	x10, [x27]
	ldr	x25, [x9, x10, lsl #3]
	add	x1, x25, #8
	str	x10, [x25, #16]
	ldr	x24, [x8]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	bl	_hwrm_ring_alloc_send_msg
	cbnz	w0, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x25, #4
	ldr	w4, [x25, #32]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	bl	_bnxt_set_db
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_db_cq
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x28, x26
	add	x1, x23, #8
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_hwrm_ring_alloc_send_msg
	cbnz	w0, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w4, [x23, #32]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_bnxt_set_db
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x26, x26, #48
	cmp	x21, x8
	b.lt	LBB0_11
; %bb.16:
	mov	w20, #0
LBB0_17:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	and	w24, w8, w9
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.18:
	mov	x27, #0
	mov	x28, #0
Lloh23:
	adrp	x8, _HWRM_RING_ALLOC_RX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HWRM_RING_ALLOC_RX@GOTPAGEOFF]
Lloh25:
	ldr	x21, [x8]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x20, x25, #4
	ldr	w4, [x25, #32]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_bnxt_set_db
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_db_cq
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19, #12]
	add	x27, x27, #88
	cmp	x28, x8
	b.ge	LBB0_28
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #24]
	add	x23, x25, x27
	add	x1, x23, #56
	ldr	x26, [x23, #48]
	ldr	x22, [x26]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_hwrm_ring_alloc_send_msg
	cbnz	w0, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x20, x23, #4
	ldr	w4, [x23, #80]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_bnxt_set_db
	cbnz	w24, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w2, [x25, x27]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_db_write
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x23, #80]
	ldr	x9, [x19, #16]
	mov	w10, #12
	madd	x9, x22, x10, x9
	str	w8, [x9, #4]
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh29:
	adrp	x8, _HWRM_RING_ALLOC_CMPL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HWRM_RING_ALLOC_CMPL@GOTPAGEOFF]
Lloh31:
	ldr	x23, [x8]
	ldr	x8, [x26, #48]
Lloh32:
	adrp	x9, _BNXT_RX_HDL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BNXT_RX_HDL@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	ldr	x25, [x8, x9, lsl #3]
	add	x1, x25, #8
	str	x9, [x25, #16]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	bl	_hwrm_ring_alloc_send_msg
	cbz	w0, LBB0_19
LBB0_26:
	mov	x20, x0
	b	LBB0_35
LBB0_27:
	mov	x20, x0
	mov	x0, x23
	bl	_enable_irq
	b	LBB0_35
LBB0_28:
	mov	w20, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_29:
	cbz	w24, LBB0_35
; %bb.30:
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.31:
	mov	x23, #0
	mov	x24, #0
Lloh35:
	adrp	x9, _HWRM_RING_ALLOC_AGG@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HWRM_RING_ALLOC_AGG@GOTPAGEOFF]
Lloh37:
	ldr	x21, [x9]
	mov	w25, #12
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x26, x9, x23
	add	x1, x26, #16
	ldr	x27, [x26, #32]
	add	x22, x27, w8, sxtw
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_hwrm_ring_alloc_send_msg
	cbnz	w0, LBB0_26
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	add	x20, x26, #12
	ldr	w4, [x26, #40]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_bnxt_set_db
	ldr	w2, [x26, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_db_write
	add	x1, x26, #4
	ldr	w2, [x26]
	mov	x0, x19
	bl	_bnxt_db_write
	ldr	w8, [x26, #40]
	ldr	x9, [x19, #16]
	mul	x10, x27, x25
	str	w8, [x9, x10]
	add	x24, x24, #1
	ldrsw	x8, [x19, #12]
	add	x23, x23, #88
	cmp	x24, x8
	b.lt	LBB0_32
; %bb.34:
	mov	w20, #0
LBB0_35:
	mov	x0, x20
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ; @BNXT_FLAG_AGG_RINGS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_HWRM_RING_ALLOC_NQ,8,3         ; @HWRM_RING_ALLOC_NQ
	.comm	_HWRM_RING_ALLOC_CMPL,8,3       ; @HWRM_RING_ALLOC_CMPL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set async event completion ring.\n"

	.comm	_HWRM_RING_ALLOC_TX,8,3         ; @HWRM_RING_ALLOC_TX
	.comm	_BNXT_TX_HDL,8,3                ; @BNXT_TX_HDL
	.comm	_HWRM_RING_ALLOC_RX,8,3         ; @HWRM_RING_ALLOC_RX
	.comm	_BNXT_RX_HDL,8,3                ; @BNXT_RX_HDL
	.comm	_HWRM_RING_ALLOC_AGG,8,3        ; @HWRM_RING_ALLOC_AGG
	.no_dead_strip	_bnxt_hwrm_ring_alloc
.subsections_via_symbols
