	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_fence_wait_any_seq
_radeon_fence_wait_any_seq:             ## @radeon_fence_wait_any_seq
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movl	%eax, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, %ebx
	cmovbl	%ebx, %r12d
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15,%rbx,8)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r13, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %r13
	jmp	LBB0_2
LBB0_7:
	cmpl	%eax, %r12d
	jne	LBB0_10
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_fence_any_seq_signaled
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_fence_any_seq_signaled
	testl	%eax, %eax
	movq	_jiffies@GOTPCREL(%rip), %rax
	jne	LBB0_42
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
	movq	(%rax), %rbx
	movq	_RADEON_FENCE_JIFFIES_TIMEOUT@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	subq	%rbx, %r13
	testq	%rax, %rax
	movl	$1, %eax
	cmoveq	%rax, %r13
	movl	28(%r14), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r15,%rax,8), %rsi
	callq	_trace_radeon_fence_wait_begin
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_19
LBB0_17:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r15,%rbx,8)
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_radeon_irq_kms_sw_irq_get
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	32(%r14), %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_fence_any_seq_signaled
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r13, %rdx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_wait_event_interruptible_timeout
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_wait_event_timeout
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %r13d
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=2
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_27
LBB0_25:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r15,%rbx,8)
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_radeon_irq_kms_sw_irq_put
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%r13d, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_41
## %bb.28:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	28(%r14), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r15,%rax,8), %rsi
	callq	_trace_radeon_fence_wait_end
	xorl	%edi, %edi
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.29:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.30:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=2
	incq	%rbx
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jae	LBB0_36
LBB0_33:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r13, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_32
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=2
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %r13
	jmp	LBB0_32
LBB0_35:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r13d, %r13d
LBB0_36:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rdx
	addq	8(%r14), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_radeon_ring_is_lockup
	testq	%rax, %rax
	jne	LBB0_43
## %bb.38:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_13
LBB0_39:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_fence_any_seq_signaled
	xorl	%ecx, %ecx
	testl	%eax, %eax
	movq	_jiffies@GOTPCREL(%rip), %rax
	jne	LBB0_11
## %bb.40:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_41:
	movl	%r13d, %ecx
	jmp	LBB0_11
LBB0_42:
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_43:
	movl	24(%r14), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r15,%rax,8), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	movq	_jiffies@GOTPCREL(%rip), %rax
	je	LBB0_60
## %bb.44:
	movq	16(%r14), %rcx
	cmpl	$4, %r8d
	jb	LBB0_45
## %bb.46:
	leaq	8(%rax), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_49
## %bb.47:
	leaq	(%rcx,%r8,8), %rdx
	cmpq	_jiffies@GOTPCREL(%rip), %rdx
	jbe	LBB0_49
LBB0_45:
	xorl	%edx, %edx
LBB0_56:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r8, %rsi
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_58
	.p2align	4, 0x90
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	%rbx, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_57
LBB0_58:
	cmpq	$3, %rsi
	jb	LBB0_60
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	(%rax), %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	movq	(%rax), %rsi
	movq	%rsi, 16(%rcx,%rdx,8)
	movq	(%rax), %rsi
	movq	%rsi, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_59
	jmp	LBB0_60
LBB0_49:
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_52
## %bb.50:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%edi, %edi
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,8)
	movdqu	%xmm0, 16(%rcx,%rdi,8)
	movdqu	%xmm0, 32(%rcx,%rdi,8)
	movdqu	%xmm0, 48(%rcx,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_51
	jmp	LBB0_53
LBB0_52:
	xorl	%edi, %edi
LBB0_53:
	testb	$1, %bl
	je	LBB0_55
## %bb.54:
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rcx,%rdi,8)
	movdqu	%xmm0, 16(%rcx,%rdi,8)
LBB0_55:
	cmpq	%r8, %rdx
	jne	LBB0_56
LBB0_60:
	movq	8(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rax,%rcx,4)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ## @RADEON_NUM_RINGS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_RADEON_FENCE_JIFFIES_TIMEOUT,8,3 ## @RADEON_FENCE_JIFFIES_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPU lockup (waiting for 0x%016llx)\n"

	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.no_dead_strip	_radeon_fence_wait_any_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_fence_wait_any_seq
