	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_test_syncing            ## -- Begin function radeon_test_syncing
	.p2align	4, 0x90
_radeon_test_syncing:                   ## @radeon_test_syncing
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.1:
	movl	$1, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	%eax, %rcx
	movq	%rdx, %rsi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rdx
	jge	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_radeon_test_sync_possible
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_radeon_test_ring_sync
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_radeon_test_ring_sync
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=3
	incl	%r14d
	addq	$4, %rbx
	cmpq	%rbx, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	cmpl	$0, (%r13,%rbx)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	addq	%rbx, %r13
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_radeon_test_sync_possible
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_radeon_test_sync_possible
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_radeon_test_ring_sync2
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_radeon_test_ring_sync2
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_radeon_test_ring_sync2
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	%r15, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_radeon_test_ring_sync2
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_radeon_test_ring_sync2
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_radeon_test_ring_sync2
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	addq	$4, -88(%rbp)                   ## 8-byte Folded Spill
	jmp	LBB0_4
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ## @RADEON_NUM_RINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing syncing between rings %d and %d...\n"

L_.str.1:                               ## @.str.1
	.asciz	"Testing syncing between rings %d, %d and %d...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_test_syncing            ; -- Begin function radeon_test_syncing
	.p2align	2
_radeon_test_syncing:                   ; @radeon_test_syncing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, _RADEON_NUM_RINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_NUM_RINGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.1:
	mov	x19, x0
	mov	w11, #1
Lloh3:
	adrp	x28, l_.str.1@PAGE
Lloh4:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _RADEON_NUM_RINGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADEON_NUM_RINGS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	cmp	x11, w8, sxtw
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x9, [x19]
	add	x22, x9, x11, lsl #2
	ldr	w10, [x22]
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	mov	x8, #0
	str	x11, [sp, #16]                  ; 8-byte Folded Spill
	mov	x23, x11
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x24, x9, x8, lsl #2
	ldr	w8, [x24]
	cbz	w8, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	mov	x1, x24
	bl	_radeon_test_sync_possible
	cbz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x25, x26
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x2, x26
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_radeon_test_ring_sync
	mov	x0, x21
	mov	x1, x26
	mov	x2, x23
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_radeon_test_ring_sync
	cbz	x26, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x21, #0
	mov	w26, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	w26, w26, #1
	add	x21, x21, #4
	cmp	x20, x21
	b.eq	LBB0_15
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19]
	add	x27, x8, x21
	ldr	w8, [x27]
	cbz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x0, x22
	mov	x1, x27
	bl	_radeon_test_sync_possible
	cbz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x0, x24
	mov	x1, x27
	bl	_radeon_test_sync_possible
	cbz	w0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=3
	str	x26, [sp]
	mov	x0, x28
	mov	x1, x23
	mov	x2, x25
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x3, x27
	bl	_radeon_test_ring_sync2
	str	x25, [sp]
	mov	x0, x28
	mov	x1, x23
	mov	x2, x26
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x22
	mov	x2, x27
	mov	x3, x24
	bl	_radeon_test_ring_sync2
	str	x26, [sp]
	mov	x0, x28
	mov	x1, x25
	mov	x2, x23
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x27
	bl	_radeon_test_ring_sync2
	str	x23, [sp]
	mov	x0, x28
	mov	x1, x25
	mov	x2, x26
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	mov	x3, x22
	bl	_radeon_test_ring_sync2
	str	x25, [sp]
	mov	x0, x28
	mov	x1, x26
	mov	x2, x23
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x27
	mov	x2, x22
	mov	x3, x24
	bl	_radeon_test_ring_sync2
	str	x23, [sp]
	mov	x0, x28
	mov	x1, x26
	mov	x2, x25
	bl	_DRM_INFO
	mov	x0, x19
	mov	x1, x27
	mov	x2, x24
	mov	x3, x22
	bl	_radeon_test_ring_sync2
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	x11, x8, [sp, #16]              ; 16-byte Folded Reload
	add	x8, x8, #1
	cmp	x8, x11
	b.eq	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [x19]
	add	x20, x20, #4
	b	LBB0_6
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ; @RADEON_NUM_RINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing syncing between rings %d and %d...\n"

l_.str.1:                               ; @.str.1
	.asciz	"Testing syncing between rings %d, %d and %d...\n"

.subsections_via_symbols
