	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_server_prf               ## -- Begin function tlsv1_server_prf
	.p2align	4, 0x90
_tlsv1_server_prf:                      ## @tlsv1_server_prf
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$65535, %rcx                    ## imm = 0xFFFF
	ja	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_ESTABLISHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_9
## %bb.2:
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$2, %rcx
	testq	%rdx, %rdx
	cmoveq	%rdx, %rcx
	leaq	(%rcx,%rax,2), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rsi
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_os_memcpy
	movslq	(%r15), %rdx
	leaq	(%r14,%rdx,4), %rdi
	movq	24(%rbx), %rsi
	jmp	LBB0_6
LBB0_9:
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_5:
	movq	24(%rbx), %rsi
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_os_memcpy
	movslq	(%r15), %rdx
	leaq	(%r14,%rdx,4), %rdi
	movq	16(%rbx), %rsi
LBB0_6:
	callq	_os_memcpy
	movq	16(%rbp), %r10
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movslq	(%r15), %r15
	leaq	(%r14,%r15,8), %rdi
	movq	%r12, %rsi
	callq	_WPA_PUT_BE16
	leaq	(%r14,%r15,8), %rdi
	addq	$8, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_os_memcpy
	movq	16(%rbp), %r10
LBB0_8:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_TLS_MASTER_SECRET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_tls_prf
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_os_free
	movl	%ebx, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_RANDOM_LEN,4,2             ## @TLS_RANDOM_LEN
	.comm	_ESTABLISHED,8,3                ## @ESTABLISHED
	.comm	_TLS_MASTER_SECRET_LEN,4,2      ## @TLS_MASTER_SECRET_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_server_prf               ; -- Begin function tlsv1_server_prf
	.p2align	2
_tlsv1_server_prf:                      ; @tlsv1_server_prf
	.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
	lsr	x8, x3, #16
	cbnz	x8, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ESTABLISHED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x19, x6
	mov	x20, x5
	mov	x27, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
Lloh3:
	adrp	x28, _TLS_RANDOM_LEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _TLS_RANDOM_LEN@GOTPAGEOFF]
	ldrsw	x8, [x28]
	add	x9, x3, #2
	cmp	x2, #0
	csel	x9, xzr, x9, eq
	add	x26, x9, x8, lsl #1
	mov	x0, x26
	bl	_os_malloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x25, x0
	cbz	w27, LBB0_9
; %bb.4:
	ldr	x1, [x22, #16]
	ldrsw	x2, [x28]
	mov	x0, x25
	bl	_os_memcpy
	ldrsw	x2, [x28]
	add	x0, x25, x2, lsl #2
	ldr	x1, [x22, #24]
	bl	_os_memcpy
	cbz	x24, LBB0_6
LBB0_5:
	ldrsw	x8, [x28]
	add	x27, x25, x8, lsl #3
	mov	x0, x27
	mov	x1, x23
	bl	_WPA_PUT_BE16
	add	x0, x27, #8
	mov	x1, x24
	mov	x2, x23
	bl	_os_memcpy
LBB0_6:
	ldp	w1, w0, [x22, #8]
Lloh5:
	adrp	x8, _TLS_MASTER_SECRET_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLS_MASTER_SECRET_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x21
	mov	x4, x25
	mov	x5, x26
	mov	x6, x20
	mov	x7, x19
	bl	_tls_prf
	mov	x19, x0
	mov	x0, x25
	bl	_os_free
	mov	x0, x19
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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_9:
	ldr	x1, [x22, #24]
	ldrsw	x2, [x28]
	mov	x0, x25
	bl	_os_memcpy
	ldrsw	x2, [x28]
	add	x0, x25, x2, lsl #2
	ldr	x1, [x22, #16]
	bl	_os_memcpy
	cbnz	x24, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_RANDOM_LEN,4,2             ; @TLS_RANDOM_LEN
	.comm	_ESTABLISHED,8,3                ; @ESTABLISHED
	.comm	_TLS_MASTER_SECRET_LEN,4,2      ; @TLS_MASTER_SECRET_LEN
.subsections_via_symbols
