	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ge_set_all_gej_var
_secp256k1_ge_set_all_gej_var:          ## @secp256k1_ge_set_all_gej_var
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.1:
	movq	%rdx, %r12
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rsi), %rbx
	xorl	%r13d, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %r14
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%rcx, %r14
	callq	_secp256k1_fe_mul
	movq	%r14, %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	$16, %r15
	addq	$16, %rbx
	cmpq	%r13, %r12
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rbx)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rcx), %r14
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_6
LBB0_8:
	cmpq	(%rcx), %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_19
## %bb.9:
	movq	%r14, %r15
	shlq	$4, %r15
	leaq	(%rbx,%r15), %rsi
	leaq	-44(%rbp), %rdi
	callq	_secp256k1_fe_inv_var
	testq	%r14, %r14
	je	LBB0_10
## %bb.11:
	leaq	-1(%r14), %r13
	addq	%r15, %rbx
	addq	$-16, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r15
	addq	$-16, %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$-16, %rbx
	addq	$-16, %r15
	addq	$-1, %r13
	jae	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	shlq	$4, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_secp256k1_fe_mul
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rdx
	addq	$8, %rdx
	leaq	-44(%rbp), %rdi
	movq	%rdi, %rsi
	callq	_secp256k1_fe_mul
	movq	%r13, %r14
	jmp	LBB0_14
LBB0_10:
	xorl	%r14d, %r14d
LBB0_15:
	shlq	$4, %r14
	xorl	%edi, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, (%r15,%r14)
	sete	%dil
	callq	_VERIFY_CHECK
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%r14)
	testq	%r12, %r12
	jne	LBB0_16
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$16, %rbx
	addq	$16, %r15
	decq	%r12
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_ge_set_gej_zinv
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.no_dead_strip	_secp256k1_ge_set_all_gej_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ge_set_all_gej_var
_secp256k1_ge_set_all_gej_var:          ; @secp256k1_ge_set_all_gej_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	cbz	x2, LBB0_15
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x26, #0
Lloh0:
	adrp	x25, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SIZE_MAX@GOTPAGEOFF]
	ldr	x24, [x25]
	add	x22, x1, #8
	mov	x23, x0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x21, x24, lsl #4
	mov	x0, x23
	mov	x2, x22
	bl	_secp256k1_fe_mul
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x26
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	add	x23, x23, #16
	add	x22, x22, #16
	cmp	x19, x26
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x22, #-8]
	cbnz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cmp	x24, x8
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
	str	w8, [x23]
	b	LBB0_3
LBB0_8:
	ldr	x8, [x25]
	cmp	x24, x8
	b.eq	LBB0_15
; %bb.9:
	add	x1, x21, x24, lsl #4
	add	x0, sp, #12
	bl	_secp256k1_fe_inv_var
	cbz	x24, LBB0_14
; %bb.10:
	sub	x23, x24, #1
	lsl	x8, x24, #4
	add	x9, x21, x8
	sub	x22, x9, #16
	add	x8, x20, x8
	sub	x25, x8, #16
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x23, x23, #1
	sub	x22, x22, #16
	sub	x25, x25, #16
	cmn	x23, #1
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	lsl	x24, x24, #4
	add	x0, x21, x24
	add	x2, sp, #12
	mov	x1, x22
	bl	_secp256k1_fe_mul
	add	x8, x20, x24
	add	x2, x8, #8
	add	x0, sp, #12
	add	x1, sp, #12
	bl	_secp256k1_fe_mul
	mov	x24, x23
	b	LBB0_11
LBB0_14:
	lsl	x22, x24, #4
	ldr	x8, [x20, x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_VERIFY_CHECK
	ldr	w8, [sp, #12]
	str	w8, [x21, x22]
	cbnz	x19, LBB0_17
LBB0_15:
	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
	add	sp, sp, #96
	ret
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #16
	add	x20, x20, #16
	subs	x19, x19, #1
	b.eq	LBB0_15
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	str	x8, [x21, #8]
	cbnz	x8, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x21
	bl	_secp256k1_ge_set_gej_zinv
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.no_dead_strip	_secp256k1_ge_set_all_gej_var
.subsections_via_symbols
