	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OpenEthLinuxIpRaw              ## -- Begin function OpenEthLinuxIpRaw
	.p2align	4, 0x90
_OpenEthLinuxIpRaw:                     ## @OpenEthLinuxIpRaw
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IsRawIpBridgeSupported
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	$88, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKE_SPECIAL_PORT
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_NewUDP4
	movq	%rax, 64(%rbx)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKE_SPECIAL_PORT
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_NewUDP4
	movq	%rax, 56(%rbx)
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKE_SPECIAL_PORT
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_NewUDP4
	movq	%rax, 40(%rbx)
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	cmpq	$0, 56(%rbx)
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	callq	_ClearSockDfBit
	movq	56(%rbx), %rdi
	callq	_ClearSockDfBit
	movq	40(%rbx), %rdi
	callq	_ClearSockDfBit
	movq	64(%rbx), %rdi
	movl	$1, %esi
	callq	_SetRawSockHeaderIncludeOption
	movq	56(%rbx), %rdi
	movl	$1, %esi
	callq	_SetRawSockHeaderIncludeOption
	movq	40(%rbx), %rdi
	movl	$1, %esi
	callq	_SetRawSockHeaderIncludeOption
	movq	_BRIDGE_SPECIAL_IPRAW_NAME@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_CopyStr
	movq	%rax, 80(%rbx)
	movl	(%r14), %edi
	callq	_CopyStr
	movq	%rax, 72(%rbx)
	xorl	%eax, %eax
	callq	_NewCancel
	movq	%rax, 48(%rbx)
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_UnixDeletePipe
	movq	48(%rbx), %rax
	movq	$-1, (%rax)
	movq	64(%rbx), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_UnixSetSocketNonBlockingMode
	movq	56(%rbx), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_UnixSetSocketNonBlockingMode
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_UnixSetSocketNonBlockingMode
	movq	48(%rbx), %rax
	movl	$1, 8(%rax)
	movq	64(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	56(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	40(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	8(%rbx), %rax
	movl	$1, 8(%rax)
	movl	$1, 20(%rax)
	leaq	32(%rbx), %rdi
	movl	$10, %esi
	movl	$171, %edx
	movl	$7, %ecx
	movl	$253, %r8d
	callq	_SetIP
	movq	%rbx, %rdi
	addq	$28, %rdi
	movl	$10, %esi
	movl	$171, %edx
	movl	$7, %ecx
	movl	$254, %r8d
	callq	_SetIP
	xorl	%eax, %eax
	callq	_NewQueueFast
	movl	%eax, 24(%rbx)
	movl	$67000, 16(%rbx)                ## imm = 0x105B8
	movl	$67000, %edi                    ## imm = 0x105B8
	callq	_Malloc
	movl	%eax, 20(%rbx)
	jmp	LBB0_6
LBB0_4:
	callq	_ReleaseSock
	movq	56(%rbx), %rdi
	callq	_ReleaseSock
	movq	40(%rbx), %rdi
	callq	_ReleaseSock
	movq	%rbx, %rdi
	callq	_Free
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_IPPROTO_ICMP,4,2               ## @IPPROTO_ICMP
	.comm	_BRIDGE_SPECIAL_IPRAW_NAME,4,2  ## @BRIDGE_SPECIAL_IPRAW_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OpenEthLinuxIpRaw              ; -- Begin function OpenEthLinuxIpRaw
	.p2align	2
_OpenEthLinuxIpRaw:                     ; @OpenEthLinuxIpRaw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_IsRawIpBridgeSupported
	cbz	w0, LBB0_6
; %bb.1:
	mov	w0, #88
	bl	_ZeroMalloc
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAKE_SPECIAL_PORT
	mov	x1, #0
	bl	_NewUDP4
	str	x0, [x19, #64]
Lloh3:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MAKE_SPECIAL_PORT
	mov	x1, #0
	bl	_NewUDP4
	str	x0, [x19, #56]
Lloh6:
	adrp	x8, _IPPROTO_ICMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_ICMP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MAKE_SPECIAL_PORT
	mov	x1, #0
	bl	_NewUDP4
	mov	x8, x0
	str	x0, [x19, #40]
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_5
; %bb.3:
	cbz	x8, LBB0_5
; %bb.4:
	bl	_ClearSockDfBit
	ldr	x0, [x19, #56]
	bl	_ClearSockDfBit
	ldr	x0, [x19, #40]
	bl	_ClearSockDfBit
	ldr	x0, [x19, #64]
	mov	w20, #1
	mov	w1, #1
	bl	_SetRawSockHeaderIncludeOption
	ldr	x0, [x19, #56]
	mov	w1, #1
	bl	_SetRawSockHeaderIncludeOption
	ldr	x0, [x19, #40]
	mov	w1, #1
	bl	_SetRawSockHeaderIncludeOption
Lloh9:
	adrp	x21, _BRIDGE_SPECIAL_IPRAW_NAME@GOTPAGE
Lloh10:
	ldr	x21, [x21, _BRIDGE_SPECIAL_IPRAW_NAME@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_CopyStr
	str	x0, [x19, #80]
	ldr	w0, [x21]
	bl	_CopyStr
	str	x0, [x19, #72]
	bl	_NewCancel
	str	x0, [x19, #48]
	ldp	w8, w1, [x0]
	mov	x0, x8
	bl	_UnixDeletePipe
	ldr	x8, [x19, #48]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	ldr	x8, [x19, #64]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_UnixSetSocketNonBlockingMode
	ldr	x8, [x19, #56]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_UnixSetSocketNonBlockingMode
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_UnixSetSocketNonBlockingMode
	ldp	x9, x8, [x19, #56]
	ldr	w8, [x8]
	ldp	x11, x10, [x19, #40]
	str	w8, [x10]
	ldr	w8, [x9]
	stp	w20, w8, [x10, #8]
	ldr	w8, [x11]
	str	w8, [x10, #16]
	ldr	x8, [x19, #8]
	str	w20, [x8, #8]
	str	w20, [x8, #20]
	add	x0, x19, #32
	mov	w1, #10
	mov	w2, #171
	mov	w3, #7
	mov	w4, #253
	bl	_SetIP
	add	x0, x19, #28
	mov	w1, #10
	mov	w2, #171
	mov	w3, #7
	mov	w4, #254
	bl	_SetIP
	bl	_NewQueueFast
	str	w0, [x19, #24]
	mov	w8, #1464
	movk	w8, #1, lsl #16
	str	w8, [x19, #16]
	mov	w0, #1464
	movk	w0, #1, lsl #16
	bl	_Malloc
	str	w0, [x19, #20]
	b	LBB0_7
LBB0_5:
	bl	_ReleaseSock
	ldr	x0, [x19, #56]
	bl	_ReleaseSock
	ldr	x0, [x19, #40]
	bl	_ReleaseSock
	mov	x0, x19
	bl	_Free
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_IPPROTO_ICMP,4,2               ; @IPPROTO_ICMP
	.comm	_BRIDGE_SPECIAL_IPRAW_NAME,4,2  ; @BRIDGE_SPECIAL_IPRAW_NAME
.subsections_via_symbols
