	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_ec_combine                ## -- Begin function test_ec_combine
	.p2align	4, 0x90
_test_ec_combine:                       ## @test_ec_combine
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_SECP256K1_SCALAR_CONST
	addq	$16, %rsp
	movl	%eax, -132(%rbp)
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-136(%rbp), %r12
	movq	%r12, %rdi
	callq	_random_scalar_order_test
	leaq	-132(%rbp), %r13
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_secp256k1_scalar_add
	movq	_ctx@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	leaq	-144(%rbp), %r15
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_secp256k1_ecmult_gen
	leaq	-140(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_ge_set_gej
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_pubkey_save
	movq	%r14, -128(%rbp,%rbx,8)
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_secp256k1_ecmult_gen
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_ge_set_gej
	leaq	-152(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_pubkey_save
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rbx
	leaq	-148(%rbp), %r12
	movq	%r12, %rsi
	leaq	-128(%rbp), %rdx
	movl	%ebx, %ecx
	callq	_secp256k1_ec_pubkey_combine
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_CHECK
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	addq	$4, %r14
	cmpq	$6, %rbx
	jne	LBB0_1
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,8,3                        ## @ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_ec_combine                ; -- Begin function test_ec_combine
	.p2align	2
_test_ec_combine:                       ; @test_ec_combine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_SECP256K1_SCALAR_CONST
	mov	x19, #0
	str	w0, [sp, #28]
	sub	x20, x29, #64
Lloh3:
	adrp	x21, _ctx@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ctx@GOTPAGEOFF]
	add	x22, sp, #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_random_scalar_order_test
	add	x0, sp, #28
	add	x1, sp, #28
	add	x2, sp, #8
	bl	_secp256k1_scalar_add
	ldr	x0, [x21]
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_secp256k1_ecmult_gen
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_ge_set_gej
	add	x1, sp, #12
	mov	x0, x20
	bl	_secp256k1_pubkey_save
	str	x20, [x22, x19, lsl #3]
	ldr	x0, [x21]
	add	x1, sp, #16
	add	x2, sp, #28
	bl	_secp256k1_ecmult_gen
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_secp256k1_ge_set_gej
	add	x0, sp, #24
	add	x1, sp, #12
	bl	_secp256k1_pubkey_save
	ldr	x0, [x21]
	add	x19, x19, #1
	add	x1, sp, #20
	add	x2, sp, #32
	mov	x3, x19
	bl	_secp256k1_ec_pubkey_combine
	cmp	w0, #1
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #24
	add	x1, sp, #20
	mov	w2, #4
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	add	x20, x20, #4
	cmp	x19, #6
	b.ne	LBB0_1
; %bb.2:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,8,3                        ; @ctx
.subsections_via_symbols
