	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_sa_bo_manager_init      ## -- Begin function amdgpu_sa_bo_manager_init
	.p2align	4, 0x90
_amdgpu_sa_bo_manager_init:             ## @amdgpu_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	64(%rsi), %rdi
	callq	_init_waitqueue_head
	leaq	16(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rbx)
	movl	%r13d, (%rbx)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, 56(%rbx)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, 48(%rbx)
	leaq	32(%rbx), %rdi
	movq	%rdi, 40(%rbx)
	callq	_INIT_LIST_HEAD
	movq	_AMDGPU_SA_NUM_FENCE_LISTS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	addq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	leaq	8(%rbx), %r9
	leaq	4(%rbx), %rax
	movq	%rax, (%rsp)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_amdgpu_bo_create_kernel
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_5:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_SA_NUM_FENCE_LISTS,4,2  ## @AMDGPU_SA_NUM_FENCE_LISTS
	.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	_amdgpu_sa_bo_manager_init      ; -- Begin function amdgpu_sa_bo_manager_init
	.p2align	2
_amdgpu_sa_bo_manager_init:             ; @amdgpu_sa_bo_manager_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #64
	bl	_init_waitqueue_head
	mov	x24, x19
	str	xzr, [x24, #16]!
	str	w23, [x19]
	stp	x22, x21, [x19, #48]
	add	x0, x19, #32
	str	x0, [x19, #40]
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x25, _AMDGPU_SA_NUM_FENCE_LISTS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AMDGPU_SA_NUM_FENCE_LISTS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
	mov	x27, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x26
	bl	_INIT_LIST_HEAD
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_2
LBB0_3:
	add	x5, x19, #8
	add	x6, x19, #4
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_amdgpu_bo_create_kernel
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	ldp	w2, w0, [x19]
	mov	w1, #0
	bl	_memset
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_SA_NUM_FENCE_LISTS,4,2  ; @AMDGPU_SA_NUM_FENCE_LISTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) failed to allocate bo for manager\n"

.subsections_via_symbols
