	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartAddIpTablesEntryForNativeStack ## -- Begin function StartAddIpTablesEntryForNativeStack
	.p2align	4, 0x90
_StartAddIpTablesEntryForNativeStack:   ## @StartAddIpTablesEntryForNativeStack
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IsIpTablesSupported
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	$8, %edi
	callq	_ZeroMalloc
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_NewListFast
	movl	%eax, (%r12)
	movl	4(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_Sha1
	movl	$20, %edi
	callq	_ZeroMalloc
	movq	%rax, %r15
	movl	4(%r12), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_GenerateDummyIpAndMark
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %r14
	movl	$4, %esi
	movq	%r14, %rdx
	callq	_StrCpy
	movslq	16(%r15), %rdi
	movq	_NN_RAW_IP_PORT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NN_RAW_IP_PORT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	8(%r15), %r9
	leaq	4(%r15), %r10
	movl	(%r15), %r11d
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	callq	_Format
	addq	$16, %rsp
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_Add
	movl	$20, %edi
	callq	_ZeroMalloc
	movq	%rax, %r15
	movl	4(%r12), %edi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_GenerateDummyIpAndMark
	movl	12(%r15), %edi
	movl	$4, %esi
	movq	%r14, %rdx
	callq	_StrCpy
	movslq	16(%r15), %rdi
	leal	8(%r15), %ecx
	leal	4(%r15), %r8d
	movl	(%r15), %r9d
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_Format
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_Add
	movl	(%r12), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_12
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%r12), %edi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$4, %rbx
	movl	$100, %r15d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	12(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_GetCurrentIpTableLineNumber
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rsp, %r12
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %ecx
	movl	16(%rax), %r8d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_Format
	movq	%rbx, %rdi
	callq	_system
	movq	%r12, %rsp
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	decq	%r15
	jne	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	12(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_GetCurrentIpTableLineNumber
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsp, %r13
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	12(%r12), %ecx
	movl	16(%r12), %r8d
	movl	%r15d, %esi
	movq	%rdi, %r15
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_Format
	movq	%r15, %rdi
	callq	_system
	movl	(%r12), %ecx
	movl	12(%r12), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_GetCurrentIpTableLineNumber
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	callq	_Debug
	movq	%r13, %rsp
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	callq	_Debug
	movq	%r13, %rsp
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	%rbx, %rdi
	callq	_EndAddIpTablesEntryForNativeStack
	xorl	%r12d, %r12d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OUTPUT"

L_.str.1:                               ## @.str.1
	.asciz	"-p tcp --tcp-flags RST RST --sport %u:%u ! -s %r/32 ! -d %r/32 -m connmark ! --mark 0x%x -j DROP"

	.comm	_NN_RAW_IP_PORT_START,4,2       ## @NN_RAW_IP_PORT_START
	.comm	_NN_RAW_IP_PORT_END,4,2         ## @NN_RAW_IP_PORT_END
L_.str.2:                               ## @.str.2
	.asciz	"-p icmp --icmp-type 3/3 ! -s %r/32 ! -d %r/32 -m connmark ! --mark 0x%x -j DROP"

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
L_.str.3:                               ## @.str.3
	.asciz	"iptables -D %s %s"

L_.str.4:                               ## @.str.4
	.asciz	"iptables -I %s %s"

L_.str.5:                               ## @.str.5
	.asciz	"Run \"%s\" failed.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Run \"%s\" ok.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartAddIpTablesEntryForNativeStack ; -- Begin function StartAddIpTablesEntryForNativeStack
	.p2align	2
_StartAddIpTablesEntryForNativeStack:   ; @StartAddIpTablesEntryForNativeStack
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_IsIpTablesSupported
	cbz	x0, LBB0_10
; %bb.1:
	mov	w0, #8
	bl	_ZeroMalloc
	mov	x19, x0
	mov	x0, #0
	bl	_NewListFast
	str	w0, [x19]
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_Sha1
	mov	w0, #20
	bl	_ZeroMalloc
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	w2, #0
	bl	_GenerateDummyIpAndMark
	ldr	w0, [x20, #12]
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	mov	w1, #4
	mov	x2, x21
	bl	_StrCpy
	ldrsw	x0, [x20, #16]
Lloh5:
	adrp	x8, _NN_RAW_IP_PORT_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NN_RAW_IP_PORT_START@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _NN_RAW_IP_PORT_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NN_RAW_IP_PORT_END@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	add	x8, x20, #8
	add	x9, x20, #4
	ldr	w10, [x20]
	sub	sp, sp, #32
	stp	x9, x10, [sp, #8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	w1, #4
	bl	_Format
	add	sp, sp, #32
	ldr	w0, [x19]
	mov	x1, x20
	bl	_Add
	mov	w0, #20
	bl	_ZeroMalloc
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	w2, #1
	bl	_GenerateDummyIpAndMark
	ldr	w0, [x20, #12]
	mov	w1, #4
	mov	x2, x21
	bl	_StrCpy
	ldrsw	x0, [x20, #16]
	add	w3, w20, #8
	add	w4, w20, #4
	ldr	w8, [x20]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	str	x8, [sp, #-16]!
	mov	w1, #4
	bl	_Format
	add	sp, sp, #16
	ldr	w0, [x19]
	mov	x1, x20
	bl	_Add
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x20, #0
Lloh15:
	adrp	x28, _MAX_PATH@GOTPAGE
Lloh16:
	ldr	x28, [x28, _MAX_PATH@GOTPAGEOFF]
Lloh17:
	adrp	x23, l_.str.3@PAGE
Lloh18:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	w0, [x19]
	bl	_LIST_NUM
	cmp	x20, x0
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w0, [x19]
	mov	x1, x20
	bl	_LIST_DATA
	mov	x25, x0
	add	x24, x0, #8
	add	x26, x0, #4
	mov	w22, #100
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25, #12]
	ldr	w3, [x25]
	mov	x1, x24
	mov	x2, x26
	bl	_GetCurrentIpTableLineNumber
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, sp
	ldr	w1, [x28]
	mov	x9, x1
Lloh19:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh20:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
	ldp	w3, w4, [x25, #12]
	mov	x0, x27
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x23
	bl	_Format
	mov	x0, x27
	bl	_system
	mov	sp, x21
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25, #12]
	ldr	w3, [x25]
	mov	x1, x24
	mov	x2, x26
	bl	_GetCurrentIpTableLineNumber
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, sp
	ldr	w1, [x28]
	mov	x9, x1
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
	ldp	w3, w4, [x25, #12]
	mov	x0, x27
                                        ; kill: def $w1 killed $w1 killed $x1
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_Format
	mov	x0, x27
	bl	_system
	ldr	w0, [x25, #12]
	ldr	w3, [x25]
	mov	x1, x24
	mov	x2, x26
	bl	_GetCurrentIpTableLineNumber
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x27
	bl	_Debug
	mov	sp, x22
	b	LBB0_3
LBB0_10:
	mov	x19, #0
	b	LBB0_12
LBB0_11:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x27
	bl	_Debug
	mov	sp, x22
LBB0_12:
	mov	x0, x19
	bl	_EndAddIpTablesEntryForNativeStack
	mov	x19, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OUTPUT"

l_.str.1:                               ; @.str.1
	.asciz	"-p tcp --tcp-flags RST RST --sport %u:%u ! -s %r/32 ! -d %r/32 -m connmark ! --mark 0x%x -j DROP"

	.comm	_NN_RAW_IP_PORT_START,4,2       ; @NN_RAW_IP_PORT_START
	.comm	_NN_RAW_IP_PORT_END,4,2         ; @NN_RAW_IP_PORT_END
l_.str.2:                               ; @.str.2
	.asciz	"-p icmp --icmp-type 3/3 ! -s %r/32 ! -d %r/32 -m connmark ! --mark 0x%x -j DROP"

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
l_.str.3:                               ; @.str.3
	.asciz	"iptables -D %s %s"

l_.str.4:                               ; @.str.4
	.asciz	"iptables -I %s %s"

l_.str.5:                               ; @.str.5
	.asciz	"Run \"%s\" failed.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Run \"%s\" ok.\n"

.subsections_via_symbols
