	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ag_flush                       ## -- Begin function ag_flush
	.p2align	4, 0x90
_ag_flush:                              ## @ag_flush
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_ag_finest@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_24
## %bb.1:
	movl	%esi, %r12d
	movl	%edi, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ag_out
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r13), %rbx
	movq	%r13, %rdi
	callq	_ag_del
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	testq	%rbx, %rbx
	je	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	%r12d, (%r13)
	jl	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r13), %rbx
	movl	4(%r13), %r14d
	movl	%r14d, %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	jne	LBB0_23
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edi
	movq	_AGS_SUPPRESS@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AGS_FINE_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AGS_CORS_GATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	24(%rbx), %rdx
	cmpq	24(%r13), %rdx
	jle	LBB0_13
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edx
	andl	%r14d, %edx
	cmpl	4(%rbx), %edx
	jne	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%r13), %rdx
	cmpq	16(%rbx), %rdx
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	%eax, %edx
	andl	%edi, %edx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	testl	%ecx, 8(%rbx)
	jne	LBB0_12
	jmp	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_AG_IS_REDUN
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	addl	%eax, %eax
	cmpl	%eax, (%rbx)
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_AGS_REDUN1@GOTPCREL(%rip), %rax
	cmpl	%r14d, 4(%rbx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_AGS_REDUN0@GOTPCREL(%rip), %rax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rax
	cmpq	32(%rbx), %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 32(%rbx)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r13), %rax
	cmpq	40(%rbx), %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 40(%rbx)
	jmp	LBB0_22
LBB0_24:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CHECK_AG                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ag_finest,8,3                  ## @ag_finest
	.comm	_AGS_SUPPRESS,4,2               ## @AGS_SUPPRESS
	.comm	_AGS_FINE_GATE,4,2              ## @AGS_FINE_GATE
	.comm	_AGS_CORS_GATE,4,2              ## @AGS_CORS_GATE
	.comm	_AGS_REDUN0,4,2                 ## @AGS_REDUN0
	.comm	_AGS_REDUN1,4,2                 ## @AGS_REDUN1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ag_flush                       ; -- Begin function ag_flush
	.p2align	2
_ag_flush:                              ; @ag_flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _ag_finest@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ag_finest@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x22, LBB0_22
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh3:
	adrp	x23, _AGS_SUPPRESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AGS_SUPPRESS@GOTPAGEOFF]
Lloh5:
	adrp	x24, _AGS_FINE_GATE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AGS_FINE_GATE@GOTPAGEOFF]
Lloh7:
	adrp	x25, _AGS_CORS_GATE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AGS_CORS_GATE@GOTPAGEOFF]
Lloh9:
	adrp	x27, _AGS_REDUN1@GOTPAGE
Lloh10:
	ldr	x27, [x27, _AGS_REDUN1@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_ag_out
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x28, [x22, #48]
	mov	x0, x22
	bl	_ag_del
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x28
	cbz	x28, LBB0_22
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w8, [x22]
	cmp	w8, w20
	b.lt	LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x28, [x22, #48]
	ldr	w26, [x22, #4]
	and	w8, w26, w20
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #8]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x28, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	and	w8, w8, w0
	ldr	w9, [x25]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x10, [x28, #24]
	ldr	x11, [x22, #24]
	cmp	x10, x11
	b.le	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x28, [x28, #48]
	cbz	x28, LBB0_2
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w10, w11, [x28]
	and	w10, w10, w26
	cmp	w10, w11
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x10, [x22, #16]
	ldr	x11, [x28, #16]
	cmp	x10, x11
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w10, [x28, #8]
	tst	w9, w10
	b.ne	LBB0_10
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_AG_IS_REDUN
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x22]
	cmp	w8, w9, lsl #1
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [x28, #4]
	cmp	w8, w26
Lloh11:
	adrp	x8, _AGS_REDUN0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AGS_REDUN0@GOTPAGEOFF]
	csel	x8, x8, x27, eq
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x28, #8]
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #32]
	ldr	x9, [x28, #32]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x28, #32]
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #40]
	ldr	x9, [x28, #40]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x28, #40]
	b	LBB0_3
LBB0_22:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_CHECK_AG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ag_finest,8,3                  ; @ag_finest
	.comm	_AGS_SUPPRESS,4,2               ; @AGS_SUPPRESS
	.comm	_AGS_FINE_GATE,4,2              ; @AGS_FINE_GATE
	.comm	_AGS_CORS_GATE,4,2              ; @AGS_CORS_GATE
	.comm	_AGS_REDUN0,4,2                 ; @AGS_REDUN0
	.comm	_AGS_REDUN1,4,2                 ; @AGS_REDUN1
.subsections_via_symbols
