	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_setup_key_block           ## -- Begin function ssl3_setup_key_block
	.p2align	4, 0x90
_ssl3_setup_key_block:                  ## @ssl3_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r14d
	cmpl	$0, 16(%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	movl	$0, (%rsp)
	xorl	%r14d, %r14d
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ssl_cipher_get_evp
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	-40(%rbp), %rax
	movq	%rax, 48(%rbx)
	movq	-56(%rbp), %rdi
	movq	%rdi, 40(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, 32(%rbx)
	callq	_EVP_MD_size
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movl	%eax, %r15d
	movq	-40(%rbp), %rdi
	callq	_EVP_CIPHER_key_length
	movl	%eax, %r12d
	addl	%r15d, %r12d
	movq	-40(%rbp), %rdi
	callq	_EVP_CIPHER_iv_length
	movl	%eax, %r15d
	addl	%r12d, %r15d
	addl	%r15d, %r15d
	movq	%rbx, %rdi
	callq	_ssl3_cleanup_key_block
	movl	%r15d, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	%r15d, 16(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_ssl3_generate_key_block
	movl	%eax, %r14d
	movq	_SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_13
## %bb.8:
	movl	$1, 8(%rbx)
	movq	56(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	(%rax), %rax
	movq	_SSL_eNULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	$0, 8(%rbx)
LBB0_11:
	movq	_SSL_RC4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	$0, 8(%rbx)
	jmp	LBB0_13
LBB0_2:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_SETUP_KEY_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_CIPHER_OR_HASH_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_SETUP_KEY_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
LBB0_13:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_SETUP_KEY_BLOCK,4,2 ## @SSL_F_SSL3_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	_SSL_eNULL,8,3                  ## @SSL_eNULL
	.comm	_SSL_RC4,8,3                    ## @SSL_RC4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_setup_key_block           ; -- Begin function ssl3_setup_key_block
	.p2align	2
_ssl3_setup_key_block:                  ; @ssl3_setup_key_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_15
LBB0_2:
	mov	x19, x0
	ldr	x0, [x0, #56]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x5, sp, #8
	mov	x3, #0
	mov	x4, #0
	mov	w6, #0
	bl	_ssl_cipher_get_evp
	cbz	w0, LBB0_11
; %bb.3:
	ldp	x0, x8, [sp, #16]
	stp	x0, x8, [x19, #40]
	ldr	x8, [sp, #8]
	str	x8, [x19, #32]
	bl	_EVP_MD_size
	tbnz	w0, #31, LBB0_14
; %bb.4:
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_EVP_CIPHER_key_length
	add	w20, w0, w20
	ldr	x0, [sp, #24]
	bl	_EVP_CIPHER_iv_length
	add	w8, w20, w0
	lsl	w20, w8, #1
	mov	x0, x19
	bl	_ssl3_cleanup_key_block
	mov	x0, x20
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_12
; %bb.5:
	mov	x1, x0
	str	w20, [x19, #16]
	str	x0, [x19, #24]
	mov	x0, x19
	mov	x2, x20
	bl	_ssl3_generate_key_block
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.7:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SSL_eNULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_eNULL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	str	wzr, [x19, #8]
LBB0_9:
Lloh6:
	adrp	x9, _SSL_RC4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSL_RC4@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.10:
	str	wzr, [x19, #8]
	b	LBB0_15
LBB0_11:
Lloh9:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SSL_F_SSL3_SETUP_KEY_BLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_F_SSL3_SETUP_KEY_BLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _SSL_R_CIPHER_OR_HASH_UNAVAILABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_R_CIPHER_OR_HASH_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SSL_F_SSL3_SETUP_KEY_BLOCK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_F_SSL3_SETUP_KEY_BLOCK@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_SETUP_KEY_BLOCK,4,2 ; @SSL_F_SSL3_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	_SSL_eNULL,8,3                  ; @SSL_eNULL
	.comm	_SSL_RC4,8,3                    ; @SSL_RC4
.subsections_via_symbols
