	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tproxy_tg4
_tproxy_tg4:                            ## @tproxy_tg4
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	callq	_ip_hdr
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ip_hdrlen
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_skb_header_pointer
	movq	%rax, %r12
	movq	_NF_DROP@GOTPCREL(%rip), %rax
	testq	%r12, %r12
	je	LBB0_12
## %bb.1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edi
	callq	_dev_net
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	movl	4(%r13), %r10d
	movq	_NFT_LOOKUP_ESTABLISHED@GOTPCREL(%rip), %rdi
	movl	%r15d, %ebx
	movl	(%rdi), %r11d
	movl	%eax, %edi
	pushq	%r11
	pushq	%r10
	callq	_nf_tproxy_get_sock_v4
	addq	$16, %rsp
	movq	%rax, %r15
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_tproxy_laddr4
	movl	%eax, %esi
	movl	%eax, -56(%rbp)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	testq	%r15, %r15
	je	LBB0_7
LBB0_4:
	movq	(%r15), %rax
	movq	_TCP_TIME_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_tproxy_handle_time_wait4
	jmp	LBB0_8
LBB0_2:
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%r15, %r15
	jne	LBB0_4
LBB0_7:
	movl	4(%r13), %edi
	movl	%esi, %ebx
	callq	_dev_net
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movl	4(%r12), %r8d
	movl	4(%r13), %r10d
	movq	_NFT_LOOKUP_LISTENER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movl	%eax, %edi
	movl	%ebx, %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%r11
	pushq	%r10
	callq	_nf_tproxy_get_sock_v4
	addq	$16, %rsp
LBB0_8:
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_11
LBB0_5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_9:
	movq	%r15, %rdi
	callq	_tproxy_sk_is_transparent
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	andl	(%r13), %eax
	xorl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%r13)
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_ntohs
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_ntohs
	movl	(%r13), %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	leaq	-56(%rbp), %r8
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r9d
	pushq	%rbx
	callq	_pr_debug
	addq	$16, %rsp
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_nf_tproxy_assign_sock
	movq	_NF_ACCEPT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %r15
	addq	$4, %r15
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	callq	_ntohs
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_ntohs
	movl	(%r13), %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	movl	%eax, %r9d
	pushq	%rbx
	callq	_pr_debug
	addq	$16, %rsp
	movq	_NF_DROP@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NF_DROP,4,2                    ## @NF_DROP
	.comm	_NFT_LOOKUP_ESTABLISHED,4,2     ## @NFT_LOOKUP_ESTABLISHED
	.comm	_TCP_TIME_WAIT,8,3              ## @TCP_TIME_WAIT
	.comm	_NFT_LOOKUP_LISTENER,4,2        ## @NFT_LOOKUP_LISTENER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redirecting: proto %hhu %pI4:%hu -> %pI4:%hu, mark: %x\n"

	.comm	_NF_ACCEPT,4,2                  ## @NF_ACCEPT
L_.str.1:                               ## @.str.1
	.asciz	"no socket, dropping: proto %hhu %pI4:%hu -> %pI4:%hu, mark: %x\n"

	.no_dead_strip	_tproxy_tg4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tproxy_tg4
_tproxy_tg4:                            ; @tproxy_tg4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x27, x1
	mov	x19, x0
	bl	_ip_hdr
	mov	x20, x0
	mov	x0, x19
	bl	_ip_hdrlen
	mov	x1, x0
	mov	x3, sp
	mov	x0, x19
	mov	w2, #8
	bl	_skb_header_pointer
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x0
	ldr	w0, [x19, #4]
	bl	_dev_net
	ldr	w1, [x20, #8]
	mov	x25, x20
	ldr	w2, [x25, #4]!
	ldr	w3, [x20]
	ldp	w5, w4, [x24]
	ldr	w6, [x19, #4]
Lloh0:
	adrp	x8, _NFT_LOOKUP_ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFT_LOOKUP_ESTABLISHED@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
	bl	_nf_tproxy_get_sock_v4
	mov	x26, x0
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x27
	bl	_tproxy_laddr4
	mov	x27, x0
	str	w0, [sp, #12]
	cbz	w21, LBB0_5
; %bb.2:
	cbz	x26, LBB0_6
LBB0_3:
	ldr	x8, [x26]
Lloh3:
	adrp	x9, _TCP_TIME_WAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCP_TIME_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x27
	mov	x2, x21
	mov	x3, x26
	bl	_tproxy_handle_time_wait4
	mov	x26, x0
	cbnz	x0, LBB0_7
	b	LBB0_9
LBB0_5:
	ldr	w21, [x24]
	cbnz	x26, LBB0_3
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_dev_net
	ldp	w2, w1, [x20, #4]
	ldr	w4, [x24, #4]
	ldr	w6, [x19, #4]
Lloh6:
	adrp	x8, _NFT_LOOKUP_LISTENER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFT_LOOKUP_LISTENER@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	x3, x27
	mov	x5, x21
	bl	_nf_tproxy_get_sock_v4
	mov	x26, x0
	cbz	x0, LBB0_9
LBB0_7:
	mov	x0, x26
	bl	_tproxy_sk_is_transparent
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	bic	w8, w8, w23
	eor	w8, w8, w22
	str	w8, [x19]
	ldr	w22, [x20, #8]
	ldr	w0, [x24]
	bl	_ntohs
	mov	x23, x0
	mov	x0, x21
	bl	_ntohs
	mov	x5, x0
	ldr	w6, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x4, sp, #12
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	bl	_pr_debug
	mov	x0, x19
	mov	x1, x26
	bl	_nf_tproxy_assign_sock
Lloh11:
	adrp	x8, _NF_ACCEPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NF_ACCEPT@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w21, [x20, #8]
	ldr	w0, [x24, #4]
	bl	_ntohs
	mov	x22, x0
	ldr	w0, [x24]
	bl	_ntohs
	mov	x5, x0
	ldr	w6, [x19]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x25
	mov	x3, x22
	mov	x4, x20
	bl	_pr_debug
LBB0_10:
Lloh15:
	adrp	x8, _NF_DROP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NF_DROP@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NF_DROP,4,2                    ; @NF_DROP
	.comm	_NFT_LOOKUP_ESTABLISHED,4,2     ; @NFT_LOOKUP_ESTABLISHED
	.comm	_TCP_TIME_WAIT,8,3              ; @TCP_TIME_WAIT
	.comm	_NFT_LOOKUP_LISTENER,4,2        ; @NFT_LOOKUP_LISTENER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redirecting: proto %hhu %pI4:%hu -> %pI4:%hu, mark: %x\n"

	.comm	_NF_ACCEPT,4,2                  ; @NF_ACCEPT
l_.str.1:                               ; @.str.1
	.asciz	"no socket, dropping: proto %hhu %pI4:%hu -> %pI4:%hu, mark: %x\n"

	.no_dead_strip	_tproxy_tg4
.subsections_via_symbols
