	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_master_secret     ## -- Begin function ssl_generate_master_secret
	.p2align	4, 0x90
_ssl_generate_master_secret:            ## @ssl_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
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %rbx
	movq	_SSL_PSK@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movq	_SSL_kPSK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%rbx, %rax
	cmovneq	%r15, %r13
	leaq	(%r15,%r13), %rdi
	addq	$4, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_s2n
	movq	_SSL_kPSK@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_memset
	jmp	LBB0_6
LBB0_8:
	movq	40(%r14), %r8
	movq	48(%r14), %rax
	movq	(%rax), %rax
	movl	4(%r8), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_2:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
LBB0_6:
	movq	%r13, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %r13
	addq	%rax, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_s2n
	movq	16(%r14), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	16(%r14), %rdi
	movq	%r15, %rsi
	callq	_OPENSSL_clear_free
	movq	$0, 16(%r14)
	movq	40(%r14), %r8
	movq	48(%r14), %rax
	movq	(%rax), %rax
	movl	4(%r8), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	*(%rax)
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_OPENSSL_clear_free
	testl	%r15d, %r15d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	$0, %ebx
	je	LBB0_10
LBB0_7:
	movl	$1, %ebx
LBB0_10:
	testq	%r15, %r15
	je	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_OPENSSL_clear_free
LBB0_14:
	cmpq	$0, (%r14)
	jne	LBB0_16
LBB0_15:
	movq	$0, 24(%r14)
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_OPENSSL_cleanse
	cmpq	$0, (%r14)
	jne	LBB0_16
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_PSK,8,3                    ## @SSL_PSK
	.comm	_SSL_kPSK,8,3                   ## @SSL_kPSK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_master_secret     ; -- Begin function ssl_generate_master_secret
	.p2align	2
_ssl_generate_master_secret:            ; @ssl_generate_master_secret
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x26, [x8]
Lloh0:
	adrp	x8, _SSL_PSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_PSK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x26
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x27, _SSL_kPSK@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SSL_kPSK@GOTPAGEOFF]
	ldr	x25, [x19, #8]
	ldr	x8, [x27]
	tst	x8, x26
	csel	x20, x20, x25, eq
	add	x8, x25, x20
	add	x23, x8, #4
	mov	x0, x23
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_s2n
	ldr	x8, [x27]
	mov	x0, x24
	tst	x8, x26
	b.eq	LBB0_8
; %bb.3:
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	b	LBB0_9
LBB0_4:
	ldp	x4, x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x4, #4]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	blr	x8
	cbz	w0, LBB0_10
LBB0_5:
	mov	w23, #1
	cbnz	x21, LBB0_11
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
LBB0_9:
	add	x26, x24, x20
	mov	x0, x25
	mov	x1, x26
	bl	_s2n
	ldr	x1, [x19, #16]
	mov	x0, x26
	mov	x2, x25
	bl	_memcpy
	ldr	x0, [x19, #16]
	mov	x1, x25
	bl	_OPENSSL_clear_free
	str	xzr, [x19, #16]
	ldp	x4, x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x4, #4]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	blr	x8
	mov	x25, x0
	mov	x0, x24
	mov	x1, x23
	bl	_OPENSSL_clear_free
	cbnz	w25, LBB0_5
LBB0_10:
	mov	w23, #0
	cbz	x21, LBB0_6
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	cbz	w22, LBB0_14
; %bb.12:
	bl	_OPENSSL_clear_free
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
LBB0_13:
	str	xzr, [x19, #24]
	b	LBB0_7
LBB0_14:
	bl	_OPENSSL_cleanse
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_PSK,8,3                    ; @SSL_PSK
	.comm	_SSL_kPSK,8,3                   ; @SSL_kPSK
.subsections_via_symbols
