	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_setup_key_block           ## -- Begin function tls1_setup_key_block
	.p2align	4, 0x90
_tls1_setup_key_block:                  ## @tls1_setup_key_block
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NID_undef@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	$0, -48(%rbp)
	movq	8(%rdi), %rax
	movl	$1, %r14d
	cmpq	$0, 24(%rax)
	jne	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movl	32(%r15), %eax
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-72(%rbp), %r9
	callq	_ssl_cipher_get_evp
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	8(%r15), %rax
	movq	%rdi, 64(%rax)
	movq	-64(%rbp), %rcx
	movq	%rcx, 56(%rax)
	movl	-36(%rbp), %ecx
	movl	%ecx, 32(%rax)
	movq	-48(%rbp), %rcx
	movq	%rcx, 40(%rax)
	callq	_EVP_CIPHER_key_length
	movq	%rax, %r12
	addq	-48(%rbp), %r12
	movq	-56(%rbp), %rdi
	callq	_EVP_CIPHER_iv_length
	movq	%rax, %rbx
	addq	%r12, %rbx
	addq	%rbx, %rbx
	movq	%r15, %rdi
	callq	_ssl3_cleanup_key_block
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	8(%r15), %rcx
	movq	%rbx, 24(%rcx)
	movq	%rax, 48(%rcx)
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_tls1_generate_key_block
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movq	_SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_15
## %bb.5:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_15
## %bb.6:
	movq	8(%r15), %rax
	movl	$1, 16(%rax)
	movq	16(%r15), %rcx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.7:
	movq	(%rcx), %rcx
	movq	_SSL_eNULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movl	$0, 16(%rax)
LBB0_9:
	movq	_SSL_RC4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.10:
	movl	$0, 16(%rax)
	jmp	LBB0_15
LBB0_11:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS1_SETUP_KEY_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_CIPHER_OR_HASH_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS1_SETUP_KEY_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS1_SETUP_KEY_BLOCK,4,2 ## @SSL_F_TLS1_SETUP_KEY_BLOCK
	.comm	_SSL_R_CIPHER_OR_HASH_UNAVAILABLE,4,2 ## @SSL_R_CIPHER_OR_HASH_UNAVAILABLE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS,4,2 ## @SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
	.comm	_TLS1_VERSION,8,3               ## @TLS1_VERSION
	.comm	_SSL_eNULL,8,3                  ## @SSL_eNULL
	.comm	_SSL_RC4,8,3                    ## @SSL_RC4
	.comm	_SSL3_RANDOM_SIZE,4,2           ## @SSL3_RANDOM_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_setup_key_block           ; -- Begin function tls1_setup_key_block
	.p2align	2
_tls1_setup_key_block:                  ; @tls1_setup_key_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _NID_undef@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_15
LBB0_2:
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	w6, [x19, #32]
	sub	x1, x29, #24
	add	x2, sp, #32
	add	x3, sp, #20
	add	x4, sp, #8
	add	x5, sp, #24
	bl	_ssl_cipher_get_evp
	cbz	w0, LBB0_12
; %bb.3:
	ldur	x0, [x29, #-24]
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #32]
	stp	x9, x0, [x8, #56]
	ldr	w9, [sp, #20]
	str	w9, [x8, #32]
	ldr	x9, [sp, #8]
	str	x9, [x8, #40]
	bl	_EVP_CIPHER_key_length
	ldr	x8, [sp, #8]
	add	x20, x8, x0
	ldur	x0, [x29, #-24]
	bl	_EVP_CIPHER_iv_length
	add	x8, x20, x0
	lsl	x20, x8, #1
	mov	x0, x19
	bl	_ssl3_cleanup_key_block
	mov	x0, x20
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_13
; %bb.4:
	mov	x1, x0
	ldr	x8, [x19, #8]
	str	x20, [x8, #24]
	str	x0, [x8, #48]
	mov	x0, x19
	mov	x2, x20
	bl	_tls1_generate_key_block
	cbz	w0, LBB0_15
; %bb.5:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TLS1_VERSION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TLS1_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w0, #1
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.7:
	ldr	x8, [x19, #8]
	str	w0, [x8, #16]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_15
; %bb.8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _SSL_eNULL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SSL_eNULL@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
	str	wzr, [x8, #16]
LBB0_10:
Lloh12:
	adrp	x10, _SSL_RC4@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SSL_RC4@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_1
; %bb.11:
	str	wzr, [x8, #16]
	b	LBB0_1
LBB0_12:
Lloh15:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SSL_F_TLS1_SETUP_KEY_BLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_F_TLS1_SETUP_KEY_BLOCK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _SSL_R_CIPHER_OR_HASH_UNAVAILABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_R_CIPHER_OR_HASH_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _SSL_F_TLS1_SETUP_KEY_BLOCK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSL_F_TLS1_SETUP_KEY_BLOCK@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS1_SETUP_KEY_BLOCK,4,2 ; @SSL_F_TLS1_SETUP_KEY_BLOCK
	.comm	_SSL_R_CIPHER_OR_HASH_UNAVAILABLE,4,2 ; @SSL_R_CIPHER_OR_HASH_UNAVAILABLE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS,4,2 ; @SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
	.comm	_TLS1_VERSION,8,3               ; @TLS1_VERSION
	.comm	_SSL_eNULL,8,3                  ; @SSL_eNULL
	.comm	_SSL_RC4,8,3                    ; @SSL_RC4
	.comm	_SSL3_RANDOM_SIZE,4,2           ; @SSL3_RANDOM_SIZE
.subsections_via_symbols
