	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_process_crypt_info
_sec_process_crypt_info:                ## @sec_process_crypt_info
	.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	%edi, %r15d
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -64(%rbp)
	movq	_SEC_MAX_MODULUS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_SEC_EXPONENT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leal	(,%rbx,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	leal	(,%r12,4), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	leaq	-52(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	%r15d, %edi
	movq	%r14, %rcx
	movq	%r13, %r8
	callq	_sec_parse_crypt_info
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DEBUG
	movq	_g_client_random@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_generate_random
	movq	_g_sec_crypted_random@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_SEC_RANDOM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_server_public_key_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	movq	%r13, %r9
	callq	_sec_rsa_encrypt
	movl	(%rbx), %edi
	movq	-64(%rbp), %rsi
	movl	-52(%rbp), %edx
	callq	_sec_generate_keys
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DEBUG
LBB0_3:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_MAX_MODULUS_SIZE,4,2       ## @SEC_MAX_MODULUS_SIZE
	.comm	_SEC_EXPONENT_SIZE,4,2          ## @SEC_EXPONENT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse crypt info\n"

L_.str.1:                               ## @.str.1
	.asciz	"Generating client random\n"

	.comm	_g_client_random,4,2            ## @g_client_random
	.comm	_g_sec_crypted_random,4,2       ## @g_sec_crypted_random
	.comm	_SEC_RANDOM_SIZE,4,2            ## @SEC_RANDOM_SIZE
	.comm	_g_server_public_key_len,4,2    ## @g_server_public_key_len
	.no_dead_strip	_sec_process_crypt_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_process_crypt_info
_sec_process_crypt_info:                ; @sec_process_crypt_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x21, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [x29, #-64]
Lloh3:
	adrp	x8, _SEC_MAX_MODULUS_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEC_MAX_MODULUS_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #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	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _SEC_EXPONENT_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEC_EXPONENT_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	lsl	x8, x23, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	lsl	w2, w12, #2
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	lsl	w2, w23, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	sub	x1, x29, #68
	sub	x2, x29, #64
	mov	x0, x21
	mov	x3, x19
	mov	x4, x20
	bl	_sec_parse_crypt_info
	cbz	w0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUG
Lloh15:
	adrp	x21, _g_client_random@GOTPAGE
Lloh16:
	ldr	x21, [x21, _g_client_random@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_generate_random
Lloh17:
	adrp	x8, _g_sec_crypted_random@GOTPAGE
Lloh18:
	ldr	x8, [x8, _g_sec_crypted_random@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh20:
	adrp	x8, _SEC_RANDOM_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SEC_RANDOM_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _g_server_public_key_len@GOTPAGE
Lloh24:
	ldr	x8, [x8, _g_server_public_key_len@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x4, x19
	mov	x5, x20
	bl	_sec_rsa_encrypt
	ldr	w0, [x21]
	ldur	x1, [x29, #-64]
	ldur	w2, [x29, #-68]
	bl	_sec_generate_keys
	b	LBB0_3
LBB0_2:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG
LBB0_3:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_MAX_MODULUS_SIZE,4,2       ; @SEC_MAX_MODULUS_SIZE
	.comm	_SEC_EXPONENT_SIZE,4,2          ; @SEC_EXPONENT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse crypt info\n"

l_.str.1:                               ; @.str.1
	.asciz	"Generating client random\n"

	.comm	_g_client_random,4,2            ; @g_client_random
	.comm	_g_sec_crypted_random,4,2       ; @g_sec_crypted_random
	.comm	_SEC_RANDOM_SIZE,4,2            ; @SEC_RANDOM_SIZE
	.comm	_g_server_public_key_len,4,2    ; @g_server_public_key_len
	.no_dead_strip	_sec_process_crypt_info
.subsections_via_symbols
