	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_ecdhe_part1
_do_ecdhe_part1:                        ## @do_ecdhe_part1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	64(%rdi), %rax
	movl	(%rax), %ecx
	btl	%esi, %ecx
	jae	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, 24(%rdi)
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edi
	callq	*8(%rax)
	movzbl	(%rax), %eax
	movl	$255, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	shrl	%ecx
	cmpl	%eax, %ebx
	jae	LBB0_3
## %bb.4:
	leaq	72(%r15), %rdi
	movq	(%r15), %rsi
	movq	-32(%rbp), %rdx
	callq	_br_hmac_drbg_generate
	movq	(%r15), %rsi
	andl	%ebx, (%rsi)
	movq	-32(%rbp), %rdx
	orl	$1, -4(%rsi,%rdx,4)
	movq	%rdx, 8(%r15)
	movq	64(%r15), %rax
	movl	48(%r15), %edi
	movl	%r14d, %ecx
	callq	*16(%rax)
	movq	%rax, 32(%r15)
	movq	40(%r15), %rdi
	movl	56(%r15), %esi
	movl	$32, %edx
	callq	_memcpy
	movq	40(%r15), %rdi
	subq	$-128, %rdi
	movl	52(%r15), %esi
	movl	$32, %edx
	callq	_memcpy
	movq	40(%r15), %rdi
	movq	$3, 256(%rdi)
	movl	%r14d, 264(%rdi)
	movl	32(%r15), %edx
	movl	%edx, 268(%rdi)
	addq	$272, %rdi                      ## imm = 0x110
	movl	48(%r15), %esi
	callq	_memcpy
	movq	32(%r15), %rax
	addq	$68, %rax
	movl	16(%r15), %r14d
	cmpl	$65280, %r14d                   ## imm = 0xFF00
	jb	LBB0_6
## %bb.5:
	movq	40(%r15), %rcx
	movzbl	%r14b, %edx
	movq	%r15, %rdi
	movq	%rcx, %rsi
	movq	%rax, %r8
	callq	_hash_data
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	40(%r15), %rdx
	movq	80(%r15), %rdi
	movq	(%rdi), %rbx
	movl	%r14d, %esi
	movq	%rax, %rcx
	movl	$8, %r8d
	callq	*(%rbx)
	movq	_BR_ERR_INVALID_ALGORITHM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testq	%rax, %rax
	cmovel	%edx, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_BR_ERR_INVALID_ALGORITHM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_ERR_INVALID_ALGORITHM,4,2   ## @BR_ERR_INVALID_ALGORITHM
	.no_dead_strip	_do_ecdhe_part1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function do_ecdhe_part1
lCPI0_0:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_do_ecdhe_part1:                        ; @do_ecdhe_part1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #64]
	ldr	w9, [x8]
	lsr	w9, w9, w1
	tbz	w9, #0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	w1, [x0, #24]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	ldrb	w8, [x0]
	mov	w9, #255
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x9
	lsr	w9, w9, #1
	cmp	w21, w8
	b.hs	LBB0_2
; %bb.3:
	add	x0, x19, #72
	ldr	x1, [x19]
	ldr	x2, [sp, #8]
	bl	_br_hmac_drbg_generate
	ldr	x1, [x19]
	ldr	w8, [x1]
	and	w8, w8, w21
	str	w8, [x1]
	ldr	x2, [sp, #8]
	add	x8, x1, x2, lsl #2
	ldur	w9, [x8, #-4]
	orr	w9, w9, #0x1
	stur	w9, [x8, #-4]
	str	x2, [x19, #8]
	ldr	x8, [x19, #64]
	ldr	x8, [x8, #16]
	ldr	w0, [x19, #48]
	mov	x3, x20
	blr	x8
	str	x0, [x19, #32]
	ldr	x0, [x19, #40]
	ldr	w1, [x19, #56]
	mov	w2, #32
	bl	_memcpy
	ldr	x8, [x19, #40]
	add	x0, x8, #128
	ldr	w1, [x19, #52]
	mov	w2, #32
	bl	_memcpy
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #256]
	str	w20, [x8, #264]
	ldr	w2, [x19, #32]
	str	w2, [x8, #268]
	add	x0, x8, #272
	ldr	w1, [x19, #48]
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x4, x8, #68
	ldr	w20, [x19, #16]
	lsr	w8, w20, #8
	cmp	w8, #255
	b.lo	LBB0_5
; %bb.4:
	ldr	x1, [x19, #40]
	and	w2, w20, #0xff
	mov	x0, x19
	mov	x3, x1
	bl	_hash_data
	mov	x4, x0
	cbz	x0, LBB0_6
LBB0_5:
	ldr	x0, [x19, #80]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x19, #40]
	mov	x1, x20
	mov	x3, x4
	mov	w4, #8
	blr	x8
Lloh2:
	adrp	x8, _BR_ERR_INVALID_ALGORITHM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BR_ERR_INVALID_ALGORITHM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, w0, w8, ne
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _BR_ERR_INVALID_ALGORITHM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BR_ERR_INVALID_ALGORITHM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_ERR_INVALID_ALGORITHM,4,2   ; @BR_ERR_INVALID_ALGORITHM
	.no_dead_strip	_do_ecdhe_part1
.subsections_via_symbols
