	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnxt_setup_vnic
___bnxt_setup_vnic:                     ## @__bnxt_setup_vnic
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	_BNXT_VNIC_RFS_NEW_RSS_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rsi,4)
	je	LBB0_1
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnxt_hwrm_vnic_cfg
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_bnxt_hwrm_vnic_ctx_alloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_bnxt_hwrm_vnic_set_rss
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	incl	8(%r15)
	movq	%r15, %rdi
	callq	_BNXT_CHIP_TYPE_NITRO_A0
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_bnxt_hwrm_vnic_ctx_alloc
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_netdev_err
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_BNXT_FLAG_AGG_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnxt_hwrm_vnic_set_hds
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_netdev_err
	movl	%r12d, %ebx
	jmp	LBB0_15
LBB0_7:
	incl	8(%r15)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_VNIC_RFS_NEW_RSS_FLAG,4,2 ## @BNXT_VNIC_RFS_NEW_RSS_FLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwrm vnic %d alloc failure rc: %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"hwrm vnic %d cos ctx alloc failure rc: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"hwrm vnic %d cfg failure rc: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"hwrm vnic %d set rss failure rc: %x\n"

	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ## @BNXT_FLAG_AGG_RINGS
L_.str.4:                               ## @.str.4
	.asciz	"hwrm vnic %d set hds failure rc: %x\n"

	.no_dead_strip	___bnxt_setup_vnic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bnxt_setup_vnic
___bnxt_setup_vnic:                     ; @__bnxt_setup_vnic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8, x1, lsl #2]
Lloh0:
	adrp	x9, _BNXT_VNIC_RFS_NEW_RSS_FLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_VNIC_RFS_NEW_RSS_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_hwrm_vnic_cfg
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_bnxt_hwrm_vnic_ctx_alloc
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_bnxt_hwrm_vnic_set_rss
	cbz	w0, LBB0_10
; %bb.6:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_7:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_BNXT_CHIP_TYPE_NITRO_A0
	cbz	x0, LBB0_1
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_bnxt_hwrm_vnic_ctx_alloc
	cbz	w0, LBB0_16
; %bb.9:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_10:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _BNXT_FLAG_AGG_RINGS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNXT_FLAG_AGG_RINGS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_hwrm_vnic_set_hds
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.12:
	ldr	w0, [x20, #4]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x2, x19
	mov	x3, x21
	bl	_netdev_err
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w21, #0
	b	LBB0_14
LBB0_16:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_VNIC_RFS_NEW_RSS_FLAG,4,2 ; @BNXT_VNIC_RFS_NEW_RSS_FLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwrm vnic %d alloc failure rc: %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"hwrm vnic %d cos ctx alloc failure rc: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"hwrm vnic %d cfg failure rc: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"hwrm vnic %d set rss failure rc: %x\n"

	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ; @BNXT_FLAG_AGG_RINGS
l_.str.4:                               ; @.str.4
	.asciz	"hwrm vnic %d set hds failure rc: %x\n"

	.no_dead_strip	___bnxt_setup_vnic
.subsections_via_symbols
