	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EthPutPacket                   ## -- Begin function EthPutPacket
	.p2align	4, 0x90
_EthPutPacket:                          ## @EthPutPacket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movl	%edx, %r14d
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.11:
	movq	%rbx, %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_EthPutPacketLinuxIpRaw         ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	cmpl	$14, %r14d
	jl	LBB0_9
## %bb.4:
	movq	_MAX_PACKET_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jl	LBB0_9
## %bb.5:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_VLanPutPacket                  ## TAILCALL
LBB0_6:
	movl	(%rdi), %edi
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_write
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_Debug
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PACKET_SIZE,4,2            ## @MAX_PACKET_SIZE
	.comm	_INVALID_SOCKET,4,2             ## @INVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EthPutPacket: ret:%d errno:%d  size:%d\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EthPutPacket                   ; -- Begin function EthPutPacket
	.p2align	2
_EthPutPacket:                          ; @EthPutPacket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x2
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_EthPutPacketLinuxIpRaw
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	cmp	w20, #14
	b.lt	LBB0_12
; %bb.6:
Lloh0:
	adrp	x8, _MAX_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.lt	LBB0_12
; %bb.7:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x8
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_VLanPutPacket
LBB0_9:
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _INVALID_SOCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INVALID_SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.10:
	mov	x1, x19
	mov	x2, x20
	bl	_write
	tbz	w0, #31, LBB0_12
; %bb.11:
	mov	x1, x0
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Debug
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_Free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PACKET_SIZE,4,2            ; @MAX_PACKET_SIZE
	.comm	_INVALID_SOCKET,4,2             ; @INVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EthPutPacket: ret:%d errno:%d  size:%d\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
