	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r300_pacify
_r300_pacify:                           ## @r300_pacify
	.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	%rdi, %r14
	movq	_R300_ZC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_R300_RB2D_DC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_R300_RB3D_DC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RADEON_PURGE_EMITED@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_R300_ZC_FREE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_R300_RB2D_DC_FREE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_R300_RB3D_DC_FREE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_2:
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_R300_ZB_ZCACHE_CTLSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_R300_RB3D_DSTCACHE_CTLSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%r12d, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_R300_TX_INVALTAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_R300_RB3D_AARESOLVE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_RADEON_WAIT_UNTIL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_RADEON_WAIT_3D_IDLECLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movl	$4, %edi
	callq	_BEGIN_RING
	movq	_R300_DSTCACHE_CTLSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%r15d, %edi
	callq	_OUT_RING
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_RADEON_WAIT_2D_IDLECLEAN@GOTPCREL(%rip), %rax
	movq	_RADEON_WAIT_HOST_IDLECLEAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movq	_RADEON_FLUSH_EMITED@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.comm	_R300_ZC_FLUSH,4,2              ## @R300_ZC_FLUSH
	.comm	_R300_RB2D_DC_FLUSH,4,2         ## @R300_RB2D_DC_FLUSH
	.comm	_R300_RB3D_DC_FLUSH,4,2         ## @R300_RB3D_DC_FLUSH
	.comm	_RADEON_PURGE_EMITED,4,2        ## @RADEON_PURGE_EMITED
	.comm	_R300_ZC_FREE,4,2               ## @R300_ZC_FREE
	.comm	_R300_RB2D_DC_FREE,4,2          ## @R300_RB2D_DC_FREE
	.comm	_R300_RB3D_DC_FREE,4,2          ## @R300_RB3D_DC_FREE
	.comm	_R300_ZB_ZCACHE_CTLSTAT,4,2     ## @R300_ZB_ZCACHE_CTLSTAT
	.comm	_R300_RB3D_DSTCACHE_CTLSTAT,4,2 ## @R300_RB3D_DSTCACHE_CTLSTAT
	.comm	_R300_TX_INVALTAGS,4,2          ## @R300_TX_INVALTAGS
	.comm	_R300_RB3D_AARESOLVE_CTL,4,2    ## @R300_RB3D_AARESOLVE_CTL
	.comm	_RADEON_WAIT_UNTIL,4,2          ## @RADEON_WAIT_UNTIL
	.comm	_RADEON_WAIT_3D_IDLECLEAN,4,2   ## @RADEON_WAIT_3D_IDLECLEAN
	.comm	_R300_DSTCACHE_CTLSTAT,4,2      ## @R300_DSTCACHE_CTLSTAT
	.comm	_RADEON_WAIT_2D_IDLECLEAN,4,2   ## @RADEON_WAIT_2D_IDLECLEAN
	.comm	_RADEON_WAIT_HOST_IDLECLEAN,4,2 ## @RADEON_WAIT_HOST_IDLECLEAN
	.comm	_RADEON_FLUSH_EMITED,4,2        ## @RADEON_FLUSH_EMITED
	.no_dead_strip	_r300_pacify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r300_pacify
_r300_pacify:                           ; @r300_pacify
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _R300_ZC_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R300_ZC_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _R300_RB2D_DC_FLUSH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R300_RB2D_DC_FLUSH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _R300_RB3D_DC_FLUSH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R300_RB3D_DC_FLUSH@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	w8, [x0]
Lloh9:
	adrp	x23, _RADEON_PURGE_EMITED@GOTPAGE
