	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_alloc_vnic_attributes
_bnxt_alloc_vnic_attributes:            ## @bnxt_alloc_vnic_attributes
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_20
## %bb.1:
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movl	$56, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$72, %rbx
	cmpq	%rax, %r12
	jge	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r13
	movl	-56(%r13,%rbx), %eax
	movq	_BNXT_VNIC_UCAST_FLAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNXT_MAX_UC_ADDRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	decl	%edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	imull	(%rcx), %edi
	testl	%edi, %edi
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movl	%eax, 8(%r13,%rbx)
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%r13,%rbx), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNXT_VNIC_MCAST_FLAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BNXT_MAX_MC_ADDRS@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	leaq	(%rbx,%r13), %rdx
	movl	%esi, -52(%r13,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, -8(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %eax
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNXT_VNIC_RSS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -56(%r13,%rbx)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movl	%eax, -16(%r13,%rbx)
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %eax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNXT_FLAG_NEW_RSS_CAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNXT_VNIC_RSS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -56(%r13,%rbx)
	je	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%rbx,%r13), %rdx
	addq	$-48, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, -32(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_HW_HASH_INDEX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_L1_CACHE_ALIGN
	cltq
	movq	-32(%r13,%rbx), %rcx
	addq	%rax, %rcx
	movq	%rcx, -24(%r13,%rbx)
	addq	-48(%r13,%rbx), %rax
	movq	%rax, -40(%r13,%rbx)
	jmp	LBB0_19
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_VNIC_UCAST_FLAG,4,2       ## @BNXT_VNIC_UCAST_FLAG
	.comm	_BNXT_MAX_UC_ADDRS,4,2          ## @BNXT_MAX_UC_ADDRS
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNXT_VNIC_MCAST_FLAG,4,2       ## @BNXT_VNIC_MCAST_FLAG
	.comm	_BNXT_MAX_MC_ADDRS,4,2          ## @BNXT_MAX_MC_ADDRS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_VNIC_RSS_FLAG,4,2         ## @BNXT_VNIC_RSS_FLAG
	.comm	_BNXT_FLAG_NEW_RSS_CAP,4,2      ## @BNXT_FLAG_NEW_RSS_CAP
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_HW_HASH_INDEX_SIZE,4,2         ## @HW_HASH_INDEX_SIZE
	.no_dead_strip	_bnxt_alloc_vnic_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_alloc_vnic_attributes
_bnxt_alloc_vnic_attributes:            ; @bnxt_alloc_vnic_attributes
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	ldr	x20, [x0, #24]
	mov	w22, #32
Lloh0:
	adrp	x23, _BNXT_VNIC_UCAST_FLAG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNXT_VNIC_UCAST_FLAG@GOTPAGEOFF]
Lloh2:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ETH_ALEN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ETH_ALEN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #72
	cmp	x21, x8
	b.ge	LBB0_19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #16]
	add	x28, x25, x22
	ldur	w8, [x28, #-32]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x9, _BNXT_MAX_UC_ADDRS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_MAX_UC_ADDRS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w9, w9, #1
	ldr	w10, [x26]
	mul	w0, w9, w10
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	bl	_kmalloc
	add	x8, x25, x22
	str	w0, [x8, #32]
	cbz	w0, LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x28, #-32]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x9, _BNXT_VNIC_MCAST_FLAG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNXT_VNIC_MCAST_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _BNXT_MAX_MC_ADDRS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNXT_MAX_MC_ADDRS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x26]
	mul	w1, w9, w8
	add	x24, x25, x22
	stur	w1, [x24, #-28]
	add	x2, x24, #24
	ldr	w3, [x27]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x24, #16]
	cbz	x0, LBB0_20
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x28, #-32]
Lloh18:
	adrp	x9, _BNXT_VNIC_RSS_FLAG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BNXT_VNIC_RSS_FLAG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x27]
	mov	w1, #4
	bl	_kcalloc
	add	x8, x25, x22
	str	w0, [x8, #8]
	cbz	w0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x9, _BNXT_FLAG_NEW_RSS_CAP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BNXT_FLAG_NEW_RSS_CAP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x28, #-32]
Lloh24:
	adrp	x9, _BNXT_VNIC_RSS_FLAG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BNXT_VNIC_RSS_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh27:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x25, x25, x22
	sub	x2, x25, #24
	ldr	w3, [x27]
	mov	x0, x20
	bl	_dma_alloc_coherent
	stur	x0, [x25, #-8]
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh30:
	adrp	x8, _HW_HASH_INDEX_SIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HW_HASH_INDEX_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_L1_CACHE_ALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	ldur	x8, [x25, #-8]
	sxtw	x9, w0
	add	x8, x8, x9
	str	x8, [x25]
	ldur	x8, [x25, #-24]
	add	x8, x8, x9
	stur	x8, [x25, #-16]
	b	LBB0_2
LBB0_19:
	mov	w0, #0
	b	LBB0_21
LBB0_20:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_VNIC_UCAST_FLAG,4,2       ; @BNXT_VNIC_UCAST_FLAG
	.comm	_BNXT_MAX_UC_ADDRS,4,2          ; @BNXT_MAX_UC_ADDRS
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNXT_VNIC_MCAST_FLAG,4,2       ; @BNXT_VNIC_MCAST_FLAG
	.comm	_BNXT_MAX_MC_ADDRS,4,2          ; @BNXT_MAX_MC_ADDRS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_VNIC_RSS_FLAG,4,2         ; @BNXT_VNIC_RSS_FLAG
	.comm	_BNXT_FLAG_NEW_RSS_CAP,4,2      ; @BNXT_FLAG_NEW_RSS_CAP
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_HW_HASH_INDEX_SIZE,4,2         ; @HW_HASH_INDEX_SIZE
	.no_dead_strip	_bnxt_alloc_vnic_attributes
.subsections_via_symbols
