	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_sa_bo_manager_init      ## -- Begin function radeon_sa_bo_manager_init
	.p2align	4, 0x90
_radeon_sa_bo_manager_init:             ## @radeon_sa_bo_manager_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	44(%rsi), %rdi
	callq	_init_waitqueue_head
	leaq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%rbx)
	movl	%r15d, (%rbx)
	movl	%r12d, 40(%rbx)
	leaq	24(%rbx), %rdi
	movq	%rdi, 32(%rbx)
	callq	_INIT_LIST_HEAD
	movq	_RADEON_NUM_RINGS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	movq	_RADEON_GPU_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RADEON_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_radeon_bo_create
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ## @RADEON_NUM_RINGS
	.comm	_RADEON_GPU_PAGE_SIZE,4,2       ## @RADEON_GPU_PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_CPU,4,2      ## @RADEON_GEM_DOMAIN_CPU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) failed to allocate bo for manager\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_sa_bo_manager_init      ; -- Begin function radeon_sa_bo_manager_init
	.p2align	2
_radeon_sa_bo_manager_init:             ; @radeon_sa_bo_manager_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, x1, #44
	bl	_init_waitqueue_head
	mov	x21, x22
	str	xzr, [x21, #8]!
	str	w20, [x22]
	str	w23, [x22, #40]
	add	x0, x22, #24
	str	x0, [x22, #32]
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x23, _RADEON_NUM_RINGS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RADEON_NUM_RINGS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	add	x0, x8, x24
	bl	_INIT_LIST_HEAD
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _RADEON_GPU_PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RADEON_GPU_PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _RADEON_GEM_DOMAIN_CPU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	mov	x5, #0
	mov	x6, x21
	bl	_radeon_bo_create
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_NUM_RINGS,4,2           ; @RADEON_NUM_RINGS
	.comm	_RADEON_GPU_PAGE_SIZE,4,2       ; @RADEON_GPU_PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_CPU,4,2      ; @RADEON_GEM_DOMAIN_CPU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) failed to allocate bo for manager\n"

.subsections_via_symbols
