	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_gpu_offset           ## -- Begin function amdgpu_bo_gpu_offset
	.p2align	4, 0x90
_amdgpu_bo_gpu_offset:                  ## @amdgpu_bo_gpu_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	movl	40(%rbx), %edi
	callq	_dma_resv_is_locked
	xorl	%r14d, %r14d
	movl	$0, %edi
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 48(%rbx)
	movl	$0, %edi
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_3:
	callq	_WARN_ON_ONCE
	movq	32(%rbx), %rax
	movq	_AMDGPU_BO_INVALID_OFFSET@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	24(%rbx), %rax
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rbx)
	sete	%r14b
LBB0_5:
	movl	%r14d, %edi
	callq	_WARN_ON_ONCE
	movl	16(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_amdgpu_gmc_sign_extend         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ## @TTM_PL_SYSTEM
	.comm	_ttm_bo_type_kernel,8,3         ## @ttm_bo_type_kernel
	.comm	_AMDGPU_BO_INVALID_OFFSET,8,3   ## @AMDGPU_BO_INVALID_OFFSET
	.comm	_TTM_PL_VRAM,8,3                ## @TTM_PL_VRAM
	.comm	_AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,4,2 ## @AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_gpu_offset           ; -- Begin function amdgpu_bo_gpu_offset
	.p2align	2
_amdgpu_bo_gpu_offset:                  ; @amdgpu_bo_gpu_offset
	.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
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _TTM_PL_SYSTEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	w0, [x19, #40]
	bl	_dma_resv_is_locked
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_7
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_WARN_ON_ONCE
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x9, _AMDGPU_BO_INVALID_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDGPU_BO_INVALID_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _TTM_PL_VRAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_WARN_ON_ONCE
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_amdgpu_gmc_sign_extend
LBB0_7:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _ttm_bo_type_kernel@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ttm_bo_type_kernel@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ; @TTM_PL_SYSTEM
	.comm	_ttm_bo_type_kernel,8,3         ; @ttm_bo_type_kernel
	.comm	_AMDGPU_BO_INVALID_OFFSET,8,3   ; @AMDGPU_BO_INVALID_OFFSET
	.comm	_TTM_PL_VRAM,8,3                ; @TTM_PL_VRAM
	.comm	_AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,4,2 ; @AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS
.subsections_via_symbols
