	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_gather
_free_gather:                           ## @free_gather
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GD_MAGIC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_GD_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free_gather_extra
LBB0_3:
	movl	$0, (%r15)
	movq	_active_gathers@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setg	%dil
	callq	_assert
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
LBB0_5:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rcx
	movq	-8(%rcx,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rcx,%rbx), %rdi
	addq	$4, %rsi
	callq	_zzfree
	movl	4(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	movq	32(%r15), %rsi
	movq	40(%r15), %rdi
	incq	%rsi
	callq	_zzfree
	movq	16(%r15), %rsi
	movq	24(%r15), %rdi
	incq	%rsi
	callq	_zzfree
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_zzfree
	decq	(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_11:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GD_MAGIC_MASK,4,2              ## @GD_MAGIC_MASK
	.comm	_GD_MAGIC,4,2                   ## @GD_MAGIC
	.comm	_active_gathers,8,3             ## @active_gathers
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Gather structure %p freed.\n"

	.no_dead_strip	_free_gather
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_gather
_free_gather:                           ; @free_gather
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_11
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _GD_MAGIC_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GD_MAGIC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _GD_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GD_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free_gather_extra
LBB0_3:
	str	wzr, [x19]
Lloh6:
	adrp	x20, _active_gathers@GOTPAGE
Lloh7:
	ldr	x20, [x20, _active_gathers@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh8:
	adrp	x8, _verbosity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #48]
	ldr	x9, [x10, x21]
	cbz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x10, x21
	ldr	x0, [x8, #8]
	add	x1, x9, #4
	bl	_zzfree
	ldr	w8, [x19, #4]
	b	LBB0_7
LBB0_10:
	ldp	x8, x0, [x19, #32]
	add	x1, x8, #1
	bl	_zzfree
	ldp	x8, x0, [x19, #16]
	add	x1, x8, #1
	bl	_zzfree
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_zzfree
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
LBB0_11:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_MAGIC_MASK,4,2              ; @GD_MAGIC_MASK
	.comm	_GD_MAGIC,4,2                   ; @GD_MAGIC
	.comm	_active_gathers,8,3             ; @active_gathers
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Gather structure %p freed.\n"

	.no_dead_strip	_free_gather
.subsections_via_symbols
