	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_udp_tnl_del_port
_efx_ef10_udp_tnl_del_port:             ## @efx_ef10_udp_tnl_del_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	$24, %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), %r14
	movl	(%r14), %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, %r12
	leaq	16(%rbp), %rbx
	movq	(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %edx
	callq	_efx_get_udp_tunnel_type_name
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r12), %r15d
	movl	8(%rbx), %ebx
	movl	%ebx, %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	leaq	-56(%rbp), %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_efx_device_detach_sync
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	___efx_ef10_udp_tnl_lookup_port
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	(%rax), %rdi
	cmpq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.4:
	decq	16(%rax)
	je	LBB0_6
## %bb.5:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %r13d
	movl	%ebx, %edi
	callq	_ntohs
	movslq	%eax, %r8
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_efx_get_udp_tunnel_type_name
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r12), %r15d
	movl	%ebx, %edi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %r8d
	leaq	-56(%rbp), %r9
	callq	_netif_warn
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_efx_ef10_set_udp_tnl_ports
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_12:
	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	"Removing UDP tunnel (%s) port %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"UDP tunnel port %d remains active\n"

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

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_efx_ef10_udp_tnl_del_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_del_port
_efx_ef10_udp_tnl_del_port:             ; @efx_ef10_udp_tnl_del_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x24, [x0, #8]
	ldr	w8, [x24]
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_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x1]
	add	x1, sp, #16
	mov	w2, #8
	bl	_efx_get_udp_tunnel_type_name
Lloh6:
	adrp	x23, _drv@GOTPAGE
Lloh7:
	ldr	x23, [x23, _drv@GOTPAGEOFF]
	ldr	w20, [x23]
	ldr	w22, [x19]
	ldr	w0, [x21, #8]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	str	x0, [sp]
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_netif_dbg
	add	x20, x24, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_efx_device_detach_sync
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	___efx_ef10_udp_tnl_lookup_port
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x0, #16]
	subs	x8, x8, #1
	str	x8, [x0, #16]
	b.eq	LBB0_11
; %bb.4:
	ldr	w22, [x23]
	ldr	w23, [x19]
	ldr	w0, [x21, #8]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x4, w0
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_netif_dbg
	mov	w19, #0
	b	LBB0_8
LBB0_5:
	mov	w19, #0
	b	LBB0_9
LBB0_6:
	add	x1, sp, #16
	mov	x0, x8
	mov	w2, #8
	bl	_efx_get_udp_tunnel_type_name
	ldr	w22, [x23]
	ldr	w23, [x19]
	ldr	w0, [x21, #8]
	bl	_ntohs
	mov	x4, x0
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	add	x5, sp, #16
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_netif_warn
LBB0_7:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_efx_ef10_set_udp_tnl_ports
	mov	x19, x0
	b	LBB0_8
LBB0_12:
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	"Removing UDP tunnel (%s) port %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"UDP tunnel port %d remains active\n"

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

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_efx_ef10_udp_tnl_del_port
.subsections_via_symbols
