	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_blit_init            ## -- Begin function evergreen_blit_init
	.p2align	4, 0x90
_evergreen_blit_init:                   ## @evergreen_blit_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_set_render_target@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rdi)
	movq	_cp_set_surface_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rdi)
	movq	_set_shaders@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rdi)
	movq	_set_vtx_resource@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rdi)
	movq	_set_tex_resource@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rdi)
	movq	_set_scissors@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_draw_auto@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rdi)
	movq	_set_default_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movl	$100, 12(%rdi)
	movq	(%rdi), %rax
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %r13
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	setge	%cl
	leal	74(%rcx,%rcx,8), %eax
	movl	%eax, 16(%rdi)
	movq	$16384, 20(%rdi)                ## imm = 0x4000
	jge	LBB0_1
## %bb.2:
	movq	_evergreen_default_size@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_cayman_default_size@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movl	%r15d, 28(%r14)
	testb	$15, %r15b
	je	LBB0_4
## %bb.5:
	movl	%r15d, %r12d
	negb	%r12b
	xorl	%ebx, %ebx
	andb	$15, %r12b
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_PACKET2
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -112(%rbp,%rbx,4)
	incq	%rbx
	movl	%ebx, %eax
	andb	$15, %al
	cmpb	%r12b, %al
	jne	LBB0_6
## %bb.7:
	addl	%ebx, %r15d
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	shll	$2, %r15d
	movl	%r15d, %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 32(%r14)
	movq	(%r14), %rcx
	cmpq	(%r13), %rcx
	jge	LBB0_9
## %bb.10:
	movq	_evergreen_vs_size@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_cayman_vs_size@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %ecx
	leal	(%rax,%rcx,4), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 36(%r14)
	movq	(%r14), %rcx
	cmpq	(%r13), %rcx
	jge	LBB0_12
## %bb.13:
	movq	_evergreen_ps_size@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_cayman_ps_size@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
	leal	(%rax,%rcx,4), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	movl	%eax, %r12d
	leaq	40(%r14), %r13
	cmpl	$0, 40(%r14)
	je	LBB0_15
