	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PunchFWHole                    ## -- Begin function PunchFWHole
	.p2align	4, 0x90
_PunchFWHole:                           ## @PunchFWHole
	.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	$1048, %rsp                     ## imm = 0x418
	.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)
	movq	16(%rdi), %r15
	movq	_PKT_ALIAS_PUNCH_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_20
## %bb.1:
	cmpq	$0, 8(%r15)
	js	LBB0_20
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_LINK_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.3:
	leaq	-1088(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	16(%r15), %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %ebx
	movl	24(%r15), %eax
	addl	%ebx, %eax
	cmpl	%eax, %r12d
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	28(%r15), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_fw_tstfield
	testq	%rax, %rax
	je	LBB0_6
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	jmp	LBB0_4
LBB0_6:
	movl	20(%r15), %ebx
	movl	24(%r15), %eax
	addl	%ebx, %eax
LBB0_7:
	cmpl	%eax, %r12d
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %eax
	cmpl	%eax, %ebx
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	28(%r15), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_fw_tstfield
	testq	%rax, %rax
	je	LBB0_10
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	jmp	LBB0_8
LBB0_10:
	movl	16(%r15), %eax
LBB0_11:
	movl	%ebx, %r12d
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.12:
	movl	20(%r15), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_20
LBB0_13:
	leal	1(%r12), %eax
	movl	%eax, 16(%r15)
	movq	%r14, %rdi
	callq	_GetOriginalPort
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	callq	_GetDestPort
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	_O_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1084(%rbp)               ## 4-byte Spill
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1080(%rbp)               ## 4-byte Spill
	movq	%r14, %rdi
	callq	_GetOriginalAddress
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
	movq	%r14, %rdi
	callq	_GetOriginalPort
	movq	%rax, %rdi
	callq	_ntohs
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_GetDestAddress
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_GetDestPort
	movq	%rax, %rdi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-1072(%rbp), %rdi
	movl	$1020, %esi                     ## imm = 0x3FC
	movl	%r12d, %edx
	movl	-1084(%rbp), %ecx               ## 4-byte Reload
	movl	-1080(%rbp), %r8d               ## 4-byte Reload
	movl	-1076(%rbp), %r9d               ## 4-byte Reload
	pushq	%rax
	pushq	%r13
	pushq	%rbx
	callq	_fill_rule
	addq	$32, %rsp
	movq	8(%r15), %rdi
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IP_FW_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-1072(%rbp), %rcx
	movl	%eax, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_17:
	movq	_O_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1084(%rbp)               ## 4-byte Spill
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1080(%rbp)               ## 4-byte Spill
	movq	%r14, %rdi
	callq	_GetDestAddress
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
	movq	%r14, %rdi
	callq	_GetDestPort
	movq	%rax, %rdi
	callq	_ntohs
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_GetOriginalAddress
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_GetOriginalPort
	movq	%rax, %rdi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-1072(%rbp), %rdi
	movl	$1020, %esi                     ## imm = 0x3FC
	movl	%r12d, %edx
	movl	-1084(%rbp), %ecx               ## 4-byte Reload
	movl	-1080(%rbp), %r8d               ## 4-byte Reload
	movl	-1076(%rbp), %r9d               ## 4-byte Reload
	pushq	%rax
	pushq	%rbx
	pushq	%r13
	callq	_fill_rule
	addq	$32, %rsp
	movq	8(%r15), %rdi
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IP_FW_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-1072(%rbp), %rcx
	movl	%eax, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_19:
	movq	8(%r14), %rax
	movl	%r12d, (%rax)
	movl	28(%r15), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_fw_setfield
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.24:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_ALIAS_PUNCH_FW,4,2         ## @PKT_ALIAS_PUNCH_FW
	.comm	_LINK_TCP,8,3                   ## @LINK_TCP
	.comm	_O_ACCEPT,4,2                   ## @O_ACCEPT
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_FW_ADD,4,2                  ## @IP_FW_ADD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alias punch inbound(1) setsockopt(IP_FW_ADD)"

L_.str.1:                               ## @.str.1
	.asciz	"alias punch inbound(2) setsockopt(IP_FW_ADD)"

	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PunchFWHole                    ; -- Begin function PunchFWHole
	.p2align	2
_PunchFWHole:                           ; @PunchFWHole
	.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, #1056
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x19, [x0, #16]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _PKT_ALIAS_PUNCH_FW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PKT_ALIAS_PUNCH_FW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.1:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_22
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _LINK_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LINK_TCP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.3:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w21, [x19, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w22, w8, [x19, #20]
	add	w8, w8, w22
	cmp	w21, w8
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #28]
	mov	x0, x19
	mov	x2, x21
	bl	_fw_tstfield
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	b	LBB0_4
LBB0_7:
	ldp	w22, w8, [x19, #20]
	add	w8, w8, w22
LBB0_8:
	cmp	w21, w8
	b.ne	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	cmp	w22, w8
	b.ge	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x19, #28]
	mov	x0, x19
	mov	x2, x22
	bl	_fw_tstfield
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	b	LBB0_9
LBB0_12:
	ldr	w8, [x19, #16]
LBB0_13:
	mov	x21, x22
	cmp	w22, w8
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [x19, #20]
	str	w8, [x19, #16]
	b	LBB0_22
LBB0_15:
	add	w8, w21, #1
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_GetOriginalPort
	cbz	x0, LBB0_21
; %bb.16:
	mov	x0, x20
	bl	_GetDestPort
	cbz	x0, LBB0_21
; %bb.17:
Lloh9:
	adrp	x8, _O_ACCEPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_ACCEPT@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_GetOriginalAddress
	mov	x24, x0
	mov	x0, x20
	bl	_GetOriginalPort
	bl	_ntohs
	mov	x25, x0
	mov	x0, x20
	bl	_GetDestAddress
	mov	x26, x0
	mov	x0, x20
	bl	_GetDestPort
	bl	_ntohs
	str	w0, [sp]
	add	x0, sp, #20
	mov	w1, #1020
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_fill_rule
	mov	x4, x0
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x27, _IPPROTO_IP@GOTPAGE
Lloh16:
	ldr	x27, [x27, _IPPROTO_IP@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh17:
	adrp	x28, _IP_FW_ADD@GOTPAGE
Lloh18:
	ldr	x28, [x28, _IP_FW_ADD@GOTPAGEOFF]
	ldr	w2, [x28]
	add	x3, sp, #20
	bl	_setsockopt
	cbz	w0, LBB0_19
; %bb.18:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_19:
Lloh21:
	adrp	x8, _O_ACCEPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_ACCEPT@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_GetDestAddress
	mov	x24, x0
	mov	x0, x20
	bl	_GetDestPort
	bl	_ntohs
	mov	x25, x0
	mov	x0, x20
	bl	_GetOriginalAddress
	mov	x26, x0
	mov	x0, x20
	bl	_GetOriginalPort
	bl	_ntohs
	str	w0, [sp]
	add	x0, sp, #20
	mov	w1, #1020
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_fill_rule
	mov	x4, x0
	ldr	x0, [x19, #8]
	ldr	w1, [x27]
	ldr	w2, [x28]
	add	x3, sp, #20
	bl	_setsockopt
	cbz	w0, LBB0_21
; %bb.20:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_21:
	ldr	x8, [x20, #8]
	str	w21, [x8]
	ldr	w1, [x19, #28]
	mov	x0, x19
	mov	x2, x21
	bl	_fw_setfield
LBB0_22:
	ldur	x8, [x29, #-96]
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_24
; %bb.23:
	add	sp, sp, #1056
	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_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_ALIAS_PUNCH_FW,4,2         ; @PKT_ALIAS_PUNCH_FW
	.comm	_LINK_TCP,8,3                   ; @LINK_TCP
	.comm	_O_ACCEPT,4,2                   ; @O_ACCEPT
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_FW_ADD,4,2                  ; @IP_FW_ADD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alias punch inbound(1) setsockopt(IP_FW_ADD)"

l_.str.1:                               ; @.str.1
	.asciz	"alias punch inbound(2) setsockopt(IP_FW_ADD)"

	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
