	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_set_tpa
_bnxt_set_tpa:                          ## @bnxt_set_tpa
	.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	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_BNXT_FLAG_TPA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%r15), %r14d
LBB0_3:
	cmpl	$0, 4(%r15)
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_bnxt_hwrm_vnic_set_tpa
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_5
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_2:
	movq	_BNXT_STATE_FW_FATAL_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %rsi
	callq	_test_bit
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_3
LBB0_6:
	movl	%eax, %r12d
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_netdev_err
	movl	%r12d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_TPA,4,2              ## @BNXT_FLAG_TPA
	.comm	_BNXT_STATE_FW_FATAL_COND,4,2   ## @BNXT_STATE_FW_FATAL_COND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwrm vnic set tpa failure rc for vnic %d: %x\n"

	.no_dead_strip	_bnxt_set_tpa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_set_tpa
_bnxt_set_tpa:                          ; @bnxt_set_tpa
	.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, x0
	cbz	w1, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BNXT_FLAG_TPA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FLAG_TPA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w20, w9, w8
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_bnxt_hwrm_vnic_set_tpa
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.lt	LBB0_4
LBB0_6:
	mov	w22, #0
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _BNXT_STATE_FW_FATAL_COND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_STATE_FW_FATAL_COND@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_test_bit
	mov	w20, #0
	mov	w22, #0
	cbnz	x0, LBB0_9
	b	LBB0_2
LBB0_8:
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_netdev_err
LBB0_9:
	mov	x0, x22
	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 AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_TPA,4,2              ; @BNXT_FLAG_TPA
	.comm	_BNXT_STATE_FW_FATAL_COND,4,2   ; @BNXT_STATE_FW_FATAL_COND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwrm vnic set tpa failure rc for vnic %d: %x\n"

	.no_dead_strip	_bnxt_set_tpa
.subsections_via_symbols
