	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeCalcNatDetectHash           ## -- Begin function IkeCalcNatDetectHash
	.p2align	4, 0x90
_IkeCalcNatDetectHash:                  ## @IkeCalcNatDetectHash
	.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
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IKE_MAX_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_NewBuf
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WriteBufInt64
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_WriteBufInt64
	movq	%r13, %rdi
	callq	_IsIP6
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%r13,%rcx,8), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_WriteBuf
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_Endian16
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_WriteBuf
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_IkeHash
	movq	%rbx, %rdi
	callq	_FreeBuf
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_MemToBuf
	movq	%rax, %rbx
LBB0_4:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IKE_MAX_HASH_SIZE,4,2          ## @IKE_MAX_HASH_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeCalcNatDetectHash           ; -- Begin function IkeCalcNatDetectHash
	.p2align	2
_IkeCalcNatDetectHash:                  ; @IkeCalcNatDetectHash
	.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	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x26, x0
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _IKE_MAX_HASH_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKE_MAX_HASH_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_NewBuf
	mov	x20, x0
	cbz	x19, LBB0_4
; %bb.1:
	cbz	x26, LBB0_4
; %bb.2:
	cbz	x23, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x25
	bl	_WriteBufInt64
	mov	x0, x20
	mov	x1, x24
	bl	_WriteBufInt64
	mov	x0, x23
	bl	_IsIP6
	cmp	x0, #0
	cset	w8, ne
	ldr	x1, [x23, w8, uxtw #3]
	mov	x0, x20
	mov	w2, #8
	bl	_WriteBuf
	mov	x0, x22
	bl	_Endian16
	stur	w0, [x29, #-92]
	sub	x1, x29, #92
	mov	x0, x20
	mov	w2, #4
	bl	_WriteBuf
	ldp	w3, w2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_IkeHash
	mov	x0, x20
	bl	_FreeBuf
	ldr	w1, [x19]
	mov	x0, x21
	bl	_MemToBuf
	mov	x20, x0
LBB0_4:
	mov	sp, x27
	ldur	x8, [x29, #-88]
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_6
; %bb.5:
	mov	x0, x20
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IKE_MAX_HASH_SIZE,4,2          ; @IKE_MAX_HASH_SIZE
.subsections_via_symbols
