	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_init_rxbd_rings
_bnx2_init_rxbd_rings:                  ## @bnx2_init_rxbd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	leal	-1(%rcx), %r8d
	movl	%ecx, %r9d
	movq	_BNX2_MAX_RX_DESC_CNT@GOTPCREL(%rip), %r10
	movl	(%r10), %ecx
	xorl	%r11d, %r11d
	movq	_RX_BD_FLAGS_START@GOTPCREL(%rip), %r14
	movq	_RX_BD_FLAGS_END@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, %r11
	leaq	1(%r11), %r12
	movl	%r12d, %r11d
	movl	$0, %eax
	cmovneq	%r11, %rax
	movl	(%rsi,%rax,8), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, %r11
	cmpq	%r9, %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%rdi,%r11,8), %rbx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, 12(%rbx)
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	movl	%ecx, (%rbx)
	incl	%eax
	addq	$16, %rbx
	movl	(%r10), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_MAX_RX_DESC_CNT,4,2       ## @BNX2_MAX_RX_DESC_CNT
	.comm	_RX_BD_FLAGS_START,4,2          ## @RX_BD_FLAGS_START
	.comm	_RX_BD_FLAGS_END,4,2            ## @RX_BD_FLAGS_END
	.no_dead_strip	_bnx2_init_rxbd_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_init_rxbd_rings
_bnx2_init_rxbd_rings:                  ; @bnx2_init_rxbd_rings
	.cfi_startproc
; %bb.0:
	subs	w8, w3, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x11, #0
Lloh0:
	adrp	x9, _BNX2_MAX_RX_DESC_CNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_MAX_RX_DESC_CNT@GOTPAGEOFF]
	mov	w10, w3
	ldr	w15, [x9]
Lloh2:
	adrp	x12, _RX_BD_FLAGS_START@GOTPAGE
Lloh3:
	ldr	x12, [x12, _RX_BD_FLAGS_START@GOTPAGEOFF]
Lloh4:
	adrp	x13, _RX_BD_FLAGS_END@GOTPAGE
Lloh5:
	ldr	x13, [x13, _RX_BD_FLAGS_END@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x16, x11, #1
	and	x17, x16, #0xffffffff
	cmp	x11, x8
	csel	x11, xzr, x17, eq
	ldr	x11, [x1, x11, lsl #3]
	str	w11, [x14, #8]
	mov	x11, x16
	cmp	x16, x10
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x14, [x0, x11, lsl #3]
	cmp	w15, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w16, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w2, [x14, #12]
	ldr	w15, [x12]
	ldr	w17, [x13]
	orr	w15, w17, w15
	str	w15, [x14], #16
	add	w16, w16, #1
	ldr	w15, [x9]
	cmp	w16, w15
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_MAX_RX_DESC_CNT,4,2       ; @BNX2_MAX_RX_DESC_CNT
	.comm	_RX_BD_FLAGS_START,4,2          ; @RX_BD_FLAGS_START
	.comm	_RX_BD_FLAGS_END,4,2            ; @RX_BD_FLAGS_END
	.no_dead_strip	_bnx2_init_rxbd_rings
.subsections_via_symbols
