	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransformPayloadToTransformSettingForIkeSa ## -- Begin function TransformPayloadToTransformSettingForIkeSa
	.p2align	4, 0x90
_TransformPayloadToTransformSettingForIkeSa: ## @TransformPayloadToTransformSettingForIkeSa
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.2:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.3:
	movq	%rdi, %r15
	movq	%rbx, %rdi
	movl	$72, %esi
	callq	_Zero
	movq	_IKE_TRANSFORM_VALUE_P1_CRYPTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_IkeGetTransformValue
	movq	%rax, 48(%rbx)
	movq	_IKE_TRANSFORM_VALUE_P1_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_IkeGetTransformValue
	movq	%rax, 40(%rbx)
	movq	_IKE_TRANSFORM_VALUE_P1_AUTH_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_IkeGetTransformValue
	movq	_IKE_P1_AUTH_METHOD_PRESHAREDKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_IKE_TRANSFORM_VALUE_P1_DH_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_IkeGetTransformValue
	movq	%rax, 32(%rbx)
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 64(%rbx)
	movq	_IKE_TRANSFORM_VALUE_P1_LIFE_TYPE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_IkeGetTransformValueNum
	testq	%rax, %rax
	jle	LBB0_10
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	56(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	64(%rax), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_IKE_TRANSFORM_VALUE_P1_LIFE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_IkeGetTransformValue
	movq	%rax, (%r12)
	incq	%rbx
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_IkeGetTransformValueNum
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_IkeGetTransformValue
	movq	%r15, %r12
	cmpq	$128, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$129, %rax
	je	LBB0_8
	jmp	LBB0_18
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	48(%rbx), %rdx
	xorl	%esi, %esi
	callq	_GetIkeCrypto
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	movq	40(%rbx), %rdx
	xorl	%esi, %esi
	callq	_GetIkeHash
	movq	%rax, 24(%rbx)
	movl	(%r14), %edi
	movq	32(%rbx), %rdx
	xorl	%esi, %esi
	callq	_GetIkeDh
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.11:
	cmpq	$0, 24(%rbx)
	je	LBB0_18
## %bb.12:
	testq	%rax, %rax
	movl	$0, %r14d
	je	LBB0_19
## %bb.13:
	cmpq	$0, 8(%rcx)
	je	LBB0_16
## %bb.14:
	movq	_IKE_TRANSFORM_VALUE_P1_KET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_IkeGetTransformValue
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %eax
	sarl	$3, %eax
	movl	%eax, (%rbx)
	cmpl	$15, %ecx
	jb	LBB0_19
## %bb.15:
	movq	8(%rbx), %rdi
	movl	%eax, %esi
	callq	_IkeCheckKeySize
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_19
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	(%rcx), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_17:
	movl	$1, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_IKE_TRANSFORM_VALUE_P1_CRYPTO,4,2 ## @IKE_TRANSFORM_VALUE_P1_CRYPTO
	.comm	_IKE_TRANSFORM_VALUE_P1_HASH,4,2 ## @IKE_TRANSFORM_VALUE_P1_HASH
	.comm	_IKE_TRANSFORM_VALUE_P1_AUTH_METHOD,4,2 ## @IKE_TRANSFORM_VALUE_P1_AUTH_METHOD
	.comm	_IKE_P1_AUTH_METHOD_PRESHAREDKEY,8,3 ## @IKE_P1_AUTH_METHOD_PRESHAREDKEY
	.comm	_IKE_TRANSFORM_VALUE_P1_DH_GROUP,4,2 ## @IKE_TRANSFORM_VALUE_P1_DH_GROUP
	.comm	_INFINITE,8,3                   ## @INFINITE
	.comm	_IKE_TRANSFORM_VALUE_P1_LIFE_TYPE,4,2 ## @IKE_TRANSFORM_VALUE_P1_LIFE_TYPE
	.comm	_IKE_TRANSFORM_VALUE_P1_LIFE_VALUE,4,2 ## @IKE_TRANSFORM_VALUE_P1_LIFE_VALUE
	.comm	_IKE_TRANSFORM_VALUE_P1_KET_SIZE,4,2 ## @IKE_TRANSFORM_VALUE_P1_KET_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransformPayloadToTransformSettingForIkeSa ; -- Begin function TransformPayloadToTransformSettingForIkeSa
	.p2align	2
_TransformPayloadToTransformSettingForIkeSa: ; @TransformPayloadToTransformSettingForIkeSa
	.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
	mov	x21, x0
	mov	w0, #0
	cbz	x21, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #72
	bl	_Zero
Lloh0:
	adrp	x8, _IKE_TRANSFORM_VALUE_P1_CRYPTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKE_TRANSFORM_VALUE_P1_CRYPTO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_IkeGetTransformValue
	str	x0, [x19, #48]
Lloh3:
	adrp	x8, _IKE_TRANSFORM_VALUE_P1_HASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKE_TRANSFORM_VALUE_P1_HASH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_IkeGetTransformValue
	str	x0, [x19, #40]
Lloh6:
	adrp	x8, _IKE_TRANSFORM_VALUE_P1_AUTH_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IKE_TRANSFORM_VALUE_P1_AUTH_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_IkeGetTransformValue
Lloh9:
	adrp	x8, _IKE_P1_AUTH_METHOD_PRESHAREDKEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IKE_P1_AUTH_METHOD_PRESHAREDKEY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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:
Lloh12:
	adrp	x8, _IKE_TRANSFORM_VALUE_P1_DH_GROUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IKE_TRANSFORM_VALUE_P1_DH_GROUP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_IkeGetTransformValue
Lloh15:
	adrp	x8, _INFINITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	mov	x23, x19
	str	x8, [x23, #64]!
	stur	x0, [x23, #-32]
	mov	x24, x23
	str	x8, [x24, #-8]!
Lloh18:
	adrp	x25, _IKE_TRANSFORM_VALUE_P1_LIFE_TYPE@GOTPAGE
Lloh19:
	ldr	x25, [x25, _IKE_TRANSFORM_VALUE_P1_LIFE_TYPE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_IkeGetTransformValueNum
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x22, #0
Lloh20:
	adrp	x26, _IKE_TRANSFORM_VALUE_P1_LIFE_VALUE@GOTPAGE
Lloh21:
	ldr	x26, [x26, _IKE_TRANSFORM_VALUE_P1_LIFE_VALUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, x24
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	x2, x22
	bl	_IkeGetTransformValue
	str	x0, [x27]
	add	x22, x22, #1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_IkeGetTransformValueNum
	cmp	x22, x0
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x22
	bl	_IkeGetTransformValue
	mov	x27, x23
	cmp	x0, #128
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x0, #129
	b.eq	LBB0_8
	b	LBB0_4
LBB0_12:
	ldr	w0, [x21]
	ldr	x2, [x19, #48]
	mov	w1, #0
	bl	_GetIkeCrypto
	str	x0, [x19, #8]
	ldr	w0, [x21]
	ldr	x2, [x19, #40]
	mov	w1, #0
	bl	_GetIkeHash
	str	x0, [x19, #24]
	ldr	w0, [x21]
	ldr	x2, [x19, #32]
	mov	w1, #0
	bl	_GetIkeDh
	str	x0, [x19, #16]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_4
; %bb.13:
	mov	x8, x0
	mov	w0, #0
	ldr	x10, [x19, #24]
	cbz	x10, LBB0_5
; %bb.14:
	cbz	x8, LBB0_5
; %bb.15:
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_18
; %bb.16:
Lloh22:
	adrp	x8, _IKE_TRANSFORM_VALUE_P1_KET_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IKE_TRANSFORM_VALUE_P1_KET_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_IkeGetTransformValue
	add	w8, w0, #7
	cmp	w0, #0
	csel	w9, w8, w0, lt
	asr	w1, w9, #3
	str	w1, [x19]
	cmp	w8, #15
	b.lo	LBB0_4
; %bb.17:
	ldr	x0, [x19, #8]
	bl	_IkeCheckKeySize
	cbnz	w0, LBB0_19
	b	LBB0_5
LBB0_18:
	ldr	x8, [x9]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_19:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IKE_TRANSFORM_VALUE_P1_CRYPTO,4,2 ; @IKE_TRANSFORM_VALUE_P1_CRYPTO
	.comm	_IKE_TRANSFORM_VALUE_P1_HASH,4,2 ; @IKE_TRANSFORM_VALUE_P1_HASH
	.comm	_IKE_TRANSFORM_VALUE_P1_AUTH_METHOD,4,2 ; @IKE_TRANSFORM_VALUE_P1_AUTH_METHOD
	.comm	_IKE_P1_AUTH_METHOD_PRESHAREDKEY,8,3 ; @IKE_P1_AUTH_METHOD_PRESHAREDKEY
	.comm	_IKE_TRANSFORM_VALUE_P1_DH_GROUP,4,2 ; @IKE_TRANSFORM_VALUE_P1_DH_GROUP
	.comm	_INFINITE,8,3                   ; @INFINITE
	.comm	_IKE_TRANSFORM_VALUE_P1_LIFE_TYPE,4,2 ; @IKE_TRANSFORM_VALUE_P1_LIFE_TYPE
	.comm	_IKE_TRANSFORM_VALUE_P1_LIFE_VALUE,4,2 ; @IKE_TRANSFORM_VALUE_P1_LIFE_VALUE
	.comm	_IKE_TRANSFORM_VALUE_P1_KET_SIZE,4,2 ; @IKE_TRANSFORM_VALUE_P1_KET_SIZE
.subsections_via_symbols