_radeon_fence_wait_any_seq:             ; @radeon_fence_wait_any_seq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x28, _RADEON_NUM_RINGS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RADEON_NUM_RINGS@GOTPAGEOFF]
	ldr	w8, [x28]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x23, #0
	mov	x24, #0
	mov	x22, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, w22
	csel	w22, w23, w22, lo
	ldr	w8, [x28]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, x23, lsl #3]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x24
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	x24, [x8, x23, lsl #3]
	b	LBB0_2
LBB0_7:
	cmp	w22, w8
	b.ne	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_fence_any_seq_signaled
	cbz	w0, LBB0_13
LBB0_11:
	mov	w25, #0
LBB0_12:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	w27, w22
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	mov	x23, x24
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_fence_any_seq_signaled
	mov	x8, x21
	cbnz	w0, LBB0_11
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
	mov	x21, x8
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _RADEON_FENCE_JIFFIES_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RADEON_FENCE_JIFFIES_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	x24, x8, x9
	mov	x0, x23
	mov	x1, x24
	bl	_time_after
	sub	x8, x23, x24
	cmp	x0, #0
	csinc	x25, x8, xzr, ne
	ldr	w0, [x19, #28]
	ldr	x1, [x20, x27, lsl #3]
	bl	_trace_radeon_fence_wait_begin
	ldr	w8, [x28]
	cbz	w8, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x24, x24, #1
	cmp	x24, w8, uxtw
	b.hs	LBB0_21
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, x24, lsl #3]
	cbz	x9, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_radeon_irq_kms_sw_irq_get
	ldr	w8, [x28]
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w26, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_fence_any_seq_signaled
	mov	x24, x0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_wait_event_interruptible_timeout
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_wait_event_timeout
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x25, x0
	ldr	w8, [x28]
	cbz	w8, LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x26, #0
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_29
LBB0_27:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, x26, lsl #3]
	cbz	x9, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x0, x19
	mov	x1, x26
	bl	_radeon_irq_kms_sw_irq_put
	ldr	w8, [x28]
	b	LBB0_26
LBB0_29:                                ;   in Loop: Header=BB0_16 Depth=1
	lsr	w0, w25, #31
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.30:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19, #28]
	ldr	x1, [x20, x27, lsl #3]
	bl	_trace_radeon_fence_wait_end
	cmp	w24, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=1
	cbnz	w25, LBB0_15
; %bb.32:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x28]
	cbz	w8, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x25, #0
	mov	x24, #0
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=2
	add	x25, x25, #1
	ldr	w8, [x28]
	cmp	x25, x8
	b.hs	LBB0_38
LBB0_35:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x25, lsl #3]
	mov	x1, x24
	bl	_time_after
	cbz	x0, LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=2
	ldr	x8, [x19, #16]
	ldr	x24, [x8, x25, lsl #3]
	b	LBB0_34
LBB0_37:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, #0
LBB0_38:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x23, x24
	b.ne	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, x27, lsl #2
	mov	x0, x19
	mov	x1, x22
	bl	_radeon_ring_is_lockup
	cbz	x0, LBB0_14
	b	LBB0_42
LBB0_40:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_fence_any_seq_signaled
	mov	w25, #0
	mov	x8, x21
	cbnz	w0, LBB0_12
; %bb.41:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x24
	b	LBB0_16
LBB0_42:
	ldr	w0, [x19, #24]
	ldr	x2, [x20, x27, lsl #3]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x28]
	cbz	w8, LBB0_49
; %bb.43:
	ldr	x9, [x19, #16]
	cmp	w8, #8
	b.lo	LBB0_46
; %bb.44:
	add	x10, x21, #8
	cmp	x9, x10
	b.hs	LBB0_50
; %bb.45:
	add	x10, x9, x8, lsl #3
	cmp	x10, x21
	b.ls	LBB0_50
LBB0_46:
	mov	x10, #0
LBB0_47:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_48
LBB0_49:
	ldr	x8, [x19, #8]
	str	wzr, [x8, x27, lsl #2]
	mov	x0, x19
	bl	_mutex_unlock
Lloh11:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
	b	LBB0_9
LBB0_50:
	and	x10, x8, #0xfffffff8
	ld1r.2d	{ v0 }, [x21]
	add	x11, x9, #32
	mov	x12, x10
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x21]
	dup.2d	v1, v1[0]
	stp	q0, q0, [x11, #-32]
	stp	q0, q1, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_51
; %bb.52:
	cmp	x10, x8
	b.eq	LBB0_49
	b	LBB0_47
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ; @RADEON_NUM_RINGS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_RADEON_FENCE_JIFFIES_TIMEOUT,8,3 ; @RADEON_FENCE_JIFFIES_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU lockup (waiting for 0x%016llx)\n"

	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.no_dead_strip	_radeon_fence_wait_any_seq
.subsections_via_symbols
