	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_fence_driver_init_ring
_radeon_fence_driver_init_ring:         ## @radeon_fence_driver_init_ring
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movslq	%esi, %rbx
	leaq	(%rbx,%rbx,4), %rax
	movl	$-1, (%r15,%rax,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15,%rax,8)
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	movq	16(%r15,%rax,8), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_2:
	shlq	$3, %rbx
	leaq	(%rbx,%rbx,4), %rbx
	leaq	(%r15,%rbx), %rdi
	addq	$12, %rdi
	xorl	%esi, %esi
	callq	_atomic64_set
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movl	$0, 4(%rcx,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ## @RADEON_NUM_RINGS
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_radeon_fence_driver_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_fence_driver_init_ring
_radeon_fence_driver_init_ring:         ; @radeon_fence_driver_init_ring
	.cfi_startproc
; %bb.0:
	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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x20, [x0]
	sxtw	x21, w1
	mov	w8, #40
	smaddl	x8, w1, w8, x20
	mov	w9, #-1
	str	w9, [x8]
	stp	xzr, xzr, [x8, #24]
Lloh0:
	adrp	x8, _RADEON_NUM_RINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_NUM_RINGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w9, #40
	madd	x9, x21, x9, x20
	ldr	x0, [x9, #16]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_2:
	add	x8, x21, x21, lsl #2
	lsl	x21, x8, #3
	add	x8, x20, x21
	add	x0, x8, #12
	mov	w1, #0
	bl	_atomic64_set
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19]
	add	x9, x9, x21
	stp	wzr, w8, [x9, #4]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ; @RADEON_NUM_RINGS
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_radeon_fence_driver_init_ring
.subsections_via_symbols
