	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_ras_find_obj
_amdgpu_ras_find_obj:                   ## @amdgpu_ras_find_obj
	.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	%rsi, %r15
	callq	_amdgpu_ras_get_context
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movslq	(%r15), %r13
	movq	_AMDGPU_RAS_BLOCK_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_14
## %bb.3:
	shlq	$3, %r13
	addq	(%r14), %r13
	movq	%r13, %rdi
	callq	_alive_obj
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movslq	(%r15), %r15
LBB0_5:
	xorl	%edi, %edi
	cmpq	%r15, (%r13)
	setne	%dil
	callq	_WARN_ON
	jmp	LBB0_15
LBB0_7:
	movq	_AMDGPU_RAS_BLOCK_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r13
	addq	%rbx, %r13
	movq	%r13, %rdi
	callq	_alive_obj
	testq	%rax, %rax
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jl	LBB0_9
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_RAS_BLOCK_COUNT,4,2     ## @AMDGPU_RAS_BLOCK_COUNT
	.no_dead_strip	_amdgpu_ras_find_obj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_ras_find_obj
_amdgpu_ras_find_obj:                   ; @amdgpu_ras_find_obj
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	bl	_amdgpu_ras_get_context
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	cbz	x21, LBB0_6
; %bb.2:
	ldrsw	x8, [x21]
Lloh0:
	adrp	x9, _AMDGPU_RAS_BLOCK_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMDGPU_RAS_BLOCK_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.3:
	ldr	x9, [x20]
	add	x19, x9, x8, lsl #3
	mov	x0, x19
	bl	_alive_obj
	cbz	x0, LBB0_10
; %bb.4:
	ldrsw	x21, [x21]
LBB0_5:
	ldr	x8, [x19]
	cmp	x8, x21
	cset	w0, ne
	bl	_WARN_ON
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x22, _AMDGPU_RAS_BLOCK_COUNT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AMDGPU_RAS_BLOCK_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x23, #0
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x19, x8, x23
	mov	x0, x19
	bl	_alive_obj
	cbnz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_RAS_BLOCK_COUNT,4,2     ; @AMDGPU_RAS_BLOCK_COUNT
	.no_dead_strip	_amdgpu_ras_find_obj
.subsections_via_symbols
