	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_init_fb_allocations
_smu_init_fb_allocations:               ## @smu_init_fb_allocations
	.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
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	jle	LBB0_11
## %bb.1:
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	negq	%rcx
	movl	$1, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r13
	leaq	(%rcx,%rbx), %rax
	incq	%rax
	incq	%rbx
	cmpq	$1, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %r14
	movl	20(%r15,%r13), %ecx
	movl	24(%r15,%r13), %edx
	leaq	(%r15,%r13), %r8
	addq	$16, %r8
	leaq	12(%r15,%r13), %r9
	leaq	(%r15,%r13), %r12
	addq	$8, %r12
	movq	%r12, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_amdgpu_bo_create_kernel
	movq	%r14, %rcx
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r14d
	testq	%r13, %r13
	jne	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%rbx
	addq	$-32, %r12
	cmpq	$1, %rbx
	jle	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	8(%r12), %rdi
	leaq	4(%r12), %rsi
	movq	%r12, %rdx
	callq	_amdgpu_bo_free_kernel
	jmp	LBB0_7
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu_init_fb_allocations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_init_fb_allocations
_smu_init_fb_allocations:               ; @smu_init_fb_allocations
	.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
	ldr	x23, [x0]
	cmp	x23, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x24, #0
	mov	x22, #0
	ldp	x25, x21, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x24, x24, #32
	cmp	x23, x22
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25, x24]
	cbz	x1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x24
	ldp	w3, w2, [x8, #20]
	add	x4, x8, #16
	add	x5, x8, #12
	add	x20, x8, #8
	mov	x0, x21
	mov	x6, x20
	bl	_amdgpu_bo_create_kernel
	cbz	w0, LBB0_2
; %bb.5:
	mov	x19, x0
	cbz	x24, LBB0_12
; %bb.6:
	add	x21, x22, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	x21, x21, #1
	sub	x20, x20, #32
	cmp	x21, #1
	b.le	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x20, #-8]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x20, #8
	add	x1, x20, #4
	mov	x2, x20
	bl	_amdgpu_bo_free_kernel
	b	LBB0_7
LBB0_10:
	mov	w19, #0
	b	LBB0_12
LBB0_11:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu_init_fb_allocations
.subsections_via_symbols
