	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnxt_setup_vnic_p5
___bnxt_setup_vnic_p5:                  ## @__bnxt_setup_vnic_p5
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	movl	$64, %esi
	callq	_DIV_ROUND_UP
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_bnxt_hwrm_vnic_ctx_alloc
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%r12)
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_2
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_bnxt_hwrm_vnic_set_rss_p5
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_13:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bnxt_hwrm_vnic_cfg
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_BNXT_FLAG_AGG_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bnxt_hwrm_vnic_set_hds
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	4(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	movl	%ebx, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwrm vnic %d ctx %d alloc failure rc: %x\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"hwrm vnic %d set rss failure rc: %d\n"

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

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

	.no_dead_strip	___bnxt_setup_vnic_p5
.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_p5
___bnxt_setup_vnic_p5:                  ; @__bnxt_setup_vnic_p5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w0, [x0, #12]
	mov	w1, #64
	bl	_DIV_ROUND_UP
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, x0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_bnxt_hwrm_vnic_ctx_alloc
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	add	w21, w21, #1
	cmp	w22, w21
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_bnxt_hwrm_vnic_set_rss_p5
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	w8, [x20, #4]
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	mov	x2, x19
	mov	x3, x21
	bl	_netdev_err
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_hwrm_vnic_cfg
	cbz	w0, LBB0_11
; %bb.8:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x2, x19
	mov	x3, x21
	bl	_netdev_err
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _BNXT_FLAG_AGG_RINGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNXT_FLAG_AGG_RINGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_hwrm_vnic_set_hds
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.13:
	ldr	w0, [x20, #4]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_14:
	mov	w21, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwrm vnic %d ctx %d alloc failure rc: %x\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"hwrm vnic %d set rss failure rc: %d\n"

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

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

	.no_dead_strip	___bnxt_setup_vnic_p5
.subsections_via_symbols
