	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_sdma_get_instance_from_ring ## -- Begin function amdgpu_sdma_get_instance_from_ring
	.p2align	4, 0x90
_amdgpu_sdma_get_instance_from_ring:    ## @amdgpu_sdma_get_instance_from_ring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	8(%rax), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rax), %rdx
	cmpq	%rdi, %rdx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rax
	decq	%rcx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	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	_amdgpu_sdma_get_instance_from_ring ; -- Begin function amdgpu_sdma_get_instance_from_ring
	.p2align	2
_amdgpu_sdma_get_instance_from_ring:    ; @amdgpu_sdma_get_instance_from_ring
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x8, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, #8
	cmp	x10, x0
	ccmp	x8, x0, #4, ne
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #16
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x8, #0
LBB0_5:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
