	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_get_preferred_pin_domain ## -- Begin function amdgpu_bo_get_preferred_pin_domain
	.p2align	4, 0x90
_amdgpu_bo_get_preferred_pin_domain:    ## @amdgpu_bo_get_preferred_pin_domain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_AMDGPU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AMDGPU_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	cmpl	%eax, %esi
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	movq	_AMDGPU_SG_THRESHOLD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	cmovgl	%ecx, %edx
	movl	%edx, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ## @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_AMDGPU_GEM_DOMAIN_GTT,4,2      ## @AMDGPU_GEM_DOMAIN_GTT
	.comm	_AMDGPU_SG_THRESHOLD,8,3        ## @AMDGPU_SG_THRESHOLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_get_preferred_pin_domain ; -- Begin function amdgpu_bo_get_preferred_pin_domain
	.p2align	2
_amdgpu_bo_get_preferred_pin_domain:    ; @amdgpu_bo_get_preferred_pin_domain
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMDGPU_GEM_DOMAIN_GTT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDGPU_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w10, w9, w8
	cmp	w10, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x0]
Lloh6:
	adrp	x11, _AMDGPU_SG_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AMDGPU_SG_THRESHOLD@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	w1, w8, w9, gt
LBB0_2:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ; @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_AMDGPU_GEM_DOMAIN_GTT,4,2      ; @AMDGPU_GEM_DOMAIN_GTT
	.comm	_AMDGPU_SG_THRESHOLD,8,3        ; @AMDGPU_SG_THRESHOLD
.subsections_via_symbols
