	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_validate_tpa_params
_bnx2x_validate_tpa_params:             ## @bnx2x_validate_tpa_params
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	movq	_U_ETH_MAX_SGES_FOR_PACKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ebx, %ebx
	cmpq	%rdx, %rsi
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
LBB0_2:
	movq	8(%r15), %r12
	movq	%r14, %rdi
	callq	_MAX_AGG_QS
	cmpq	%rax, %r12
	jle	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r15), %r15
	movq	%r14, %rdi
	callq	_MAX_AGG_QS
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_BNX2X_ERR
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U_ETH_MAX_SGES_FOR_PACKET,8,3  ## @U_ETH_MAX_SGES_FOR_PACKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TPA update: max_sges received %d, max is %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"TPA update: max_tpa_queues received %d, max is %d\n"

	.no_dead_strip	_bnx2x_validate_tpa_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_validate_tpa_params
_bnx2x_validate_tpa_params:             ; @bnx2x_validate_tpa_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x1]
Lloh0:
	adrp	x8, _U_ETH_MAX_SGES_FOR_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U_ETH_MAX_SGES_FOR_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
Lloh3:
	adrp	x22, _EINVAL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	cmp	x1, x2
	b.le	LBB0_2
; %bb.1:
	ldr	w8, [x22]
	neg	w21, w8
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	ldr	x23, [x20, #8]
	mov	x0, x19
	bl	_MAX_AGG_QS
	cmp	x23, x0
	b.le	LBB0_5
; %bb.4:
	ldr	w8, [x22]
	neg	w21, w8
	ldr	x20, [x20, #8]
	mov	x0, x19
	bl	_MAX_AGG_QS
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ETH_MAX_SGES_FOR_PACKET,8,3  ; @U_ETH_MAX_SGES_FOR_PACKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TPA update: max_sges received %d, max is %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"TPA update: max_tpa_queues received %d, max is %d\n"

	.no_dead_strip	_bnx2x_validate_tpa_params
.subsections_via_symbols
