	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_generate_master_secret    ## -- Begin function tls1_generate_master_secret
	.p2align	4, 0x90
_tls1_generate_master_secret:           ## @tls1_generate_master_secret
	.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
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r11
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_SSL_SESS_FLAG_EXTMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%r11, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	%r15d, %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ssl3_digest_cached_records
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_ssl_handshake_hash
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_TLS_MD_EXTENDED_MASTER_SECRET_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r8
	movq	_SSL3_MASTER_SECRET_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	$80, %rsp
	movq	%rax, 64(%rsp)
	movq	%r13, 56(%rsp)
	movq	%r12, 48(%rsp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	$1, 72(%rsp)
	movl	$0, 32(%rsp)
	movq	$0, 24(%rsp)
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_tls1_PRF
	addq	$80, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_OPENSSL_cleanse
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_4:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	_TLS_MD_MASTER_SECRET_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_MD_MASTER_SECRET_CONST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movq	_SSL3_RANDOM_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	(%rax), %rcx
	movq	_SSL3_MASTER_SECRET_SIZE@GOTPCREL(%rip), %r10
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$1
	pushq	(%r10)
	pushq	%r13
	pushq	%r12
	pushq	%r11
	pushq	$0
	pushq	$0
	pushq	%r8
	pushq	8(%rax)
	pushq	$0
	callq	_tls1_PRF
	addq	$80, %rsp
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	movq	_SSL3_MASTER_SECRET_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	$1, %r14d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_SESS_FLAG_EXTMS,4,2        ## @SSL_SESS_FLAG_EXTMS
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_TLS_MD_EXTENDED_MASTER_SECRET_CONST,4,2 ## @TLS_MD_EXTENDED_MASTER_SECRET_CONST
	.comm	_TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE,4,2 ## @TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE
	.comm	_SSL3_MASTER_SECRET_SIZE,8,3    ## @SSL3_MASTER_SECRET_SIZE
	.comm	_TLS_MD_MASTER_SECRET_CONST,4,2 ## @TLS_MD_MASTER_SECRET_CONST
	.comm	_TLS_MD_MASTER_SECRET_CONST_SIZE,4,2 ## @TLS_MD_MASTER_SECRET_CONST_SIZE
	.comm	_SSL3_RANDOM_SIZE,8,3           ## @SSL3_RANDOM_SIZE
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_generate_master_secret    ; -- Begin function tls1_generate_master_secret
	.p2align	2
_tls1_generate_master_secret:           ; @tls1_generate_master_secret
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSL_SESS_FLAG_EXTMS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_SESS_FLAG_EXTMS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x26, sp
Lloh6:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w25, w8, #1
	mov	x9, x25
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x0, x20
	mov	w1, #1
	bl	_ssl3_digest_cached_records
	cbz	w0, LBB0_5
; %bb.2:
	sub	x3, x29, #80
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_ssl_handshake_hash
	cbz	w0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _TLS_MD_EXTENDED_MASTER_SECRET_CONST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TLS_MD_EXTENDED_MASTER_SECRET_CONST@GOTPAGEOFF]
Lloh13:
	adrp	x9, _TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w2, [x9]
	ldur	x4, [x29, #-80]
Lloh17:
	adrp	x8, _SSL3_MASTER_SECRET_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL3_MASTER_SECRET_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	stp	xzr, xzr, [sp, #-64]!
	mov	w9, #1
	str	w9, [sp, #56]
	stp	x23, x8, [sp, #40]
	stp	x21, x22, [sp, #24]
	str	wzr, [sp, #16]
	mov	x0, x20
	mov	x3, x24
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_tls1_PRF
	add	sp, sp, #64
	cbz	w0, LBB0_5
; %bb.4:
	ldur	x1, [x29, #-80]
	mov	x0, x24
	bl	_OPENSSL_cleanse
	mov	sp, x26
	b	LBB0_7
LBB0_5:
	mov	sp, x26
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _TLS_MD_MASTER_SECRET_CONST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TLS_MD_MASTER_SECRET_CONST@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _TLS_MD_MASTER_SECRET_CONST_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TLS_MD_MASTER_SECRET_CONST_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	x8, [x20, #8]
Lloh26:
	adrp	x9, _SSL3_RANDOM_SIZE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SSL3_RANDOM_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	x4, [x9]
	ldp	x3, x7, [x8]
Lloh29:
	adrp	x8, _SSL3_MASTER_SECRET_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL3_MASTER_SECRET_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	sub	sp, sp, #64
	mov	w9, #1
	str	w9, [sp, #56]
	stp	x23, x8, [sp, #40]
	stp	x21, x22, [sp, #24]
	str	wzr, [sp, #16]
	stp	x4, xzr, [sp]
	mov	x0, x20
	mov	x5, #0
	mov	w6, #0
	bl	_tls1_PRF
	add	sp, sp, #64
	cbz	w0, LBB0_8
LBB0_7:
Lloh32:
	adrp	x8, _SSL3_MASTER_SECRET_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL3_MASTER_SECRET_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_SESS_FLAG_EXTMS,4,2        ; @SSL_SESS_FLAG_EXTMS
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_TLS_MD_EXTENDED_MASTER_SECRET_CONST,4,2 ; @TLS_MD_EXTENDED_MASTER_SECRET_CONST
	.comm	_TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE,4,2 ; @TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE
	.comm	_SSL3_MASTER_SECRET_SIZE,8,3    ; @SSL3_MASTER_SECRET_SIZE
	.comm	_TLS_MD_MASTER_SECRET_CONST,4,2 ; @TLS_MD_MASTER_SECRET_CONST
	.comm	_TLS_MD_MASTER_SECRET_CONST_SIZE,4,2 ; @TLS_MD_MASTER_SECRET_CONST_SIZE
	.comm	_SSL3_RANDOM_SIZE,8,3           ; @SSL3_RANDOM_SIZE
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
