	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_do_init_cce
_r128_do_init_cce:                      ## @r128_do_init_cce
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	jmp	LBB0_15
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$216, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r14
	movq	72(%r12), %rax
	movq	%rax, 104(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r15)
	je	LBB0_12
LBB0_5:
	movl	(%r12), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	movq	_R128_MAX_USEC_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_11
## %bb.7:
	movl	4(%r12), %eax
	movl	%eax, 4(%r14)
	leaq	208(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	movl	$-132, %eax
	addl	4(%r12), %eax
	cmpl	$6, %eax
	jae	LBB0_9
## %bb.8:
	movl	$43, %ecx
	btl	%eax, %ecx
	jb	LBB0_19
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%r14, (%r15)
	movq	%r15, %rdi
	callq	_r128_do_cleanup_cce
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
LBB0_13:
	callq	_DRM_ERROR
LBB0_14:
	movq	%r14, (%r15)
	movq	%r15, %rdi
	callq	_r128_do_cleanup_cce
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	cltq
	leaq	l_switch.table.r128_do_init_cce(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%r14)
	cmpl	$16, 8(%r12)
	movq	_R128_DATATYPE_RGB565@GOTPCREL(%rip), %rax
	movq	_R128_DATATYPE_ARGB8888@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rax, %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 200(%r14)
	movl	20(%r12), %r9d
	movl	24(%r12), %r8d
	movl	12(%r12), %ebx
	movl	16(%r12), %edi
	movups	12(%r12), %xmm0
	movups	%xmm0, 12(%r14)
	cmpl	$16, 28(%r12)
	cmoveq	%rax, %rcx
	movq	(%rcx), %rax
	movq	%rax, 192(%r14)
	movl	32(%r12), %ecx
	movl	%ecx, 28(%r14)
	movl	36(%r12), %esi
	movl	%esi, 32(%r14)
	movl	40(%r12), %eax
	movl	%eax, 36(%r14)
	leal	7(%rdi), %edx
	testl	%edi, %edi
	cmovnsl	%edi, %edx
	andl	$-8, %edx
	shll	$18, %edx
	sarl	$5, %ebx
	orl	%edx, %ebx
	movl	%ebx, 40(%r14)
	leal	7(%r8), %edx
	testl	%r8d, %r8d
	cmovnsl	%r8d, %edx
	andl	$-8, %edx
	shll	$18, %edx
	sarl	$5, %r9d
	orl	%edx, %r9d
	leal	7(%rsi), %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	movl	%r9d, 44(%r14)
	andl	$-8, %edx
	shll	$18, %edx
	sarl	$5, %ecx
	orl	%edx, %ecx
	movq	_R128_DST_TILE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 48(%r14)
	sarl	$5, %eax
	orl	%edx, %eax
	movl	%eax, 52(%r14)
	movq	%r15, %rdi
	callq	_drm_getsarea
	movq	%rax, 168(%r14)
	testq	%rax, %rax
	je	LBB0_30
## %bb.20:
	movl	68(%r12), %esi
	movq	%r15, %rdi
	callq	_drm_core_findmap
	movq	%rax, 184(%r14)
	testq	%rax, %rax
	je	LBB0_31
## %bb.21:
	movl	64(%r12), %esi
	movq	%r15, %rdi
	callq	_drm_core_findmap
	movq	%rax, 152(%r14)
	testq	%rax, %rax
	je	LBB0_32
## %bb.22:
	movl	60(%r12), %esi
	movq	%r15, %rdi
	callq	_drm_core_findmap
	movq	%rax, 160(%r14)
	testq	%rax, %rax
	je	LBB0_33
## %bb.23:
	movl	56(%r12), %esi
	movl	%esi, 32(%r15)
	movq	%r15, %rdi
	callq	_drm_core_findmap
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_34
## %bb.24:
	cmpq	$0, 104(%r14)
	jne	LBB0_27
## %bb.25:
	movl	52(%r12), %esi
	movq	%r15, %rdi
	callq	_drm_core_findmap
	movq	%rax, 176(%r14)
	testq	%rax, %rax
	je	LBB0_36
## %bb.26:
	movq	24(%r15), %rax
LBB0_27:
	movq	168(%r14), %rcx
	movslq	44(%r12), %rdx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	movq	152(%r14), %rcx
	movq	%rdx, 112(%r14)
	movq	8(%rcx), %rdx
	movq	%rdx, (%rcx)
	movq	160(%r14), %rdx
	movq	8(%rdx), %rsi
	movq	%rsi, (%rdx)
	movq	8(%rax), %rdx
	movq	%rdx, (%rax)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	movq	(%rcx), %rax
	movq	%rax, 144(%r14)
	movslq	48(%r12), %rcx
	movq	%rcx, %rdx
	andq	$-4, %rdx
	addq	%rax, %rdx
	leal	7(%rcx), %edi
	testq	%rcx, %rcx
	movq	%rdx, 136(%r14)
	movl	%ecx, 120(%r14)
	cmovnsl	%ecx, %edi
	sarl	$3, %edi
	callq	_drm_order
	movl	%eax, 132(%r14)
	movl	120(%r14), %eax
	sarl	$2, %eax
	decl	%eax
	movl	%eax, 124(%r14)
	movl	$128, 128(%r14)
	movq	112(%r14), %rax
	movq	$0, 8(%rax)
	movq	_R128_LAST_FRAME_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_R128_WRITE
	movq	112(%r14), %rax
	movq	$0, (%rax)
	movq	_R128_LAST_DISPATCH_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_R128_WRITE
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rsi
	addq	$64, %rsi
	movl	%eax, 96(%r14)
	movq	_DRM_ATI_GART_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r14)
	movq	_R128_PCIGART_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movq	$0, 80(%r14)
	movq	$0, 64(%r14)
	movq	_DRM_ATI_GART_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movq	%r15, %rdi
	callq	_drm_ati_pcigart_init
	testl	%eax, %eax
	je	LBB0_35
