	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeBuildNatOaPayload           ## -- Begin function IkeBuildNatOaPayload
	.p2align	4, 0x90
_IkeBuildNatOaPayload:                  ## @IkeBuildNatOaPayload
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	-40(%rbp), %r15
	movl	$4, %r12d
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_Zero
	movq	%r14, %rdi
	callq	_IsIP6
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_IKE_ID_IPV4_ADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_IKE_ID_IPV6_ADDR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	xorl	%eax, %eax
	callq	_NewBuf
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_WriteBuf
	movq	%r14, %rdi
	callq	_IsIP6
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	$16, %edx
	cmovel	%r12d, %edx
	movq	(%r14,%rcx,8), %rsi
	movq	%rbx, %rdi
	callq	_WriteBuf
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKE_ID_IPV6_ADDR,4,2           ## @IKE_ID_IPV6_ADDR
	.comm	_IKE_ID_IPV4_ADDR,4,2           ## @IKE_ID_IPV4_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeBuildNatOaPayload           ; -- Begin function IkeBuildNatOaPayload
	.p2align	2
_IkeBuildNatOaPayload:                  ; @IkeBuildNatOaPayload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	w21, #4
	add	x0, sp, #8
	mov	w1, #4
	bl	_Zero
	mov	x0, x19
	bl	_IsIP6
Lloh0:
	adrp	x8, _IKE_ID_IPV4_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKE_ID_IPV4_ADDR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IKE_ID_IPV6_ADDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IKE_ID_IPV6_ADDR@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_NewBuf
	mov	x20, x0
	add	x1, sp, #8
	mov	w2, #4
	bl	_WriteBuf
	mov	x0, x19
	bl	_IsIP6
	cmp	x0, #0
	cset	w8, ne
	mov	w9, #16
	csel	w2, w21, w9, eq
	ldr	x1, [x19, w8, uxtw #3]
	mov	x0, x20
	bl	_WriteBuf
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IKE_ID_IPV6_ADDR,4,2           ; @IKE_ID_IPV6_ADDR
	.comm	_IKE_ID_IPV4_ADDR,4,2           ; @IKE_ID_IPV4_ADDR
.subsections_via_symbols
