	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_pms_ecdh
_make_pms_ecdh:                         ## @make_pms_ecdh
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rsi
	leaq	16(%rbx), %rdx
	movq	%rbx, %rax
	jmp	LBB0_3
LBB0_2:
	movq	48(%rbx), %rdi
	movq	(%rdi), %rax
	xorl	%esi, %esi
	callq	*(%rax)
	leaq	8(%rax), %rsi
	movq	%rax, %rdx
	addq	$16, %rdx
LBB0_3:
	movl	(%rax), %r15d
	movq	32(%rbx), %rcx
	movl	(%rcx), %eax
	btl	%r15d, %eax
	jae	LBB0_4
## %bb.5:
	movl	%r14d, -292(%rbp)               ## 4-byte Spill
	movq	(%rsi), %rax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	movq	(%rdx), %r13
	leaq	-280(%rbp), %rsi
	movl	%r15d, %edi
	callq	*8(%rcx)
	movzbl	(%rax), %eax
	movl	$255, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r12d
	shrl	%ecx
	cmpl	%eax, %r12d
	jae	LBB0_6
## %bb.7:
	leaq	40(%rbx), %rdi
	movq	-280(%rbp), %rdx
	leaq	-128(%rbp), %r14
	movq	%r14, %rsi
	callq	_br_hmac_drbg_generate
	andb	%r12b, -128(%rbp)
	movq	-280(%rbp), %rax
	orb	$1, -1(%rax,%r14)
	movq	32(%rbx), %rax
	leaq	-288(%rbp), %rsi
	movl	%r15d, %edi
	callq	*40(%rax)
	cmpq	%r13, -288(%rbp)
	jne	LBB0_4
## %bb.8:
	leaq	-272(%rbp), %r14
	movq	%r14, %rdi
	movq	-304(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movq	32(%rbx), %rax
	movq	-288(%rbp), %rsi
	movq	-280(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	callq	*32(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movq	32(%rbx), %rax
	leaq	-312(%rbp), %rsi
	movl	%r15d, %edi
	callq	*16(%rax)
	leaq	(%rax,%rbp), %rdx
	addq	$-272, %rdx                     ## imm = 0xFEF0
	movq	-312(%rbp), %rcx
	movq	%rbx, %rdi
	movl	-292(%rbp), %esi                ## 4-byte Reload
	callq	_br_ssl_engine_compute_master
	movq	32(%rbx), %rax
	movq	-280(%rbp), %rdx
	leaq	-272(%rbp), %r14
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	*24(%rax)
	movq	24(%rbx), %rdi
	movq	-288(%rbp), %rdx
	movq	%r14, %rsi
	callq	_memcpy
	movl	-288(%rbp), %eax
	jmp	LBB0_10
LBB0_4:
	movq	_BR_ERR_INVALID_ALGORITHM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_ERR_INVALID_ALGORITHM,4,2   ## @BR_ERR_INVALID_ALGORITHM
	.no_dead_strip	_make_pms_ecdh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_pms_ecdh
_make_pms_ecdh:                         ; @make_pms_ecdh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	w1, LBB0_2
; %bb.1:
	add	x8, x19, #8
	add	x9, x19, #16
	mov	x0, x19
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #48]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, #0
	blr	x8
	add	x8, x0, #8
	add	x9, x0, #16
LBB0_3:
	ldr	w21, [x0]
	ldr	x10, [x19, #32]
	ldr	w11, [x10]
	lsr	w11, w11, w21
	tbz	w11, #0, LBB0_9
; %bb.4:
	ldr	x22, [x8]
	ldr	x23, [x9]
	ldr	x8, [x10, #8]
	add	x1, sp, #16
	mov	x0, x21
	blr	x8
	ldrb	w8, [x0]
	mov	w9, #255
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x9
	lsr	w9, w9, #1
	cmp	w24, w8
	b.hs	LBB0_5
; %bb.6:
	add	x0, x19, #40
	ldr	x2, [sp, #16]
	sub	x25, x29, #138
	sub	x1, x29, #138
	bl	_br_hmac_drbg_generate
	ldurb	w8, [x29, #-138]
	and	w8, w8, w24
	sturb	w8, [x29, #-138]
	ldr	x8, [sp, #16]
	add	x8, x8, x25
	ldurb	w9, [x8, #-1]
	orr	w9, w9, #0x1
	sturb	w9, [x8, #-1]
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #40]
	add	x1, sp, #24
	mov	x0, x21
	blr	x8
	ldr	x8, [sp, #24]
	cmp	x8, x23
	b.ne	LBB0_9
; %bb.7:
	add	x24, sp, #33
	add	x0, sp, #33
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #32]
	ldp	x3, x1, [sp, #16]
	add	x0, sp, #33
	sub	x2, x29, #138
	mov	x4, x21
	blr	x8
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #16]
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	add	x2, x24, x0
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_br_ssl_engine_compute_master
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #24]
	ldr	x2, [sp, #16]
	add	x0, sp, #33
	sub	x1, x29, #138
	mov	x3, x21
	blr	x8
	ldr	x0, [x19, #24]
	ldr	x2, [sp, #24]
	add	x1, sp, #33
	bl	_memcpy
	ldr	w0, [sp, #24]
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _BR_ERR_INVALID_ALGORITHM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BR_ERR_INVALID_ALGORITHM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_ERR_INVALID_ALGORITHM,4,2   ; @BR_ERR_INVALID_ALGORITHM
	.no_dead_strip	_make_pms_ecdh
.subsections_via_symbols
