	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf_serialize                   ## -- Begin function gf_serialize
	.p2align	4, 0x90
_gf_serialize:                          ## @gf_serialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	callq	_gf_copy
	callq	_gf_strong_reduce
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_4:
	movq	_SER_BYTES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_6
	jmp	LBB0_13
LBB0_1:
	callq	_gf_hibit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_3:
	movq	_X_SER_BYTES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	movq	_NLIMBS@GOTPCREL(%rip), %r8
	movq	_X_SER_BYTES@GOTPCREL(%rip), %rcx
	movq	_SER_BYTES@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%rdx), %rdx
	addq	$8, %rax
	cmpq	%rdx, %rdi
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, (%r8)
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	movq	$0, (%r14,%rax)
	movq	%rcx, %rdx
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rsi, %rdx
	jmp	LBB0_12
LBB0_9:
	callq	_gf_serialize.cold.1
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function gf_serialize.cold.1
_gf_serialize.cold.1:                   ## @gf_serialize.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%edi, %edi
	callq	_LIMBPERM
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_SER_BYTES,4,2                  ## @SER_BYTES
	.comm	_X_SER_BYTES,4,2                ## @X_SER_BYTES
	.comm	_NLIMBS,4,2                     ## @NLIMBS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf_serialize                   ; -- Begin function gf_serialize
	.p2align	2
_gf_serialize:                          ; @gf_serialize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	bl	_gf_copy
	bl	_gf_strong_reduce
	cbnz	w19, LBB0_2
; %bb.1:
	bl	_gf_hibit
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
LBB0_2:
Lloh0:
	adrp	x8, _X_SER_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X_SER_BYTES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SER_BYTES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SER_BYTES@GOTPAGEOFF]
	cmp	w19, #0
	csel	x10, x9, x8, eq
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x10, #0
	mov	x11, #0
Lloh4:
	adrp	x12, _NLIMBS@GOTPAGE
Lloh5:
	ldr	x12, [x12, _NLIMBS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x20, x10]
	add	x11, x11, #1
	cmp	w19, #0
	csel	x13, x9, x8, eq
	ldrsw	x13, [x13]
	add	x10, x10, #8
	cmp	x11, x13
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x12]
	cbz	w13, LBB0_4
; %bb.7:
	bl	_gf_serialize.cold.1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function gf_serialize.cold.1
_gf_serialize.cold.1:                   ; @gf_serialize.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w0, #0
	bl	_LIMBPERM
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_SER_BYTES,4,2                  ; @SER_BYTES
	.comm	_X_SER_BYTES,4,2                ; @X_SER_BYTES
	.comm	_NLIMBS,4,2                     ; @NLIMBS
.subsections_via_symbols
