	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_semaphore_emit_signal   ## -- Begin function radeon_semaphore_emit_signal
	.p2align	4, 0x90
_radeon_semaphore_emit_signal:          ## @radeon_semaphore_emit_signal
	.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	%rdx, %r14
	movq	%rdi, %r12
	movslq	%esi, %rbx
	leaq	(,%rbx,4), %r13
	addq	(%rdi), %r13
	movl	%ebx, %edi
	movq	%rdx, %rsi
	callq	_trace_radeon_semaphore_signale
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_radeon_semaphore_ring_emit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	decl	4(%r14)
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	$1, %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_semaphore_emit_signal   ; -- Begin function radeon_semaphore_emit_signal
	.p2align	2
_radeon_semaphore_emit_signal:          ; @radeon_semaphore_emit_signal
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	add	x20, x8, w1, sxtw #2
	mov	x0, x1
	mov	x1, x2
	bl	_trace_radeon_semaphore_signale
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	bl	_radeon_semaphore_ring_emit
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w9, w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	str	w9, [x20]
	mov	w0, #1
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
