	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_bo_create               ## -- Begin function radeon_bo_create
	.p2align	4, 0x90
_radeon_bo_create:                      ## @radeon_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%edx, %edi
	callq	_roundup
	movq	%rax, %r15
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r15
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ALIGN
	movq	%rax, %r14
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ttm_bo_type_sg@GOTPCREL(%rip), %rax
LBB0_3:
	movq	16(%rbp), %rcx
	leaq	4(%r13), %rbx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	$0, (%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$40, %edx
	callq	_ttm_bo_dma_acc_size
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rdi
	leaq	24(%rax), %rsi
	movq	%r14, %rdx
	callq	_drm_gem_object_init
	movq	%r14, %rbx
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%r14b
	movq	%r13, 32(%r12)
	movq	$0, 24(%r12)
	movl	$-1, (%r12)
	leaq	16(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_radeon_ttm_placement_from_domain
	movq	%r13, %rdi
	callq	_down_read
	leaq	8(%r12), %rsi
	movq	%r12, %r8
	addq	$4, %r8
	subq	$8, %rsp
	movq	_radeon_ttm_bo_destroy@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r9
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	%r14
	callq	_ttm_bo_init
	addq	$48, %rsp
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_up_read
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	16(%rbp), %rax
	movq	%r12, (%rax)
	movq	%r12, %rdi
	callq	_trace_radeon_bo_create
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_ttm_bo_type_kernel,4,2         ## @ttm_bo_type_kernel
	.comm	_ttm_bo_type_sg,4,2             ## @ttm_bo_type_sg
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_radeon_ttm_bo_destroy,4,2      ## @radeon_ttm_bo_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_bo_create               ; -- Begin function radeon_bo_create
	.p2align	2
_radeon_bo_create:                      ; @radeon_bo_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x6
	mov	x21, x5
	str	w4, [sp, #44]                   ; 4-byte Folded Spill
	mov	x27, x3
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x2
	bl	_roundup
	mov	x22, x0
Lloh2:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_ALIGN
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	mov	x25, x20
	str	w8, [x25, #4]!
Lloh5:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh7:
	adrp	x9, _ttm_bo_type_sg@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ttm_bo_type_sg@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ttm_bo_type_kernel@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ttm_bo_type_kernel@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w27, #0
	csel	w8, w8, w9, eq
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	str	xzr, [x26]
	mov	x0, x25
	mov	x1, x23
	mov	w2, #40
	bl	_ttm_bo_dma_acc_size
	mov	x28, x0
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
	str	x26, [sp, #32]                  ; 8-byte Folded Spill
	ldr	x0, [x20, #8]
	add	x1, x24, #24
	mov	x2, x23
	bl	_drm_gem_object_init
	mov	x26, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x24
	bl	_kfree
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_6
LBB0_4:
	lsr	x22, x22, x19
	cmp	w27, #0
	cset	w26, eq
	stp	xzr, x20, [x24, #24]
	mov	w8, #-1
	str	w8, [x24]
	add	x0, x24, #16
	bl	_INIT_LIST_HEAD
	add	x0, x24, #12
	bl	_INIT_LIST_HEAD
	mov	x0, x24
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_radeon_ttm_placement_from_domain
	mov	x0, x20
	bl	_down_read
	add	x1, x24, #8
	add	x4, x24, #4
Lloh18:
	adrp	x8, _radeon_ttm_bo_destroy@GOTPAGE
Lloh19:
	ldr	x8, [x8, _radeon_ttm_bo_destroy@GOTPAGEOFF]
	stp	x21, x8, [sp, #8]
	str	x28, [sp]
	mov	x0, x25
	mov	x2, x23
	ldr	w3, [sp, #40]                   ; 4-byte Folded Reload
	mov	x5, x22
	mov	x6, x26
	mov	x7, #0
	bl	_ttm_bo_init
	mov	x26, x0
	mov	x0, x20
	bl	_up_read
	cmp	w26, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x24, [x8]
	mov	x0, x24
	bl	_trace_radeon_bo_create
	mov	w26, #0
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_ttm_bo_type_kernel,4,2         ; @ttm_bo_type_kernel
	.comm	_ttm_bo_type_sg,4,2             ; @ttm_bo_type_sg
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_radeon_ttm_bo_destroy,4,2      ; @radeon_ttm_bo_destroy
.subsections_via_symbols