LBB0_20:
	movl	32(%r14), %edx
	movl	36(%r14), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	callq	_DRM_DEBUG
	movl	40(%r14), %edi
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_41
## %bb.21:
	movl	(%r13), %edi
	leaq	-120(%rbp), %rsi
	callq	_radeon_bo_kmap
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_41
LBB0_15:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_radeon_bo_create
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_41
LBB0_17:
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_41
## %bb.18:
	movl	40(%r14), %edi
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	44(%r14), %rdx
	callq	_radeon_bo_pin
	movl	%eax, %r15d
	movl	40(%r14), %edi
	callq	_radeon_bo_unreserve
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.19:
	movl	80(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_41
LBB0_23:
	movq	(%r14), %rax
	movslq	24(%r14), %rdi
	addq	-120(%rbp), %rdi
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_32
## %bb.24:
	movq	_evergreen_default_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	28(%r14), %edx
	shll	$2, %edx
	callq	_memcpy_toio
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.25:
	movslq	24(%r14), %rax
	addq	-120(%rbp), %rax
	movslq	28(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	shll	$2, %ebx
	leaq	-112(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcpy_toio
LBB0_26:
	movq	_evergreen_vs_size@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_29
## %bb.27:
	xorl	%ebx, %ebx
	movq	_evergreen_vs@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_cpu_to_le32
	movslq	32(%r14), %rcx
	movl	%ebx, %edx
	andl	$-4, %edx
	addq	-120(%rbp), %rdx
	movl	%eax, (%rcx,%rdx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_28
LBB0_29:
	movq	_evergreen_ps_size@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_40
## %bb.30:
	xorl	%ebx, %ebx
	movq	_evergreen_ps@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_cpu_to_le32
	movslq	36(%r14), %rcx
	movl	%ebx, %edx
	andl	$-4, %edx
	addq	-120(%rbp), %rdx
	movl	%eax, (%rcx,%rdx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_31
	jmp	LBB0_40
LBB0_32:
	movq	_cayman_default_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	28(%r14), %edx
	shll	$2, %edx
	callq	_memcpy_toio
	testl	%ebx, %ebx
	je	LBB0_34
## %bb.33:
	movslq	24(%r14), %rax
	addq	-120(%rbp), %rax
	movslq	28(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	shll	$2, %ebx
	leaq	-112(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcpy_toio
LBB0_34:
	movq	_cayman_vs_size@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_37
## %bb.35:
	xorl	%ebx, %ebx
	movq	_cayman_vs@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_cpu_to_le32
	movslq	32(%r14), %rcx
	movl	%ebx, %edx
	andl	$-4, %edx
	addq	-120(%rbp), %rdx
	movl	%eax, (%rcx,%rdx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_36
LBB0_37:
	movq	_cayman_ps_size@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_40
## %bb.38:
	xorl	%ebx, %ebx
	movq	_cayman_ps@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_cpu_to_le32
	movslq	36(%r14), %rcx
	movl	%ebx, %edx
	andl	$-4, %edx
	addq	-120(%rbp), %rdx
	movl	%eax, (%rcx,%rdx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_39
LBB0_40:
	movl	40(%r14), %edi
	callq	_radeon_bo_kunmap
	movl	40(%r14), %edi
	callq	_radeon_bo_unreserve
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_radeon_ttm_set_active_vram_size
	xorl	%r15d, %r15d
LBB0_41:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_set_render_target,4,2          ## @set_render_target
	.comm	_cp_set_surface_sync,4,2        ## @cp_set_surface_sync
	.comm	_set_shaders,4,2                ## @set_shaders
	.comm	_set_vtx_resource,4,2           ## @set_vtx_resource
	.comm	_set_tex_resource,4,2           ## @set_tex_resource
	.comm	_set_scissors,4,2               ## @set_scissors
	.comm	_draw_auto,4,2                  ## @draw_auto
	.comm	_set_default_state,4,2          ## @set_default_state
	.comm	_CHIP_CAYMAN,8,3                ## @CHIP_CAYMAN
	.comm	_evergreen_default_size,4,2     ## @evergreen_default_size
	.comm	_cayman_default_size,4,2        ## @cayman_default_size
	.comm	_evergreen_vs_size,4,2          ## @evergreen_vs_size
	.comm	_cayman_vs_size,4,2             ## @cayman_vs_size
	.comm	_evergreen_ps_size,4,2          ## @evergreen_ps_size
	.comm	_cayman_ps_size,4,2             ## @cayman_ps_size
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ## @RADEON_GEM_DOMAIN_VRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"evergreen failed to allocate shader\n"

L_.str.1:                               ## @.str.1
	.asciz	"(%d) pin blit object failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"evergreen blit allocated bo %08x vs %08x ps %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to map blit object %d\n"

	.comm	_evergreen_default_state,8,3    ## @evergreen_default_state
	.comm	_evergreen_vs,8,3               ## @evergreen_vs
	.comm	_evergreen_ps,8,3               ## @evergreen_ps
	.comm	_cayman_default_state,8,3       ## @cayman_default_state
	.comm	_cayman_vs,8,3                  ## @cayman_vs
	.comm	_cayman_ps,8,3                  ## @cayman_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function evergreen_blit_init
lCPI0_0:
	.long	16384                           ; 0x4000
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_evergreen_blit_init
	.p2align	2
_evergreen_blit_init:                   ; @evergreen_blit_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x8, _set_render_target@GOTPAGE
Lloh4:
	ldr	x8, [x8, _set_render_target@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _cp_set_surface_sync@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cp_set_surface_sync@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #72]
Lloh9:
	adrp	x8, _set_shaders@GOTPAGE
Lloh10:
	ldr	x8, [x8, _set_shaders@GOTPAGEOFF]
Lloh11:
	adrp	x9, _set_vtx_resource@GOTPAGE
Lloh12:
	ldr	x9, [x9, _set_vtx_resource@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #64]
Lloh15:
	adrp	x8, _set_tex_resource@GOTPAGE
Lloh16:
	ldr	x8, [x8, _set_tex_resource@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _set_scissors@GOTPAGE
Lloh19:
	ldr	x9, [x9, _set_scissors@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #56]
Lloh21:
	adrp	x8, _draw_auto@GOTPAGE
Lloh22:
	ldr	x8, [x8, _draw_auto@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _set_default_state@GOTPAGE
Lloh25:
	ldr	x9, [x9, _set_default_state@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	ldr	x8, [x0]
Lloh27:
	adrp	x26, _CHIP_CAYMAN@GOTPAGE
Lloh28:
	ldr	x26, [x26, _CHIP_CAYMAN@GOTPAGEOFF]
	ldr	x9, [x26]
	mov	w10, #83
Lloh29:
	adrp	x11, _evergreen_default_size@GOTPAGE
Lloh30:
	ldr	x11, [x11, _evergreen_default_size@GOTPAGEOFF]
Lloh31:
	adrp	x12, _cayman_default_size@GOTPAGE
Lloh32:
	ldr	x12, [x12, _cayman_default_size@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x12, lt
	mov	w9, #74
	csel	w9, w9, w10, lt
	mov	w10, #100
	stp	w10, w9, [x0, #12]
Lloh33:
	adrp	x9, lCPI0_0@PAGE
Lloh34:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x0, #20]
	ldr	w20, [x8]
	str	w20, [x0, #28]
	tst	w20, #0xf
	b.eq	LBB0_4
; %bb.1:
	mov	x25, #0
	neg	w8, w20
	add	x21, sp, #24
	and	w22, w8, #0xf
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x25
	mov	w0, #0
	bl	_PACKET2
	bl	_cpu_to_le32
	add	x25, x25, #1
	str	w0, [x21, x23, lsl #2]
	and	w8, w25, #0xf
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.3:
	add	w20, w20, w25
	b	LBB0_5
LBB0_4:
	mov	w25, #0
LBB0_5:
	lsl	w0, w20, #2
	mov	w1, #256
	bl	_ALIGN
	str	w0, [x19, #32]
	ldr	x8, [x19]
	ldr	x9, [x26]
Lloh35:
	adrp	x27, _evergreen_vs_size@GOTPAGE
Lloh36:
	ldr	x27, [x27, _evergreen_vs_size@GOTPAGEOFF]
Lloh37:
	adrp	x28, _cayman_vs_size@GOTPAGE
Lloh38:
	ldr	x28, [x28, _cayman_vs_size@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x27, x28, lt
	ldr	w8, [x8]
	add	w0, w0, w8, lsl #2
	mov	w1, #256
	bl	_ALIGN
	str	w0, [x19, #36]
	ldr	x8, [x19]
	ldr	x9, [x26]
Lloh39:
	adrp	x10, _evergreen_ps_size@GOTPAGE
Lloh40:
	ldr	x10, [x10, _evergreen_ps_size@GOTPAGEOFF]
Lloh41:
	adrp	x24, _cayman_ps_size@GOTPAGE
Lloh42:
	ldr	x24, [x24, _cayman_ps_size@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x24, lt
	ldr	w8, [x8]
	add	w0, w0, w8, lsl #2
	mov	w1, #256
	bl	_ALIGN
	mov	x22, x0
	mov	x20, x19
	ldr	w8, [x20, #40]!
	cbz	w8, LBB0_9
LBB0_6:
	ldp	w2, w3, [x19, #32]
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG
	ldr	w0, [x19, #40]
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_32
; %bb.7:
	ldr	w0, [x20]
	add	x1, sp, #16
	bl	_radeon_bo_kmap
	cbz	w0, LBB0_14
; %bb.8:
	mov	x21, x0
	str	x21, [sp]
Lloh45:
	adrp	x0, l_.str.3@PAGE
Lloh46:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_32
LBB0_9:
Lloh47:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
Lloh50:
	adrp	x23, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh51:
	ldr	x23, [x23, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #1
	mov	x5, #0
	mov	x6, x20
	bl	_radeon_bo_create
	cbz	w0, LBB0_11
; %bb.10:
	mov	x21, x0
Lloh52:
	adrp	x0, l_.str@PAGE
Lloh53:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_32
LBB0_11:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_32
; %bb.12:
	ldr	w0, [x19, #40]
	ldr	w1, [x23]
	add	x2, x19, #44
	bl	_radeon_bo_pin
	mov	x21, x0
	ldr	w0, [x19, #40]
	bl	_radeon_bo_unreserve
	cbz	w21, LBB0_6
; %bb.13:
	ldr	w0, [x19, #80]
Lloh54:
	adrp	x1, l_.str.1@PAGE
Lloh55:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_32
LBB0_14:
	ldr	x8, [x19]
	ldr	x9, [x26]
	ldr	x10, [sp, #16]
	ldrsw	x11, [x19, #24]
	add	x0, x10, x11
	cmp	x8, x9
	b.ge	LBB0_23
; %bb.15:
Lloh56:
	adrp	x8, _evergreen_default_state@GOTPAGE
Lloh57:
	ldr	x8, [x8, _evergreen_default_state@GOTPAGEOFF]
Lloh58:
	ldr	x1, [x8]
	ldr	w8, [x19, #28]
	lsl	w2, w8, #2
	bl	_memcpy_toio
	cbz	w25, LBB0_17
; %bb.16:
	ldr	x8, [sp, #16]
	ldpsw	x9, x10, [x19, #24]
	add	x8, x8, x9
	add	x0, x8, x10, lsl #2
	lsl	w2, w25, #2
	add	x1, sp, #24
	bl	_memcpy_toio
LBB0_17:
	ldr	w8, [x27]
	cmp	w8, #1
Lloh59:
	adrp	x23, _evergreen_ps_size@GOTPAGE
Lloh60:
	ldr	x23, [x23, _evergreen_ps_size@GOTPAGEOFF]
	b.lt	LBB0_20
; %bb.18:
	mov	x20, #0
	mov	x21, #0
Lloh61:
	adrp	x22, _evergreen_vs@GOTPAGE
Lloh62:
	ldr	x22, [x22, _evergreen_vs@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x20]
	bl	_cpu_to_le32
	ldr	x8, [sp, #16]
	ldrsw	x9, [x19, #32]
	and	x10, x20, #0xfffffffc
	add	x8, x10, x8
	str	w0, [x8, x9]
	add	x21, x21, #1
	ldrsw	x8, [x27]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_19
LBB0_20:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.21:
	mov	x20, #0
	mov	x21, #0
Lloh63:
	adrp	x22, _evergreen_ps@GOTPAGE
Lloh64:
	ldr	x22, [x22, _evergreen_ps@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x20]
	bl	_cpu_to_le32
	ldr	x8, [sp, #16]
	ldrsw	x9, [x19, #36]
	and	x10, x20, #0xfffffffc
	add	x8, x10, x8
	str	w0, [x8, x9]
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_22
	b	LBB0_31
LBB0_23:
Lloh65:
	adrp	x8, _cayman_default_state@GOTPAGE
Lloh66:
	ldr	x8, [x8, _cayman_default_state@GOTPAGEOFF]
Lloh67:
	ldr	x1, [x8]
	ldr	w8, [x19, #28]
	lsl	w2, w8, #2
	bl	_memcpy_toio
	cbz	w25, LBB0_25
; %bb.24:
	ldr	x8, [sp, #16]
	ldpsw	x9, x10, [x19, #24]
	add	x8, x8, x9
	add	x0, x8, x10, lsl #2
	lsl	w2, w25, #2
	add	x1, sp, #24
	bl	_memcpy_toio
LBB0_25:
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.26:
	mov	x20, #0
	mov	x21, #0
Lloh68:
	adrp	x22, _cayman_vs@GOTPAGE
Lloh69:
	ldr	x22, [x22, _cayman_vs@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x20]
	bl	_cpu_to_le32
	ldr	x8, [sp, #16]
	ldrsw	x9, [x19, #32]
	and	x10, x20, #0xfffffffc
	add	x8, x10, x8
	str	w0, [x8, x9]
	add	x21, x21, #1
	ldrsw	x8, [x28]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_27
LBB0_28:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.29:
	mov	x20, #0
	mov	x21, #0
Lloh70:
	adrp	x22, _cayman_ps@GOTPAGE
Lloh71:
	ldr	x22, [x22, _cayman_ps@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x20]
	bl	_cpu_to_le32
	ldr	x8, [sp, #16]
	ldrsw	x9, [x19, #36]
	and	x10, x20, #0xfffffffc
	add	x8, x10, x8
	str	w0, [x8, x9]
	add	x21, x21, #1
	ldrsw	x8, [x24]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_30
LBB0_31:
	ldr	w0, [x19, #40]
	bl	_radeon_bo_kunmap
	ldr	w0, [x19, #40]
	bl	_radeon_bo_unreserve
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_radeon_ttm_set_active_vram_size
	mov	w21, #0
LBB0_32:
	ldr	x8, [sp, #88]
Lloh72:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh73:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_set_render_target,4,2          ; @set_render_target
	.comm	_cp_set_surface_sync,4,2        ; @cp_set_surface_sync
	.comm	_set_shaders,4,2                ; @set_shaders
	.comm	_set_vtx_resource,4,2           ; @set_vtx_resource
	.comm	_set_tex_resource,4,2           ; @set_tex_resource
	.comm	_set_scissors,4,2               ; @set_scissors
	.comm	_draw_auto,4,2                  ; @draw_auto
	.comm	_set_default_state,4,2          ; @set_default_state
	.comm	_CHIP_CAYMAN,8,3                ; @CHIP_CAYMAN
	.comm	_evergreen_default_size,4,2     ; @evergreen_default_size
	.comm	_cayman_default_size,4,2        ; @cayman_default_size
	.comm	_evergreen_vs_size,4,2          ; @evergreen_vs_size
	.comm	_cayman_vs_size,4,2             ; @cayman_vs_size
	.comm	_evergreen_ps_size,4,2          ; @evergreen_ps_size
	.comm	_cayman_ps_size,4,2             ; @cayman_ps_size
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ; @RADEON_GEM_DOMAIN_VRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"evergreen failed to allocate shader\n"

l_.str.1:                               ; @.str.1
	.asciz	"(%d) pin blit object failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"evergreen blit allocated bo %08x vs %08x ps %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to map blit object %d\n"

	.comm	_evergreen_default_state,8,3    ; @evergreen_default_state
	.comm	_evergreen_vs,8,3               ; @evergreen_vs
	.comm	_evergreen_ps,8,3               ; @evergreen_ps
	.comm	_cayman_default_state,8,3       ; @cayman_default_state
	.comm	_cayman_vs,8,3                  ; @cayman_vs
	.comm	_cayman_ps,8,3                  ; @cayman_ps
.subsections_via_symbols
