	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewNativeStack                 ## -- Begin function NewNativeStack
	.p2align	4, 0x90
_NewNativeStack:                        ## @NewNativeStack
	.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	$88, %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)
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-116(%rbp), %rdi
	callq	_GetLocalHostIP4
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_OpenEth
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	movq	%r12, %rax
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	testq	%r12, %r12
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_NewCedar
	movq	%rax, %r12
LBB0_5:
	movl	$56, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	leaq	48(%rax), %rdi
	leaq	28(%rax), %rsi
	leaq	-116(%rbp), %rdx
	movl	$1, %ecx
	movq	%rdx, %r8
	movl	$1, %r9d
	callq	_NewSocketPair
	movq	%r12, 40(%rbx)
	movl	(%r12), %edi
	callq	_AddRef
	movl	24(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_NsGenMacAddress
	movl	24(%rbx), %edx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$4, %ecx
	callq	_BinToStr
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_Debug
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movq	%r12, %rdi
	callq	_NewIPCBySock
	movl	%eax, 32(%rbx)
	movl	20(%rbx), %edi
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_StrCpy
	movq	%r13, (%rbx)
	movq	%r13, %rdi
	callq	_EthGetCancel
	movl	%eax, 16(%rbx)
	movq	_NsMainThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_NewThread
	movl	%eax, 12(%rbx)
	cmpq	$0, -128(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_ReleaseCedar
LBB0_7:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NewNativeStack: MAC Address = %s\n"

	.comm	_NsMainThread,4,2               ## @NsMainThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewNativeStack                 ; -- Begin function NewNativeStack
	.p2align	2
_NewNativeStack:                        ; @NewNativeStack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x1, LBB0_9
; %bb.1:
	mov	x24, x2
	cbz	x2, LBB0_9
; %bb.2:
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #4
	bl	_GetLocalHostIP4
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_OpenEth
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
	mov	x22, x19
	cbnz	x19, LBB0_5
; %bb.4:
	mov	x0, #0
	mov	x1, #0
	bl	_NewCedar
	mov	x22, x0
LBB0_5:
	mov	w0, #56
	bl	_ZeroMalloc
	mov	x20, x0
	add	x0, x0, #48
	add	x1, x20, #28
	add	x2, sp, #4
	add	x4, sp, #4
	mov	w3, #1
	mov	w5, #1
	bl	_NewSocketPair
	str	x22, [x20, #40]
	ldr	w0, [x22]
	bl	_AddRef
	ldr	w0, [x20, #24]
	mov	x1, x24
	mov	x2, x21
	bl	_NsGenMacAddress
	ldr	w2, [x20, #24]
	add	x0, sp, #8
	mov	w1, #64
	mov	w3, #4
	bl	_BinToStr
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_Debug
	ldp	w2, w1, [x20, #24]
	mov	x0, x22
	bl	_NewIPCBySock
	str	w0, [x20, #32]
	ldr	w0, [x20, #20]
	mov	w1, #4
	mov	x2, x21
	bl	_StrCpy
	str	x23, [x20]
	mov	x0, x23
	bl	_EthGetCancel
	str	w0, [x20, #16]
Lloh5:
	adrp	x8, _NsMainThread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NsMainThread@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_NewThread
	str	w0, [x20, #12]
	cbnz	x19, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_ReleaseCedar
LBB0_7:
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x20, #8]
	b	LBB0_9
LBB0_8:
	mov	x20, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NewNativeStack: MAC Address = %s\n"

	.comm	_NsMainThread,4,2               ; @NsMainThread
.subsections_via_symbols
