	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_create               ## -- Begin function amdgpu_bo_create
	.p2align	4, 0x90
_amdgpu_bo_create:                      ## @amdgpu_bo_create
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %r13d
	movq	_AMDGPU_GEM_CREATE_SHADOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r13d, %eax
	movl	%eax, (%rsi)
	callq	_amdgpu_bo_do_create
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r15d, %r15d
	movq	_AMDGPU_GEM_CREATE_SHADOW@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_9
## %bb.2:
	movq	_AMD_IS_APU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_9
## %bb.3:
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_dma_resv_lock
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_5:
	movl	8(%rbx), %esi
	movq	(%r14), %rdx
	movq	%r12, %rdi
	callq	_amdgpu_bo_create_shadow
	movl	%eax, %r12d
	cmpl	$0, 4(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_dma_resv_unlock
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_amdgpu_bo_unref
	movl	%r12d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GEM_CREATE_SHADOW,4,2   ## @AMDGPU_GEM_CREATE_SHADOW
	.comm	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_create               ; -- Begin function amdgpu_bo_create
	.p2align	2
_amdgpu_bo_create:                      ; @amdgpu_bo_create
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w23, [x1]
Lloh0:
	adrp	x24, _AMDGPU_GEM_CREATE_SHADOW@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AMDGPU_GEM_CREATE_SHADOW@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w8, w23, w8
	str	w8, [x1]
	bl	_amdgpu_bo_do_create
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _AMD_IS_APU@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMD_IS_APU@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	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
LBB0_5:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, #0
	bl	_dma_resv_lock
	bl	_WARN_ON
LBB0_7:
	ldr	w1, [x20, #8]
	ldr	x2, [x19]
	mov	x0, x21
	bl	_amdgpu_bo_create_shadow
	mov	x22, x0
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_dma_resv_unlock
LBB0_9:
	cbz	w22, LBB0_4
; %bb.10:
	mov	x0, x19
	bl	_amdgpu_bo_unref
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GEM_CREATE_SHADOW,4,2   ; @AMDGPU_GEM_CREATE_SHADOW
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
.subsections_via_symbols
