	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vm_check_compute_bug    ## -- Begin function amdgpu_vm_check_compute_bug
	.p2align	4, 0x90
_amdgpu_vm_check_compute_bug:           ## @amdgpu_vm_check_compute_bug
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AMD_IP_BLOCK_TYPE_GFX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_amdgpu_device_ip_get_ip_block
	xorl	%r9d, %r9d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rax
	movl	$1, %r9d
	cmpl	$8, (%rax)
	jl	LBB0_4
## %bb.2:
	movl	$0, %r9d
	jne	LBB0_4
## %bb.3:
	xorl	%r9d, %r9d
	cmpl	$673, 16(%rbx)                  ## imm = 0x2A1
	setl	%r9b
LBB0_4:
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.5:
	movq	8(%rbx), %rsi
	movq	_AMDGPU_RING_TYPE_COMPUTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%edi, %edi
	cmpl	$1, %r8d
	je	LBB0_8
## %bb.6:
	movl	%r8d, %eax
	andl	$-2, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rbx
	movq	8(%rbx), %rcx
	cmpq	%rdx, (%rcx)
	movl	$0, %ecx
	cmovel	%r9d, %ecx
	movl	%ecx, (%rbx)
	movq	8(%rsi,%rdi,8), %rcx
	movq	8(%rcx), %rbx
	cmpq	%rdx, (%rbx)
	movl	$0, %ebx
	cmovel	%r9d, %ebx
	movl	%ebx, (%rcx)
	addq	$2, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_7
LBB0_8:
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movq	(%rsi,%rdi,8), %rax
	movq	8(%rax), %rcx
	xorl	%esi, %esi
	cmpq	%rdx, (%rcx)
	cmovel	%r9d, %esi
	movl	%esi, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IP_BLOCK_TYPE_GFX,4,2      ## @AMD_IP_BLOCK_TYPE_GFX
	.comm	_AMDGPU_RING_TYPE_COMPUTE,8,3   ## @AMDGPU_RING_TYPE_COMPUTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vm_check_compute_bug    ; -- Begin function amdgpu_vm_check_compute_bug
	.p2align	2
_amdgpu_vm_check_compute_bug:           ; @amdgpu_vm_check_compute_bug
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AMD_IP_BLOCK_TYPE_GFX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_IP_BLOCK_TYPE_GFX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_amdgpu_device_ip_get_ip_block
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #8
	b.ge	LBB0_3
; %bb.2:
	mov	w8, #1
	b	LBB0_6
LBB0_3:
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	cmp	w8, #673
	cset	w8, lt
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.7:
	ldr	x10, [x19, #8]
Lloh3:
	adrp	x11, _AMDGPU_RING_TYPE_COMPUTE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AMDGPU_RING_TYPE_COMPUTE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	ldr	x13, [x12, #8]
	ldr	x13, [x13]
	cmp	x13, x11
	csel	w13, w8, wzr, eq
	str	w13, [x12]
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IP_BLOCK_TYPE_GFX,4,2      ; @AMD_IP_BLOCK_TYPE_GFX
	.comm	_AMDGPU_RING_TYPE_COMPUTE,8,3   ; @AMDGPU_RING_TYPE_COMPUTE
.subsections_via_symbols
