	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_construct_key_exchange_tbs     ## -- Begin function construct_key_exchange_tbs
	.p2align	4, 0x90
_construct_key_exchange_tbs:            ## @construct_key_exchange_tbs
	.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
	movq	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_SSL3_RANDOM_SIZE@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	leaq	(%rcx,%rax,2), %rbx
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%r13), %rsi
	movslq	(%r12), %rdx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	(%r12), %rdx
	leaq	(%r14,%rdx), %rdi
	movq	8(%r13), %rsi
	callq	_memcpy
	movslq	(%r12), %rax
	leaq	(%r14,%rax,2), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	jmp	LBB0_3
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_RANDOM_SIZE,4,2           ## @SSL3_RANDOM_SIZE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS,4,2 ## @SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_construct_key_exchange_tbs     ; -- Begin function construct_key_exchange_tbs
	.p2align	2
_construct_key_exchange_tbs:            ; @construct_key_exchange_tbs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _SSL3_RANDOM_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SSL3_RANDOM_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x25]
	add	x19, x3, x8, lsl #1
	mov	x0, x19
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
	ldr	x1, [x23]
	ldrsw	x2, [x25]
	bl	_memcpy
	ldrsw	x2, [x25]
	add	x0, x24, x2
	ldr	x1, [x23, #8]
	bl	_memcpy
	ldrsw	x8, [x25]
	add	x0, x24, x8, lsl #1
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	str	x24, [x20]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x23
	bl	_SSLfatal
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_RANDOM_SIZE,4,2           ; @SSL3_RANDOM_SIZE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS,4,2 ; @SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
