	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_vnic_qcaps
_bnxt_hwrm_vnic_qcaps:                  ## @bnxt_hwrm_vnic_qcaps
	.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
	movq	24(%rdi), %r12
	movl	$0, -48(%rbp)
	movl	$4, (%rdi)
	movq	_BNXT_FLAG_NEW_RSS_CAP@GOTPCREL(%rip), %r13
	movq	_BNXT_FLAG_ROCE_MIRROR_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r13), %eax
	notl	%eax
	andl	%eax, 4(%rdi)
	xorl	%r15d, %r15d
	cmpl	$67072, 8(%rdi)                 ## imm = 0x10600
	jl	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	_HWRM_VNIC_QCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	__hwrm_send_message
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movl	4(%rbx), %ecx
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_5
## %bb.3:
	movq	_VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:
	orl	(%r13), %ecx
	movl	%ecx, 4(%rbx)
LBB0_5:
	movq	_VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_BNXT_FLAG_ROCE_MIRROR_CAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
LBB0_7:
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	$4, (%rbx)
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_NEW_RSS_CAP,4,2      ## @BNXT_FLAG_NEW_RSS_CAP
	.comm	_BNXT_FLAG_ROCE_MIRROR_CAP,4,2  ## @BNXT_FLAG_ROCE_MIRROR_CAP
	.comm	_HWRM_VNIC_QCAPS,4,2            ## @HWRM_VNIC_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP,4,2 ## @VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP
	.comm	_VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP,4,2 ## @VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP
	.no_dead_strip	_bnxt_hwrm_vnic_qcaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_vnic_qcaps
_bnxt_hwrm_vnic_qcaps:                  ; @bnxt_hwrm_vnic_qcaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w20, #0
	mov	w8, #4
	str	w8, [x0]
Lloh0:
	adrp	x24, _BNXT_FLAG_NEW_RSS_CAP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BNXT_FLAG_NEW_RSS_CAP@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x22, _BNXT_FLAG_ROCE_MIRROR_CAP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BNXT_FLAG_ROCE_MIRROR_CAP@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldp	w9, w10, [x0, #4]
	bic	w8, w9, w8
	ldr	x23, [x0, #24]
	str	wzr, [sp, #8]
	str	w8, [x0, #4]
	mov	w8, #1536
	movk	w8, #1, lsl #16
	cmp	w10, w8
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _HWRM_VNIC_QCAPS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HWRM_VNIC_QCAPS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	add	x21, x19, #12
	mov	x0, x21
	bl	_mutex_lock
Lloh7:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	__hwrm_send_message
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x23, #4]
	bl	_le32_to_cpu
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
Lloh13:
	adrp	x9, _VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
Lloh16:
	adrp	x9, _VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_7:
	ldr	w0, [x23]
	bl	_le16_to_cpu
	str	w0, [x19, #16]
	cbz	w0, LBB0_9
; %bb.8:
	mov	w8, #4
	str	w8, [x19]
LBB0_9:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_NEW_RSS_CAP,4,2      ; @BNXT_FLAG_NEW_RSS_CAP
	.comm	_BNXT_FLAG_ROCE_MIRROR_CAP,4,2  ; @BNXT_FLAG_ROCE_MIRROR_CAP
	.comm	_HWRM_VNIC_QCAPS,4,2            ; @HWRM_VNIC_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP,4,2 ; @VNIC_QCAPS_RESP_FLAGS_RSS_DFLT_CR_CAP
	.comm	_VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP,4,2 ; @VNIC_QCAPS_RESP_FLAGS_ROCE_MIRRORING_CAPABLE_VNIC_CAP
	.no_dead_strip	_bnxt_hwrm_vnic_qcaps
.subsections_via_symbols
