	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_udp_tnl_add_port
_efx_ef10_udp_tnl_add_port:             ## @efx_ef10_udp_tnl_add_port
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movl	(%r13), %eax
	movq	_MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	-56(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movq	%rdx, %r14
	movl	$8, %edx
	callq	_efx_get_udp_tunnel_type_name
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	shrq	$32, %r14
	movl	%r14d, %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	leaq	-56(%rbp), %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_netif_dbg
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_efx_device_detach_sync
	movq	%r15, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	callq	___efx_ef10_udp_tnl_lookup_port
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %r14
	movq	(%rax), %rdi
	cmpq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	incl	8(%r14)
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_3:
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	cmpl	$0, (%rdi,%r14)
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	addq	$16, %r14
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_11:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %r13
	movl	(%r15), %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ntohs
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%r13, %r12
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_efx_get_udp_tunnel_type_name
	movq	%r12, %r13
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %r12
	movl	%r14d, %edx
	movq	%rax, %r8
	leaq	-56(%rbp), %r9
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -8(%rdi,%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rdi,%r14)
	movq	8(%r13), %rax
	movl	$1, (%rax,%r14)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_efx_ef10_set_udp_tnl_ports
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN,4,2 ## @MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding UDP tunnel (%s) port %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Referencing existing tunnel entry\n"

L_.str.2:                               ## @.str.2
	.asciz	"UDP port %d is already in use by %s\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.3:                               ## @.str.3
	.asciz	"Unable to add UDP tunnel (%s) port %d; insufficient resources.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_efx_ef10_udp_tnl_add_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_udp_tnl_add_port
_efx_ef10_udp_tnl_add_port:             ; @efx_ef10_udp_tnl_add_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x25, [x0, #8]
	ldr	w8, [x25]
Lloh3:
	adrp	x9, _MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x27, sp, #16
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #8
	bl	_efx_get_udp_tunnel_type_name
Lloh6:
	adrp	x26, _drv@GOTPAGE
Lloh7:
	ldr	x26, [x26, _drv@GOTPAGEOFF]
	ldr	w19, [x26]
	ldr	w24, [x20]
	lsr	x23, x22, #32
	mov	x0, x23
	bl	_ntohs
	stp	x27, x0, [sp]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_netif_dbg
	add	x19, x25, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_efx_device_detach_sync
	mov	x0, x20
	mov	x1, x23
	bl	___efx_ef10_udp_tnl_lookup_port
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	ldr	x0, [x0]
	cmp	x0, x21
	b.ne	LBB0_10
; %bb.3:
	ldr	w1, [x26]
	ldr	w2, [x20]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netif_dbg
	mov	w20, #0
	ldr	w8, [x24, #8]
	add	w8, w8, #1
	str	w8, [x24, #8]
	b	LBB0_12
LBB0_4:
	mov	w20, #0
	b	LBB0_13
LBB0_5:
	ldr	x0, [x25, #8]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_9
; %bb.6:
	mov	x24, #0
	mov	x27, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25, #8]
	add	x8, x0, x24
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x27, x0
	b.lo	LBB0_7
LBB0_9:
	ldr	w21, [x26]
	ldr	w22, [x20]
	mov	x0, x23
	bl	_ntohs
	add	x8, sp, #16
	stp	x8, x0, [sp]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_netif_dbg
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	add	x24, sp, #16
	add	x1, sp, #16
	mov	w2, #8
	bl	_efx_get_udp_tunnel_type_name
	ldr	w21, [x26]
	ldr	w22, [x20]
	mov	x0, x23
	bl	_ntohs
	stp	x0, x24, [sp]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_netif_dbg
Lloh18:
	adrp	x8, _EEXIST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	stp	x21, x22, [x8]
	ldr	x8, [x25, #8]
	add	x8, x8, x24
	mov	w9, #1
	str	w9, [x8, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_efx_ef10_set_udp_tnl_ports
	mov	x20, x0
	b	LBB0_12
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN,4,2 ; @MC_CMD_GET_CAPABILITIES_OUT_VXLAN_NVGRE_LBN
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding UDP tunnel (%s) port %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Referencing existing tunnel entry\n"

l_.str.2:                               ; @.str.2
	.asciz	"UDP port %d is already in use by %s\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.3:                               ; @.str.3
	.asciz	"Unable to add UDP tunnel (%s) port %d; insufficient resources.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_efx_ef10_udp_tnl_add_port
.subsections_via_symbols
