	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_tls1_prf_ctrl
_pkey_tls1_prf_ctrl:                    ## @pkey_tls1_prf_ctrl
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	(%rdi), %r12
	cmpl	$128, %esi
	je	LBB0_9
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	movl	$-2, %ebx
	cmpl	$130, %esi
	jne	LBB0_15
## %bb.3:
	movq	%r15, 24(%r12)
	jmp	LBB0_14
LBB0_9:
	movl	$1, %ebx
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.10:
	testq	%r15, %r15
	je	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	js	LBB0_15
## %bb.12:
	movq	_TLS1_PRF_MAXBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%r12), %edi
	subl	%edi, %eax
	cmpl	%r14d, %eax
	jl	LBB0_15
## %bb.13:
	addl	4(%r12), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, 8(%r12)
	jmp	LBB0_14
LBB0_4:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	js	LBB0_15
## %bb.5:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	callq	_OPENSSL_clear_free
LBB0_7:
	movl	4(%r12), %edi
	movl	8(%r12), %esi
	callq	_OPENSSL_cleanse
	movl	$0, 8(%r12)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_OPENSSL_memdup
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movl	%r14d, (%r12)
LBB0_14:
	movl	$1, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_PRF_MAXBUF,4,2            ## @TLS1_PRF_MAXBUF
	.no_dead_strip	_pkey_tls1_prf_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_tls1_prf_ctrl
_pkey_tls1_prf_ctrl:                    ; @pkey_tls1_prf_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x2
	ldr	x21, [x0]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_15
; %bb.3:
	str	x20, [x21, #24]
	b	LBB0_14
LBB0_4:
	mov	w0, #1
	cbz	w19, LBB0_17
; %bb.5:
	cbz	x20, LBB0_17
; %bb.6:
	tbnz	w19, #31, LBB0_16
; %bb.7:
Lloh0:
	adrp	x8, _TLS1_PRF_MAXBUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_PRF_MAXBUF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x21, #8]
	sub	w9, w9, w8
	cmp	w9, w19
	b.lt	LBB0_16
; %bb.8:
	ldr	w9, [x21, #4]
	add	w0, w9, w8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x21, #8]
	add	w8, w8, w19
	str	w8, [x21, #8]
	b	LBB0_14
LBB0_9:
	tbnz	w19, #31, LBB0_16
; %bb.10:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x21]
	bl	_OPENSSL_clear_free
LBB0_12:
	ldp	w0, w1, [x21, #4]
	bl	_OPENSSL_cleanse
	str	wzr, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_OPENSSL_memdup
	str	x0, [x21, #16]
	cbz	x0, LBB0_17
; %bb.13:
	str	w19, [x21]
LBB0_14:
	mov	w0, #1
	b	LBB0_17
LBB0_15:
	mov	w0, #-2
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_PRF_MAXBUF,4,2            ; @TLS1_PRF_MAXBUF
	.no_dead_strip	_pkey_tls1_prf_ctrl
.subsections_via_symbols
