	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ge_globalz_set_table_gej
_secp256k1_ge_globalz_set_table_gej:    ## @secp256k1_ge_globalz_set_table_gej
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	-1(%rdi), %r12
	leaq	(%r12,%r12,2), %r15
	movl	8(%rcx,%r15,4), %eax
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r12, %rbx
	shlq	$4, %rbx
	movl	%eax, 12(%rsi,%rbx)
	movl	4(%rcx,%r15,4), %eax
	leaq	(%rsi,%rbx), %rdi
	addq	$8, %rdi
	movl	%eax, 8(%rsi,%rbx)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_secp256k1_fe_normalize_weak
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r15,4), %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movq	$0, (%r13,%rbx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-4(%rbx,%r14,4), %eax
	movl	%eax, -44(%rbp)
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	leaq	-2(%r14), %r15
	movq	%r15, %rdi
	shlq	$4, %rdi
	addq	%r13, %rdi
	leaq	(%r15,%r15,2), %rax
	leaq	(%rcx,%rax,4), %rsi
	leaq	-44(%rbp), %rdx
	callq	_secp256k1_ge_set_gej_zinv
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	addq	$-3, %r14
	leaq	(%r14,%r14,2), %rax
	leaq	(%rcx,%rax,4), %r12
	shlq	$4, %r14
	addq	%r14, %r13
	leaq	(%rbx,%r15,4), %rbx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_fe_mul
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_secp256k1_ge_set_gej_zinv
	addq	$-12, %r12
	addq	$-16, %r13
	addq	$-4, %rbx
	decq	%r15
	jne	LBB0_4
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_ge_globalz_set_table_gej
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ge_globalz_set_table_gej
_secp256k1_ge_globalz_set_table_gej:    ; @secp256k1_ge_globalz_set_table_gej
	.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	x0, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	sub	x24, x0, #1
	mov	w8, #12
	madd	x25, x24, x8, x3
	lsl	x26, x24, #4
	add	x0, x1, x26
	ldur	d0, [x25, #4]
	str	d0, [x0, #8]!
	bl	_secp256k1_fe_normalize_weak
	ldr	w8, [x25]
	str	w8, [x23]
	str	xzr, [x20, x26]
	ldr	w8, [x19, x24, lsl #2]
	str	w8, [sp, #12]
	cbz	x24, LBB0_5
; %bb.2:
	sub	x23, x22, #2
	add	x0, x20, x23, lsl #4
	mov	w8, #12
	madd	x1, x23, x8, x21
	add	x2, sp, #12
	bl	_secp256k1_ge_set_gej_zinv
	cbz	x23, LBB0_5
; %bb.3:
	sub	x8, x22, #3
	mov	w9, #12
	madd	x21, x8, x9, x21
	add	x20, x20, x8, lsl #4
	add	x19, x19, x23, lsl #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	add	x1, sp, #12
	mov	x2, x19
	bl	_secp256k1_fe_mul
	sub	x23, x23, #1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_secp256k1_ge_set_gej_zinv
	sub	x21, x21, #12
	sub	x20, x20, #16
	sub	x19, x19, #4
	cbnz	x23, LBB0_4
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_secp256k1_ge_globalz_set_table_gej
.subsections_via_symbols
