	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_free_msix_vecs
_bnxt_free_msix_vecs:                   ## @bnxt_free_msix_vecs
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movq	_BNXT_EN_FLAG_MSIX_REQUESTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdx
	movslq	%r13d, %rsi
	movq	$0, (%rdx,%rsi,8)
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_bnxt_close_nic
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_bnxt_open_nic
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_5:
	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_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNXT_EN_FLAG_MSIX_REQUESTED,4,2 ## @BNXT_EN_FLAG_MSIX_REQUESTED
	.no_dead_strip	_bnxt_free_msix_vecs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_free_msix_vecs
_bnxt_free_msix_vecs:                   ; @bnxt_free_msix_vecs
	.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	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_netdev_priv
	mov	x19, x0
	bl	_ASSERT_RTNL
Lloh0:
	adrp	x8, _BNXT_ROCE_ULP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_ROCE_ULP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _BNXT_EN_FLAG_MSIX_REQUESTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_EN_FLAG_MSIX_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x10, [x21, #8]
	str	xzr, [x10, w22, sxtw #3]
	bic	w8, w8, w9
	str	w8, [x21]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_bnxt_close_nic
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_bnxt_open_nic
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNXT_EN_FLAG_MSIX_REQUESTED,4,2 ; @BNXT_EN_FLAG_MSIX_REQUESTED
	.no_dead_strip	_bnxt_free_msix_vecs
.subsections_via_symbols
