	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_shaders
_set_shaders:                           ## @set_shaders
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	(%rbx), %rax
	movq	8(%r15), %rcx
	movslq	(%rcx), %r12
	movq	_r6xx_vs_size@GOTPCREL(%rip), %r14
	addq	(%rax), %r12
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_r6xx_vs@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_r6xx_ps_size@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_r6xx_ps@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_cpu_to_le32
	movl	%eax, 256(%r12,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	8(%r15), %rax
	movl	$512, 4(%rax)                   ## imm = 0x200
	movl	(%r15), %ebx
	movl	(%rax), %r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leal	(%r14,%rbx), %r15d
	movl	$21, %edi
	callq	_BEGIN_RING
	movq	_R600_IT_SET_CONTEXT_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_START_VS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_R600_SET_CONTEXT_REG_OFFSET@GOTPCREL(%rip), %r13
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	movl	%r15d, %edi
	sarl	$8, %edi
	callq	_OUT_RING
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_RESOURCES_VS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	movl	$1, %edi
	callq	_OUT_RING
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_CF_OFFSET_VS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_START_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	leal	(%r14,%rbx), %edi
	addl	$256, %edi                      ## imm = 0x100
	sarl	$8, %edi
	callq	_OUT_RING
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_RESOURCES_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	movl	$268435457, %edi                ## imm = 0x10000001
	callq	_OUT_RING
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_EXPORTS_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	movl	$2, %edi
	callq	_OUT_RING
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R600_SQ_PGM_CF_OFFSET_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	(%r13), %edi
	sarl	$2, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movq	_R600_SH_ACTION_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$512, %edx                      ## imm = 0x200
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cp_set_surface_sync            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_r6xx_vs_size,4,2               ## @r6xx_vs_size
	.comm	_r6xx_vs,8,3                    ## @r6xx_vs
	.comm	_r6xx_ps_size,4,2               ## @r6xx_ps_size
	.comm	_r6xx_ps,8,3                    ## @r6xx_ps
	.comm	_R600_IT_SET_CONTEXT_REG,4,2    ## @R600_IT_SET_CONTEXT_REG
	.comm	_R600_SQ_PGM_START_VS,4,2       ## @R600_SQ_PGM_START_VS
	.comm	_R600_SET_CONTEXT_REG_OFFSET,4,2 ## @R600_SET_CONTEXT_REG_OFFSET
	.comm	_R600_SQ_PGM_RESOURCES_VS,4,2   ## @R600_SQ_PGM_RESOURCES_VS
	.comm	_R600_SQ_PGM_CF_OFFSET_VS,4,2   ## @R600_SQ_PGM_CF_OFFSET_VS
	.comm	_R600_SQ_PGM_START_PS,4,2       ## @R600_SQ_PGM_START_PS
	.comm	_R600_SQ_PGM_RESOURCES_PS,4,2   ## @R600_SQ_PGM_RESOURCES_PS
	.comm	_R600_SQ_PGM_EXPORTS_PS,4,2     ## @R600_SQ_PGM_EXPORTS_PS
	.comm	_R600_SQ_PGM_CF_OFFSET_PS,4,2   ## @R600_SQ_PGM_CF_OFFSET_PS
	.comm	_R600_SH_ACTION_ENA,4,2         ## @R600_SH_ACTION_ENA
	.no_dead_strip	_set_shaders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_shaders
_set_shaders:                           ; @set_shaders
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldrsw	x9, [x9]
	add	x20, x8, x9
Lloh2:
	adrp	x21, _r6xx_vs_size@GOTPAGE
Lloh3:
	ldr	x21, [x21, _r6xx_vs_size@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh4:
	adrp	x23, _r6xx_vs@GOTPAGE
Lloh5:
	ldr	x23, [x23, _r6xx_vs@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsl	x24, x22, #2
	ldr	w0, [x8, x24]
	bl	_cpu_to_le32
	str	w0, [x20, x24]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
Lloh6:
	adrp	x21, _r6xx_ps_size@GOTPAGE
Lloh7:
	ldr	x21, [x21, _r6xx_ps_size@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	add	x20, x20, #256
Lloh8:
	adrp	x23, _r6xx_ps@GOTPAGE
Lloh9:
	ldr	x23, [x23, _r6xx_ps@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsl	x24, x22, #2
	ldr	w0, [x8, x24]
	bl	_cpu_to_le32
	str	w0, [x20, x24]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x8, [x19, #8]
	mov	w9, #512
	str	w9, [x8, #4]
	ldr	w9, [x19]
	ldr	w8, [x8]
	add	w20, w8, w9
	mov	w0, #21
	bl	_BEGIN_RING
Lloh10:
	adrp	x21, _R600_IT_SET_CONTEXT_REG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _R600_IT_SET_CONTEXT_REG@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh12:
	adrp	x8, _R600_SQ_PGM_START_VS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R600_SQ_PGM_START_VS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x22, _R600_SET_CONTEXT_REG_OFFSET@GOTPAGE
Lloh16:
	ldr	x22, [x22, _R600_SET_CONTEXT_REG_OFFSET@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	asr	w0, w20, #8
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh17:
	adrp	x8, _R600_SQ_PGM_RESOURCES_VS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R600_SQ_PGM_RESOURCES_VS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	mov	w0, #1
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh20:
	adrp	x8, _R600_SQ_PGM_CF_OFFSET_VS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R600_SQ_PGM_CF_OFFSET_VS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh23:
	adrp	x8, _R600_SQ_PGM_START_PS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R600_SQ_PGM_START_PS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	add	w8, w20, #256
	asr	w0, w8, #8
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh26:
	adrp	x8, _R600_SQ_PGM_RESOURCES_PS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R600_SQ_PGM_RESOURCES_PS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	mov	w0, #1
	movk	w0, #4096, lsl #16
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh29:
	adrp	x8, _R600_SQ_PGM_EXPORTS_PS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R600_SQ_PGM_EXPORTS_PS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	mov	w0, #2
	bl	_OUT_RING
	ldr	w0, [x21]
	mov	w1, #1
	bl	_CP_PACKET3
	bl	_OUT_RING
Lloh32:
	adrp	x8, _R600_SQ_PGM_CF_OFFSET_PS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _R600_SQ_PGM_CF_OFFSET_PS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w0, w8, #2
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	bl	_ADVANCE_RING
Lloh35:
	adrp	x8, _R600_SH_ACTION_ENA@GOTPAGE
Lloh36:
	ldr	x8, [x8, _R600_SH_ACTION_ENA@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #512
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cp_set_surface_sync
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_r6xx_vs_size,4,2               ; @r6xx_vs_size
	.comm	_r6xx_vs,8,3                    ; @r6xx_vs
	.comm	_r6xx_ps_size,4,2               ; @r6xx_ps_size
	.comm	_r6xx_ps,8,3                    ; @r6xx_ps
	.comm	_R600_IT_SET_CONTEXT_REG,4,2    ; @R600_IT_SET_CONTEXT_REG
	.comm	_R600_SQ_PGM_START_VS,4,2       ; @R600_SQ_PGM_START_VS
	.comm	_R600_SET_CONTEXT_REG_OFFSET,4,2 ; @R600_SET_CONTEXT_REG_OFFSET
	.comm	_R600_SQ_PGM_RESOURCES_VS,4,2   ; @R600_SQ_PGM_RESOURCES_VS
	.comm	_R600_SQ_PGM_CF_OFFSET_VS,4,2   ; @R600_SQ_PGM_CF_OFFSET_VS
	.comm	_R600_SQ_PGM_START_PS,4,2       ; @R600_SQ_PGM_START_PS
	.comm	_R600_SQ_PGM_RESOURCES_PS,4,2   ; @R600_SQ_PGM_RESOURCES_PS
	.comm	_R600_SQ_PGM_EXPORTS_PS,4,2     ; @R600_SQ_PGM_EXPORTS_PS
	.comm	_R600_SQ_PGM_CF_OFFSET_PS,4,2   ; @R600_SQ_PGM_CF_OFFSET_PS
	.comm	_R600_SH_ACTION_ENA,4,2         ; @R600_SH_ACTION_ENA
	.no_dead_strip	_set_shaders
.subsections_via_symbols
