	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_sync_create             ## -- Begin function radeon_sync_create
	.p2align	4, 0x90
_radeon_sync_create:                    ## @radeon_sync_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RADEON_NUM_SYNCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_8
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_8:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	16(%rdi), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	movq	16(%rdi), %rsi
	movq	$0, 16(%rsi,%rcx,8)
	movq	16(%rdi), %rsi
	movq	$0, 24(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_9
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_4
LBB0_5:
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.6:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_10
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_10:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	8(%rdi), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	movq	8(%rdi), %rsi
	movq	$0, 16(%rsi,%rcx,8)
	movq	8(%rdi), %rsi
	movq	$0, 24(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_11
LBB0_12:
	testq	%rax, %rax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_13
LBB0_14:
	movq	$0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_NUM_SYNCS,4,2           ## @RADEON_NUM_SYNCS
	.comm	_RADEON_NUM_RINGS,4,2           ## @RADEON_NUM_RINGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_sync_create             ; -- Begin function radeon_sync_create
	.p2align	2
_radeon_sync_create:                    ; @radeon_sync_create
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RADEON_NUM_SYNCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_NUM_SYNCS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0, #16]
	str	xzr, [x10, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_3:
Lloh3:
	adrp	x8, _RADEON_NUM_RINGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_NUM_RINGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.4:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0, #8]
	str	xzr, [x10, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_6:
	str	xzr, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_NUM_SYNCS,4,2           ; @RADEON_NUM_SYNCS
	.comm	_RADEON_NUM_RINGS,4,2           ; @RADEON_NUM_RINGS
.subsections_via_symbols
