	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_udp_port_update
_bnx2x_udp_port_update:                 ## @bnx2x_udp_port_update
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -48(%rbp)
	leaq	-80(%rbp), %rbx
	movq	_RAMROD_COMP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	___set_bit
	movq	_RAMROD_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	___set_bit
	leaq	8(%r12), %rax
	movq	%rax, -88(%rbp)
	movq	_BNX2X_F_CMD_SWITCH_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_BNX2X_F_UPDATE_TUNNEL_CFG_CHNG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %r15
	movq	%r15, %rsi
	callq	___set_bit
	movq	(%r12), %rax
	movq	_BNX2X_UDP_PORT_GENEVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_1
## %bb.2:
	movq	(%rax,%rcx), %r14
	movq	%r14, -56(%rbp)
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	_BNX2X_UDP_PORT_VXLAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_4
## %bb.5:
	movq	(%rax,%rcx), %r13
	movq	%r13, -64(%rbp)
	jmp	LBB0_6
LBB0_4:
	xorl	%r13d, %r13d
LBB0_6:
	movq	_BNX2X_F_UPDATE_TUNNEL_INNER_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bnx2x_func_state_change
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_BNX2X_ERR
	jmp	LBB0_9
LBB0_8:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_DP
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAMROD_COMP_WAIT,4,2           ## @RAMROD_COMP_WAIT
	.comm	_RAMROD_RETRY,4,2               ## @RAMROD_RETRY
	.comm	_BNX2X_F_CMD_SWITCH_UPDATE,4,2  ## @BNX2X_F_CMD_SWITCH_UPDATE
	.comm	_BNX2X_F_UPDATE_TUNNEL_CFG_CHNG,4,2 ## @BNX2X_F_UPDATE_TUNNEL_CFG_CHNG
	.comm	_BNX2X_UDP_PORT_GENEVE,8,3      ## @BNX2X_UDP_PORT_GENEVE
	.comm	_BNX2X_UDP_PORT_VXLAN,8,3       ## @BNX2X_UDP_PORT_VXLAN
	.comm	_BNX2X_F_UPDATE_TUNNEL_INNER_RSS,4,2 ## @BNX2X_F_UPDATE_TUNNEL_INNER_RSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set UDP dst port to %04x %04x (rc = 0x%x)\n"

	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"Configured UDP ports: Vxlan [%04x] Geneve [%04x]\n"

	.no_dead_strip	_bnx2x_udp_port_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_udp_port_update
_bnx2x_udp_port_update:                 ; @bnx2x_udp_port_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	mov	x21, sp
	add	x20, x21, #16
Lloh0:
	adrp	x8, _RAMROD_COMP_WAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAMROD_COMP_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh3:
	adrp	x8, _RAMROD_RETRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAMROD_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	add	x8, x19, #8
	str	x8, [sp, #8]
Lloh6:
	adrp	x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh9:
	adrp	x8, _BNX2X_F_UPDATE_TUNNEL_CFG_CHNG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2X_F_UPDATE_TUNNEL_CFG_CHNG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x21, x21, #24
	mov	x1, x21
	bl	___set_bit
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _BNX2X_UDP_PORT_GENEVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNX2X_UDP_PORT_GENEVE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x10, x8, x9, lsl #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_2
; %bb.1:
	lsl	x9, x9, #4
	ldr	x20, [x8, x9]
	str	x20, [sp, #40]
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
Lloh15:
	adrp	x9, _BNX2X_UDP_PORT_VXLAN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BNX2X_UDP_PORT_VXLAN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x10, x8, x9, lsl #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_5
; %bb.4:
	lsl	x9, x9, #4
	ldr	x22, [x8, x9]
	str	x22, [sp, #32]
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
Lloh18:
	adrp	x8, _BNX2X_F_UPDATE_TUNNEL_INNER_RSS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2X_F_UPDATE_TUNNEL_INNER_RSS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	___set_bit
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_func_state_change
	mov	x19, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_BNX2X_ERR
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_DP
LBB0_9:
	mov	x0, 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
	add	sp, sp, #112
	ret
	.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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_RAMROD_COMP_WAIT,4,2           ; @RAMROD_COMP_WAIT
	.comm	_RAMROD_RETRY,4,2               ; @RAMROD_RETRY
	.comm	_BNX2X_F_CMD_SWITCH_UPDATE,4,2  ; @BNX2X_F_CMD_SWITCH_UPDATE
	.comm	_BNX2X_F_UPDATE_TUNNEL_CFG_CHNG,4,2 ; @BNX2X_F_UPDATE_TUNNEL_CFG_CHNG
	.comm	_BNX2X_UDP_PORT_GENEVE,8,3      ; @BNX2X_UDP_PORT_GENEVE
	.comm	_BNX2X_UDP_PORT_VXLAN,8,3       ; @BNX2X_UDP_PORT_VXLAN
	.comm	_BNX2X_F_UPDATE_TUNNEL_INNER_RSS,4,2 ; @BNX2X_F_UPDATE_TUNNEL_INNER_RSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set UDP dst port to %04x %04x (rc = 0x%x)\n"

	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"Configured UDP ports: Vxlan [%04x] Geneve [%04x]\n"

	.no_dead_strip	_bnx2x_udp_port_update
.subsections_via_symbols
