	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CloseEth                       ## -- Begin function CloseEth
	.p2align	4, 0x90
_CloseEth:                              ## @CloseEth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 64(%rdi)
	je	LBB0_2
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CloseEthLinuxIpRaw             ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_FreeTap
LBB0_4:
	movl	24(%rbx), %edi
	callq	_ReleaseCancel
	movq	16(%rbx), %rdi
	callq	_Free
	movq	8(%rbx), %rdi
	callq	_Free
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EthSetMtu
	movl	(%rbx), %edi
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_6
## %bb.5:
	callq	_closesocket
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_SOCKET,4,2             ## @INVALID_SOCKET
	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CloseEth                       ; -- Begin function CloseEth
	.p2align	2
_CloseEth:                              ; @CloseEth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CloseEthLinuxIpRaw
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_FreeTap
LBB0_6:
	ldr	w0, [x19, #24]
	bl	_ReleaseCancel
	ldr	x0, [x19, #16]
	bl	_Free
	ldr	x0, [x19, #8]
	bl	_Free
	mov	x0, x19
	mov	w1, #0
	bl	_EthSetMtu
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _INVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
	bl	_closesocket
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_SOCKET,4,2             ; @INVALID_SOCKET
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