Lloh10:
	ldr	x23, [x23, _RADEON_PURGE_EMITED@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _R300_ZC_FREE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R300_ZC_FREE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w22, w8, w22
Lloh14:
	adrp	x8, _R300_RB2D_DC_FREE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R300_RB2D_DC_FREE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w20, w8, w20
Lloh17:
	adrp	x8, _R300_RB3D_DC_FREE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R300_RB3D_DC_FREE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_2:
	mov	w0, #2
	bl	_BEGIN_RING
Lloh20:
	adrp	x8, _R300_ZB_ZCACHE_CTLSTAT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R300_ZB_ZCACHE_CTLSTAT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	mov	x0, x22
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w0, #2
	bl	_BEGIN_RING
Lloh23:
	adrp	x8, _R300_RB3D_DSTCACHE_CTLSTAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R300_RB3D_DSTCACHE_CTLSTAT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	mov	x0, x21
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w0, #2
	bl	_BEGIN_RING
Lloh26:
	adrp	x8, _R300_TX_INVALTAGS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R300_TX_INVALTAGS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w0, #2
	bl	_BEGIN_RING
Lloh29:
	adrp	x8, _R300_RB3D_AARESOLVE_CTL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R300_RB3D_AARESOLVE_CTL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w0, #2
	bl	_BEGIN_RING
Lloh32:
	adrp	x21, _RADEON_WAIT_UNTIL@GOTPAGE
Lloh33:
	ldr	x21, [x21, _RADEON_WAIT_UNTIL@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
Lloh34:
	adrp	x8, _RADEON_WAIT_3D_IDLECLEAN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RADEON_WAIT_3D_IDLECLEAN@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_OUT_RING
	bl	_ADVANCE_RING
	mov	w0, #4
	bl	_BEGIN_RING
Lloh37:
	adrp	x8, _R300_DSTCACHE_CTLSTAT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _R300_DSTCACHE_CTLSTAT@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
Lloh40:
	adrp	x8, _RADEON_WAIT_2D_IDLECLEAN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RADEON_WAIT_2D_IDLECLEAN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _RADEON_WAIT_HOST_IDLECLEAN@GOTPAGE
Lloh44:
	ldr	x9, [x9, _RADEON_WAIT_HOST_IDLECLEAN@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_OUT_RING
	bl	_ADVANCE_RING
Lloh46:
	adrp	x8, _RADEON_FLUSH_EMITED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RADEON_FLUSH_EMITED@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.comm	_R300_ZC_FLUSH,4,2              ; @R300_ZC_FLUSH
	.comm	_R300_RB2D_DC_FLUSH,4,2         ; @R300_RB2D_DC_FLUSH
	.comm	_R300_RB3D_DC_FLUSH,4,2         ; @R300_RB3D_DC_FLUSH
	.comm	_RADEON_PURGE_EMITED,4,2        ; @RADEON_PURGE_EMITED
	.comm	_R300_ZC_FREE,4,2               ; @R300_ZC_FREE
	.comm	_R300_RB2D_DC_FREE,4,2          ; @R300_RB2D_DC_FREE
	.comm	_R300_RB3D_DC_FREE,4,2          ; @R300_RB3D_DC_FREE
	.comm	_R300_ZB_ZCACHE_CTLSTAT,4,2     ; @R300_ZB_ZCACHE_CTLSTAT
	.comm	_R300_RB3D_DSTCACHE_CTLSTAT,4,2 ; @R300_RB3D_DSTCACHE_CTLSTAT
	.comm	_R300_TX_INVALTAGS,4,2          ; @R300_TX_INVALTAGS
	.comm	_R300_RB3D_AARESOLVE_CTL,4,2    ; @R300_RB3D_AARESOLVE_CTL
	.comm	_RADEON_WAIT_UNTIL,4,2          ; @RADEON_WAIT_UNTIL
	.comm	_RADEON_WAIT_3D_IDLECLEAN,4,2   ; @RADEON_WAIT_3D_IDLECLEAN
	.comm	_R300_DSTCACHE_CTLSTAT,4,2      ; @R300_DSTCACHE_CTLSTAT
	.comm	_RADEON_WAIT_2D_IDLECLEAN,4,2   ; @RADEON_WAIT_2D_IDLECLEAN
	.comm	_RADEON_WAIT_HOST_IDLECLEAN,4,2 ; @RADEON_WAIT_HOST_IDLECLEAN
	.comm	_RADEON_FLUSH_EMITED,4,2        ; @RADEON_FLUSH_EMITED
	.no_dead_strip	_r300_pacify
.subsections_via_symbols
