	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnxt_hwrm_reserve_vf_rings
___bnxt_hwrm_reserve_vf_rings:          ## @__bnxt_hwrm_reserve_vf_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r13
	movl	16(%rbp), %r15d
	movq	_HWRM_FUNC_VF_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %r12
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	%ebx, %eax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS@GOTPCREL(%rip), %rcx
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	orl	(%rcx), %r14d
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	cmovel	%ecx, %r14d
	orl	%eax, %r14d
	movl	%r15d, %eax
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %r14d
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.5:
	xorl	%ecx, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
LBB0_8:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_10:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	orl	%r14d, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
LBB0_13:
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_BNXT_VF_MAX_L2_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%r13)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r13)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 48(%r13)
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.14:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	addl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r13)
	movl	%r12d, %edi
	movl	$64, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	jmp	LBB0_16
LBB0_15:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 40(%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 32(%r13)
	movq	_BNXT_VF_MAX_RSS_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_16:
	movl	24(%rbp), %r12d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	orl	%r14d, %ebx
	callq	_cpu_to_le16
	movq	%rax, 24(%r13)
	testl	%r12d, %r12d
	cmovel	%r12d, %r15d
	orl	%ebx, %r15d
	orl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	movl	16(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_FUNC_VF_CFG,4,2           ## @HWRM_FUNC_VF_CFG
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS,4,2 ## @FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS
	.comm	_BNXT_VF_MAX_L2_CTX,4,2         ## @BNXT_VF_MAX_L2_CTX
	.comm	_BNXT_VF_MAX_RSS_CTX,4,2        ## @BNXT_VF_MAX_RSS_CTX
	.no_dead_strip	___bnxt_hwrm_reserve_vf_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bnxt_hwrm_reserve_vf_rings
___bnxt_hwrm_reserve_vf_rings:          ; @__bnxt_hwrm_reserve_vf_rings
	.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
	str	w7, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x6
	mov	x23, x5
	mov	x22, x4
	mov	x26, x3
	mov	x24, x2
	mov	x19, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _HWRM_FUNC_VF_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_FUNC_VF_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
Lloh3:
	adrp	x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, #0
	csel	w8, wzr, w8, eq
Lloh6:
	adrp	x9, _FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w26, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w20, [sp, #8]                   ; 4-byte Folded Spill
	cmp	w20, #0
	csel	w9, wzr, w9, eq
	orr	w27, w8, w9
	ldr	w8, [x25]
Lloh15:
	adrp	x21, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh16:
	ldr	x21, [x21, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
Lloh17:
	adrp	x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cmn	w22, w24
	csel	w28, wzr, w8, eq
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w8, wzr, w8, eq
	orr	w28, w8, w27
Lloh19:
	adrp	x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w27, wzr, w8, eq
LBB0_3:
Lloh22:
	adrp	x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS@GOTPAGEOFF]
Lloh24:
	ldr	w23, [x8]
Lloh25:
	adrp	x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x8, _BNXT_VF_MAX_L2_CTX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BNXT_VF_MAX_L2_CTX@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #64]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x19, #56]
	mov	x0, x26
	bl	_cpu_to_le16
	str	x0, [x19, #48]
	ldr	w8, [x25]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	add	w0, w22, w24
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	mov	x0, x22
	mov	w1, #64
	bl	_DIV_ROUND_UP
	b	LBB0_6
LBB0_5:
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x19, #32]
Lloh31:
	adrp	x8, _BNXT_VF_MAX_RSS_CTX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BNXT_VF_MAX_RSS_CTX@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
LBB0_6:
	orr	w21, w28, w27
	bl	_cpu_to_le16
	str	x0, [x19, #24]
	ldp	w0, w24, [sp, #8]               ; 8-byte Folded Reload
	cmp	w24, #0
	csel	w8, wzr, w23, eq
	orr	w8, w8, w21
	orr	w22, w8, w20
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	x0, x22
	bl	_cpu_to_le32
	str	w0, [x19]
	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	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_FUNC_VF_CFG,4,2           ; @HWRM_FUNC_VF_CFG
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_TX_RINGS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_RSSCOS_CTXS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_STAT_CTXS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_CMPL_RINGS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_HW_RING_GRPS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS
	.comm	_FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS,4,2 ; @FUNC_VF_CFG_REQ_ENABLES_NUM_L2_CTXS
	.comm	_BNXT_VF_MAX_L2_CTX,4,2         ; @BNXT_VF_MAX_L2_CTX
	.comm	_BNXT_VF_MAX_RSS_CTX,4,2        ; @BNXT_VF_MAX_RSS_CTX
	.no_dead_strip	___bnxt_hwrm_reserve_vf_rings
.subsections_via_symbols
