	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_session_id        ## -- Begin function ssl_generate_session_id
	.p2align	4, 0x90
_ssl_generate_session_id:               ## @ssl_generate_session_id
	.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
	movq	%rdi, %r15
	movl	(%rdi), %eax
	andl	$-8, %eax
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.1:
	movq	%rsi, %r14
	movq	_SSL3_SSL_SESSION_ID_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	cmpq	$0, 24(%r15)
	je	LBB0_3
## %bb.2:
	movl	$0, (%r14)
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_16:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_SESSION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_UNSUPPORTED_SSL_VERSION@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	4(%r15), %edi
	callq	_CRYPTO_THREAD_read_lock
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_CRYPTO_THREAD_read_lock
	movq	8(%r15), %rax
	movq	16(%r15), %r12
	testq	%r12, %r12
	jne	LBB0_6
## %bb.4:
	movq	8(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_6
## %bb.5:
	movq	_def_generate_session_id@GOTPCREL(%rip), %r12
LBB0_6:
	movl	(%rax), %edi
	callq	_CRYPTO_THREAD_unlock
	movl	4(%r15), %edi
	callq	_CRYPTO_THREAD_unlock
	movl	(%r14), %edx
	movl	4(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, -36(%rbp)
	movl	4(%r14), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	-36(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:
	cmpl	(%r14), %edx
	jbe	LBB0_11
LBB0_10:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_SESSION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_SESSION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_SSL_SESSION_ID_CALLBACK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	jmp	LBB0_15
LBB0_11:
	movl	%edx, (%r14)
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_SSL_has_matching_session_id
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_SESSION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_SSL_SESSION_ID_CONFLICT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movl	$1, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_SSL_SESSION_ID_LENGTH,4,2 ## @SSL3_SSL_SESSION_ID_LENGTH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_GENERATE_SESSION_ID,4,2 ## @SSL_F_SSL_GENERATE_SESSION_ID
	.comm	_SSL_R_UNSUPPORTED_SSL_VERSION,4,2 ## @SSL_R_UNSUPPORTED_SSL_VERSION
	.comm	_SSL_R_SSL_SESSION_ID_CALLBACK_FAILED,4,2 ## @SSL_R_SSL_SESSION_ID_CALLBACK_FAILED
	.comm	_SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH,4,2 ## @SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH
	.comm	_SSL_R_SSL_SESSION_ID_CONFLICT,4,2 ## @SSL_R_SSL_SESSION_ID_CONFLICT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_session_id        ; -- Begin function ssl_generate_session_id
	.p2align	2
_ssl_generate_session_id:               ; @ssl_generate_session_id
	.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
	mov	x19, x0
	ldr	w8, [x0]
	and	w8, w8, #0xfffffff8
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _SSL3_SSL_SESSION_ID_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_SSL_SESSION_ID_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.2:
	str	wzr, [x20]
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _SSL_R_UNSUPPORTED_SSL_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_R_UNSUPPORTED_SSL_VERSION@GOTPAGEOFF]
LBB0_4:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_CRYPTO_THREAD_read_lock
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_CRYPTO_THREAD_read_lock
	ldp	x8, x21, [x19, #8]
	cbnz	x21, LBB0_8
; %bb.7:
	ldr	x9, [x8, #8]
Lloh11:
	adrp	x10, _def_generate_session_id@GOTPAGE
Lloh12:
	ldr	x10, [x10, _def_generate_session_id@GOTPAGEOFF]
	cmp	x9, #0
	csel	x21, x10, x9, eq
LBB0_8:
	ldr	w0, [x8]
	bl	_CRYPTO_THREAD_unlock
	ldr	w0, [x19, #4]
	bl	_CRYPTO_THREAD_unlock
	ldp	w2, w0, [x20]
	mov	w1, #0
	bl	_memset
	ldp	w8, w1, [x20]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	blr	x21
	cbz	w0, LBB0_12
; %bb.9:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_11
; %bb.10:
	ldr	w8, [x20]
	cmp	w2, w8
	b.ls	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
Lloh21:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _SSL_R_SSL_SESSION_ID_CALLBACK_FAILED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_R_SSL_SESSION_ID_CALLBACK_FAILED@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	str	w2, [x20]
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_SSL_has_matching_session_id
	cbz	x0, LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_SESSION_ID@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _SSL_R_SSL_SESSION_ID_CONFLICT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SSL_R_SSL_SESSION_ID_CONFLICT@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_SSL_SESSION_ID_LENGTH,4,2 ; @SSL3_SSL_SESSION_ID_LENGTH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_GENERATE_SESSION_ID,4,2 ; @SSL_F_SSL_GENERATE_SESSION_ID
	.comm	_SSL_R_UNSUPPORTED_SSL_VERSION,4,2 ; @SSL_R_UNSUPPORTED_SSL_VERSION
	.comm	_SSL_R_SSL_SESSION_ID_CALLBACK_FAILED,4,2 ; @SSL_R_SSL_SESSION_ID_CALLBACK_FAILED
	.comm	_SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH,4,2 ; @SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH
	.comm	_SSL_R_SSL_SESSION_ID_CONFLICT,4,2 ; @SSL_R_SSL_SESSION_ID_CONFLICT
.subsections_via_symbols
