	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProxyEncodeIpHeader
_ProxyEncodeIpHeader:                   ## @ProxyEncodeIpHeader
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpl	$13, (%rdi)
	jg	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	leaq	80(%rdi), %r14
	leaq	112(%rdi), %r15
	movq	8(%rdi), %rdi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	leal	-20(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movabsq	$34359738468, %rax              ## imm = 0x800000064
	movq	%rax, -80(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	16(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_ip_next
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	movl	$2, %edx
	callq	_memcpy
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	-72(%rbp), %ebx
	addl	-80(%rbp), %ebx
	addl	-64(%rbp), %ebx
	shlq	$32, %rbx
	negq	%rbx
	shrq	$32, %rbx
	subl	-56(%rbp), %ebx
	movl	(%r12), %r15d
	leal	2(%r15), %eax
	movl	%eax, (%r12)
	movq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	leal	8(%rax), %edi
	callq	_htons
	movq	%rax, 8(%r12)
	addl	%r15d, %ebx
	addl	%ebx, %r14d
	addl	%r15d, %eax
	addl	$2, %eax
	subl	%eax, %r14d
	movl	4(%r12), %esi
	movl	%r14d, %edi
	callq	_ADJUST_CHECKSUM
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTION_LEN_BYTES,4,2           ## @OPTION_LEN_BYTES
	.comm	_OPTION_LEN_INT16,4,2           ## @OPTION_LEN_INT16
	.comm	_OPTION_LEN_INT32,4,2           ## @OPTION_LEN_INT32
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_ProxyEncodeIpHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ProxyEncodeIpHeader
lCPI0_0:
	.long	100                             ; 0x64
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ProxyEncodeIpHeader:                   ; @ProxyEncodeIpHeader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w8, [x0]
	cmp	w8, #13
	b.gt	LBB0_2
; %bb.1:
	mov	x19, x0
	add	x20, x0, #80
	add	x21, x0, #112
	ldr	x0, [x0, #8]
	bl	_ntohs
	sub	w2, w0, #20
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	add	x21, sp, #8
	add	x0, x21, #8
	add	x1, x19, #16
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_ip_next
	mov	x1, x0
	add	x0, x21, #24
	mov	w2, #2
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [sp, #8]
	ldr	w9, [sp, #16]
	ldr	w10, [sp, #24]
	ldr	w11, [sp, #32]
	add	w8, w9, w8
	add	w8, w10, w8
	neg	x8, x8, lsl #32
	lsr	x8, x8, #32
	sub	w21, w8, w11
	ldr	w22, [x19]
	add	w23, w22, #2
	str	w23, [x19]
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_ntohs
	add	w0, w0, #8
	bl	_htons
	str	x0, [x19, #8]
	add	w8, w22, w21
	add	w8, w8, w20
	add	w9, w23, w0
	sub	w0, w8, w9
	ldr	w1, [x19, #4]
	bl	_ADJUST_CHECKSUM
LBB0_2:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTION_LEN_BYTES,4,2           ; @OPTION_LEN_BYTES
	.comm	_OPTION_LEN_INT16,4,2           ; @OPTION_LEN_INT16
	.comm	_OPTION_LEN_INT32,4,2           ; @OPTION_LEN_INT32
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_ProxyEncodeIpHeader
.subsections_via_symbols