## %bb.28:
	movq	_R128_PCI_GART_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	64(%r14), %rsi
	callq	_R128_WRITE
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_r128_cce_init_ring_buffer
	movq	%r14, %rdi
	callq	_r128_cce_load_microcode
	movl	%eax, %r12d
	movq	%r14, (%r15)
	movq	%r15, %rdi
	callq	_r128_do_engine_reset
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.29:
	leaq	L_.str.12(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r15, %rdi
	callq	_r128_do_cleanup_cce
	movl	%r12d, %ebx
	jmp	LBB0_18
LBB0_30:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_13
LBB0_31:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_13
LBB0_32:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_13
LBB0_33:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_13
LBB0_34:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_13
LBB0_35:
	leaq	L_.str.11(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r14, (%r15)
	movq	%r15, %rdi
	callq	_r128_do_cleanup_cce
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_36:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"called when already initialized\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"PCI GART memory not allocated!\n"

	.comm	_R128_MAX_USEC_TIMEOUT,4,2      ## @R128_MAX_USEC_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"TIMEOUT problem!\n"

L_.str.4:                               ## @.str.4
	.asciz	"Bad cce_mode!\n"

	.comm	_R128_DATATYPE_RGB565,8,3       ## @R128_DATATYPE_RGB565
	.comm	_R128_DATATYPE_ARGB8888,8,3     ## @R128_DATATYPE_ARGB8888
	.comm	_R128_DST_TILE,4,2              ## @R128_DST_TILE
L_.str.5:                               ## @.str.5
	.asciz	"could not find sarea!\n"

L_.str.6:                               ## @.str.6
	.asciz	"could not find mmio region!\n"

L_.str.7:                               ## @.str.7
	.asciz	"could not find cce ring region!\n"

L_.str.8:                               ## @.str.8
	.asciz	"could not find ring read pointer!\n"

L_.str.9:                               ## @.str.9
	.asciz	"could not find dma buffer region!\n"

L_.str.10:                              ## @.str.10
	.asciz	"could not find agp texture region!\n"

	.comm	_R128_LAST_FRAME_REG,4,2        ## @R128_LAST_FRAME_REG
	.comm	_R128_LAST_DISPATCH_REG,4,2     ## @R128_LAST_DISPATCH_REG
	.comm	_DRM_ATI_GART_MAIN,4,2          ## @DRM_ATI_GART_MAIN
	.comm	_R128_PCIGART_TABLE_SIZE,4,2    ## @R128_PCIGART_TABLE_SIZE
	.comm	_DRM_ATI_GART_PCI,4,2           ## @DRM_ATI_GART_PCI
L_.str.11:                              ## @.str.11
	.asciz	"failed to init PCI GART!\n"

	.comm	_R128_PCI_GART_PAGE,4,2         ## @R128_PCI_GART_PAGE
L_.str.12:                              ## @.str.12
	.asciz	"Failed to load firmware!\n"

	.no_dead_strip	_r128_do_init_cce
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.r128_do_init_cce
l_switch.table.r128_do_init_cce:
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	192                             ## 0xc0
	.long	64                              ## 0x40
	.long	128                             ## 0x80

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_do_init_cce
_r128_do_init_cce:                      ; @r128_do_init_cce
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_14
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #216
	bl	_kzalloc
	cbz	x0, LBB0_34
; %bb.3:
	mov	x20, x0
	ldr	x8, [x21, #72]
	str	x8, [x0, #104]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_5:
	ldr	w8, [x21]
	str	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
Lloh7:
	adrp	x9, _R128_MAX_USEC_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _R128_MAX_USEC_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.7:
	ldr	w8, [x21, #4]
	str	w8, [x20, #4]
	add	x0, x20, #208
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x21, #4]
	sub	w8, w8, #132
	cmp	w8, #6
	b.hs	LBB0_9
; %bb.8:
	mov	w9, #43
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_17
LBB0_9:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_13
LBB0_10:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	_DRM_ERROR
LBB0_13:
	str	x20, [x19]
	mov	x0, x19
	bl	_r128_do_cleanup_cce
LBB0_14:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh18:
	adrp	x9, l_switch.table.r128_do_init_cce@PAGE
Lloh19:
	add	x9, x9, l_switch.table.r128_do_init_cce@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x20, #8]
	ldr	w8, [x21, #8]
Lloh20:
	adrp	x9, _R128_DATATYPE_RGB565@GOTPAGE
Lloh21:
	ldr	x9, [x9, _R128_DATATYPE_RGB565@GOTPAGEOFF]
Lloh22:
	adrp	x10, _R128_DATATYPE_ARGB8888@GOTPAGE
Lloh23:
	ldr	x10, [x10, _R128_DATATYPE_ARGB8888@GOTPAGEOFF]
	cmp	w8, #16
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x20, #200]
	ldp	w8, w11, [x21, #12]
	stp	w8, w11, [x20, #12]
	ldr	w12, [x21, #28]
	cmp	w12, #16
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	ldur	d0, [x21, #20]
	str	x9, [x20, #192]
	ldr	d1, [x21, #32]
	mov.s	w9, v0[1]
	fmov	w10, s0
	mov.d	v0[1], v1[0]
	stur	q0, [x20, #20]
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	ldr	w12, [x21, #40]
	lsl	w11, w11, #18
	and	w11, w11, #0xffe00000
	orr	w8, w11, w8, asr #5
	stp	w12, w8, [x20, #36]
	add	w8, w9, #7
	cmp	w9, #0
	csel	w8, w8, w9, lt
	lsl	w8, w8, #18
	and	w8, w8, #0xffe00000
	orr	w8, w8, w10, asr #5
	mov.s	w9, v1[1]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	lsl	w9, w9, #18
	and	w9, w9, #0xffe00000
	fmov	w10, s1
	orr	w10, w9, w10, asr #5
Lloh24:
	adrp	x11, _R128_DST_TILE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _R128_DST_TILE@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w10, w10, w11
	stp	w8, w10, [x20, #44]
	orr	w8, w9, w12, asr #5
	str	w8, [x20, #52]
	mov	x0, x19
	bl	_drm_getsarea
	str	x0, [x20, #168]
	cbz	x0, LBB0_28
; %bb.18:
	ldr	w1, [x21, #68]
	mov	x0, x19
	bl	_drm_core_findmap
	str	x0, [x20, #184]
	cbz	x0, LBB0_29
; %bb.19:
	ldr	w1, [x21, #64]
	mov	x0, x19
	bl	_drm_core_findmap
	str	x0, [x20, #152]
	cbz	x0, LBB0_30
; %bb.20:
	ldr	w1, [x21, #60]
	mov	x0, x19
	bl	_drm_core_findmap
	str	x0, [x20, #160]
	cbz	x0, LBB0_31
; %bb.21:
	ldr	w1, [x21, #56]
	str	w1, [x19, #32]
	mov	x0, x19
	bl	_drm_core_findmap
	str	x0, [x19, #24]
	cbz	x0, LBB0_32
; %bb.22:
	ldr	x8, [x20, #104]
	cbnz	x8, LBB0_25
; %bb.23:
	ldr	w1, [x21, #52]
	mov	x0, x19
	bl	_drm_core_findmap
	str	x0, [x20, #176]
	cbz	x0, LBB0_35
; %bb.24:
	ldr	x0, [x19, #24]
LBB0_25:
	ldr	x8, [x20, #168]
	ldr	x8, [x8]
	ldpsw	x9, x10, [x21, #44]
	add	x8, x8, x9, lsl #2
	str	x8, [x20, #112]
	ldp	x8, x9, [x20, #152]
	ldr	x11, [x8, #8]
	str	x11, [x8]
	ldr	x11, [x9, #8]
	str	x11, [x9]
	ldr	x9, [x0, #8]
	str	x9, [x0]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	str	x9, [x20, #56]
	ldr	x8, [x8]
	and	x9, x10, #0xfffffffffffffffc
	add	x9, x8, x9
	stp	x9, x8, [x20, #136]
	str	w10, [x20, #120]
	add	w8, w10, #7
	cmp	w10, #0
	csel	w8, w8, w10, lt
	asr	w0, w8, #3
	bl	_drm_order
	ldr	w8, [x20, #120]
	asr	w8, w8, #2
	sub	w8, w8, #1
	mov	w9, #128
	str	w8, [x20, #124]
	stp	w9, w0, [x20, #128]
	ldr	x8, [x20, #112]
	str	xzr, [x8, #8]
Lloh27:
	adrp	x8, _R128_LAST_FRAME_REG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _R128_LAST_FRAME_REG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_R128_WRITE
	ldr	x8, [x20, #112]
	str	xzr, [x8]
Lloh30:
	adrp	x8, _R128_LAST_DISPATCH_REG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _R128_LAST_DISPATCH_REG@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_R128_WRITE
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x20
	str	xzr, [x1, #64]!
Lloh33:
	adrp	x8, _DRM_ATI_GART_MAIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DRM_ATI_GART_MAIN@GOTPAGEOFF]
	str	w0, [x1, #32]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _R128_PCIGART_TABLE_SIZE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _R128_PCIGART_TABLE_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
	str	xzr, [x1, #16]
Lloh39:
	adrp	x8, _DRM_ATI_GART_PCI@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DRM_ATI_GART_PCI@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	mov	x0, x19
	bl	_drm_ati_pcigart_init
	cbz	w0, LBB0_33
; %bb.26:
Lloh42:
	adrp	x8, _R128_PCI_GART_PAGE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _R128_PCI_GART_PAGE@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	x1, [x20, #64]
	bl	_R128_WRITE
	mov	x0, x19
	mov	x1, x20
	bl	_r128_cce_init_ring_buffer
	mov	x0, x20
	bl	_r128_cce_load_microcode
	mov	x21, x0
	str	x20, [x19]
	mov	x0, x19
	bl	_r128_do_engine_reset
	cbz	w21, LBB0_16
; %bb.27:
Lloh45:
	adrp	x0, l_.str.12@PAGE
Lloh46:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_r128_do_cleanup_cce
	b	LBB0_16
LBB0_28:
Lloh47:
	adrp	x0, l_.str.5@PAGE
Lloh48:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_29:
Lloh49:
	adrp	x0, l_.str.6@PAGE
Lloh50:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_30:
Lloh51:
	adrp	x0, l_.str.7@PAGE
Lloh52:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_31:
Lloh53:
	adrp	x0, l_.str.8@PAGE
Lloh54:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_32:
Lloh55:
	adrp	x0, l_.str.9@PAGE
Lloh56:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_12
LBB0_33:
Lloh57:
	adrp	x0, l_.str.11@PAGE
Lloh58:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_ERROR
	str	x20, [x19]
	mov	x0, x19
	bl	_r128_do_cleanup_cce
LBB0_34:
Lloh59:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_35:
Lloh61:
	adrp	x0, l_.str.10@PAGE
Lloh62:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"called when already initialized\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"PCI GART memory not allocated!\n"

	.comm	_R128_MAX_USEC_TIMEOUT,4,2      ; @R128_MAX_USEC_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"TIMEOUT problem!\n"

l_.str.4:                               ; @.str.4
	.asciz	"Bad cce_mode!\n"

	.comm	_R128_DATATYPE_RGB565,8,3       ; @R128_DATATYPE_RGB565
	.comm	_R128_DATATYPE_ARGB8888,8,3     ; @R128_DATATYPE_ARGB8888
	.comm	_R128_DST_TILE,4,2              ; @R128_DST_TILE
l_.str.5:                               ; @.str.5
	.asciz	"could not find sarea!\n"

l_.str.6:                               ; @.str.6
	.asciz	"could not find mmio region!\n"

l_.str.7:                               ; @.str.7
	.asciz	"could not find cce ring region!\n"

l_.str.8:                               ; @.str.8
	.asciz	"could not find ring read pointer!\n"

l_.str.9:                               ; @.str.9
	.asciz	"could not find dma buffer region!\n"

l_.str.10:                              ; @.str.10
	.asciz	"could not find agp texture region!\n"

	.comm	_R128_LAST_FRAME_REG,4,2        ; @R128_LAST_FRAME_REG
	.comm	_R128_LAST_DISPATCH_REG,4,2     ; @R128_LAST_DISPATCH_REG
	.comm	_DRM_ATI_GART_MAIN,4,2          ; @DRM_ATI_GART_MAIN
	.comm	_R128_PCIGART_TABLE_SIZE,4,2    ; @R128_PCIGART_TABLE_SIZE
	.comm	_DRM_ATI_GART_PCI,4,2           ; @DRM_ATI_GART_PCI
l_.str.11:                              ; @.str.11
	.asciz	"failed to init PCI GART!\n"

	.comm	_R128_PCI_GART_PAGE,4,2         ; @R128_PCI_GART_PAGE
l_.str.12:                              ; @.str.12
	.asciz	"Failed to load firmware!\n"

	.no_dead_strip	_r128_do_init_cce
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.r128_do_init_cce
l_switch.table.r128_do_init_cce:
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	192                             ; 0xc0
	.long	64                              ; 0x40
	.long	128                             ; 0x80

.subsections_via_symbols
