	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecp_mul_comb
_ecp_mul_comb:                          ## @ecp_mul_comb
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_COMB_MAX_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	leaq	-52(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_get_bit
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	cmpl	$384, %ebx                      ## imm = 0x180
	setge	%al
	orb	$4, %al
	movq	_MBEDTLS_ECP_WINDOW_SIZE@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movzbl	%al, %eax
	cmpb	%cl, %al
	cmovbl	%eax, %ecx
	movzbl	%cl, %eax
	cmpl	%eax, %ebx
	movl	$2, %eax
	cmovgl	%ecx, %eax
	movzbl	%al, %r12d
	leal	-1(%r12), %ecx
	movl	$1, %eax
	movl	%ecx, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movzbl	%al, %edi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	$8, %esi
	callq	_mbedtls_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rcx
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	addl	%r14d, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%r12d
	movslq	%eax, %r8
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_ecp_precompute_comb
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_get_bit
	xorl	%r14d, %r14d
	cmpl	$1, %eax
	setne	%r14b
	leaq	-52(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_copy
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movl	%r14d, %edx
	callq	_mbedtls_mpi_safe_cond_assign
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	leaq	-52(%rbp), %rcx
	callq	_ecp_comb_fixed
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movq	%r15, %r9
	movq	%rsi, %r15
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_ecp_mul_comb_core
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ecp_safe_invert_jac
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ecp_normalize_jac
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpl	$7, -60(%rbp)                   ## 4-byte Folded Reload
	ja	LBB0_7
## %bb.5:
	movzbl	-64(%rbp), %eax                 ## 1-byte Folded Reload
	cmpl	$2, %eax
	movl	$1, %r14d
	cmovael	%eax, %r14d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_mbedtls_ecp_point_free
	addq	$8, %rbx
	decq	%r14
	jne	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_mbedtls_free
                                        ## implicit-def: $ebx
	jmp	LBB0_8
LBB0_1:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_MBEDTLS_ERR_ECP_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	leaq	-52(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_free
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_mbedtls_ecp_point_free
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMB_MAX_D,4,2                 ## @COMB_MAX_D
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ECP_WINDOW_SIZE,1,0    ## @MBEDTLS_ECP_WINDOW_SIZE
	.comm	_MBEDTLS_ERR_ECP_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_ECP_ALLOC_FAILED
	.no_dead_strip	_ecp_mul_comb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecp_mul_comb
_ecp_mul_comb:                          ; @ecp_mul_comb
	.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
	sub	sp, sp, #48
	mov	x21, x5
	mov	x22, x4
	mov	x28, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _COMB_MAX_D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMB_MAX_D@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	sub	x0, x29, #92
	bl	_mbedtls_mpi_init
	sub	x0, x29, #96
	bl	_mbedtls_mpi_init
	add	x27, x20, #8
	mov	x0, x27
	mov	w1, #0
	bl	_mbedtls_mpi_get_bit
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.1:
	stp	x22, x21, [x29, #-120]          ; 16-byte Folded Spill
	stur	x19, [x29, #-104]               ; 8-byte Folded Spill
	ldr	w21, [x20]
	cmp	w21, #383
	mov	w8, #4
	cinc	w8, w8, gt
Lloh8:
	adrp	x9, _MBEDTLS_ECP_WINDOW_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MBEDTLS_ECP_WINDOW_SIZE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lo
	mov	w9, #2
	cmp	w21, w8
	csel	w22, w8, w9, gt
	sub	w19, w22, #1
	mov	w8, #1
	lsl	w8, w8, w19
	stur	w8, [x29, #-124]                ; 4-byte Folded Spill
	and	w26, w8, #0xff
	mov	x0, x26
	mov	w1, #8
	bl	_mbedtls_calloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x23, x0
	add	w8, w19, w21
	sdiv	w8, w8, w22
	sxtw	x21, w8
	and	w22, w22, #0xff
	mov	x0, x20
	mov	x1, x23
	mov	x2, x28
	mov	x3, x22
	mov	x4, x21
	bl	_ecp_precompute_comb
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x25
	mov	w1, #0
	bl	_mbedtls_mpi_get_bit
	cmp	w0, #1
	cset	w28, ne
	sub	x0, x29, #92
	mov	x1, x25
	bl	_mbedtls_mpi_copy
	bl	_MBEDTLS_MPI_CHK
	sub	x0, x29, #96
	mov	x1, x27
	mov	x2, x25
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	sub	x0, x29, #92
	sub	x1, x29, #96
	mov	x2, x28
	bl	_mbedtls_mpi_safe_cond_assign
	bl	_MBEDTLS_MPI_CHK
	sub	x3, x29, #92
	mov	x0, x24
	mov	x1, x21
	mov	x2, x22
	bl	_ecp_comb_fixed
	mov	x0, x20
	ldp	x7, x22, [x29, #-112]           ; 16-byte Folded Reload
	mov	x1, x22
	mov	x2, x23
	mov	x3, x26
	mov	x4, x24
	mov	x5, x21
	ldur	x6, [x29, #-120]                ; 8-byte Folded Reload
	bl	_ecp_mul_comb_core
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x20
	mov	x1, x22
	mov	x2, x28
	bl	_ecp_safe_invert_jac
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x20
	mov	x1, x22
	bl	_ecp_normalize_jac
	bl	_MBEDTLS_MPI_CHK
	cmp	w19, #7
	b.hi	LBB0_5
; %bb.3:
	ldur	w8, [x29, #-124]                ; 4-byte Folded Reload
	and	w8, w8, #0xff
	cmp	w8, #1
	csinc	w19, w8, wzr, hi
	mov	x20, x23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mbedtls_ecp_point_free
	add	x20, x20, #8
	subs	x19, x19, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x23
	bl	_mbedtls_free
                                        ; implicit-def: $w20
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _MBEDTLS_ERR_ECP_ALLOC_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_ALLOC_FAILED@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	ldur	x22, [x29, #-104]               ; 8-byte Folded Reload
LBB0_8:
	sub	x0, x29, #92
	bl	_mbedtls_mpi_free
	sub	x0, x29, #96
	bl	_mbedtls_mpi_free
	cbz	w20, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_mbedtls_ecp_point_free
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	sub	sp, x29, #80
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_COMB_MAX_D,4,2                 ; @COMB_MAX_D
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ECP_WINDOW_SIZE,1,0    ; @MBEDTLS_ECP_WINDOW_SIZE
	.comm	_MBEDTLS_ERR_ECP_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_ECP_ALLOC_FAILED
	.no_dead_strip	_ecp_mul_comb
.subsections_via_symbols
