	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v6_0_raster_config
_gfx_v6_0_raster_config:                ## @gfx_v6_0_raster_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %edx
	shll	%cl, %edx
	movq	_PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %eax
	shll	%cl, %eax
	orl	%edx, %eax
	movq	_PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT@GOTPCREL(%rip), %rdx
	movq	_PA_SC_RASTER_CONFIG__SE_MAP__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$2, %r8d
	shll	%cl, %r8d
	movb	(%rdx), %cl
	btsl	%ecx, %eax
	movq	_PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$2, %edx
	shll	%cl, %edx
	movl	$2, %edi
	orl	%r8d, %edx
	movq	_PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	orl	%eax, %edi
	orl	%edi, (%rsi)
LBB0_6:
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_2:
	movq	_PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT@GOTPCREL(%rip), %rax
	movq	_PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$2, %edx
	shll	%cl, %edx
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	orl	%edx, (%rsi)
	popq	%rbp
	retq
LBB0_3:
	movq	_PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__SE_MAP__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__SE_MAP__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT,4,2 ## @PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown asic: 0x%x\n"

	.no_dead_strip	_gfx_v6_0_raster_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v6_0_raster_config
_gfx_v6_0_raster_config:                ; @gfx_v6_0_raster_config
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #2
	lsl	w8, w9, w8
Lloh5:
	adrp	x10, _PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	orr	w8, w10, w8
Lloh8:
	adrp	x10, _PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh11:
	adrp	x10, _PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w10, w11, w10
	orr	w8, w8, w10
Lloh14:
	adrp	x10, _PA_SC_RASTER_CONFIG__SE_MAP__SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__SE_MAP__SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w10, w9, w10
Lloh17:
	adrp	x11, _PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT@GOTPAGE
Lloh18:
	ldr	x11, [x11, _PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh19:
	ldr	w10, [x11]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh20:
	adrp	x10, _PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	b	_DRM_ERROR
LBB0_4:
Lloh24:
	adrp	x8, _PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh27:
	adrp	x10, _PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	mov	w11, #2
	lsl	w10, w11, w10
	orr	w8, w10, w8
Lloh30:
	adrp	x10, _PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [x1]
	orr	w8, w8, w9
	b	LBB0_7
LBB0_6:
Lloh32:
	adrp	x8, _PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x1]
	orr	w8, w9, w8
LBB0_7:
	str	w8, [x1]
LBB0_8:
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__RB_XSEL2__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__RB_XSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__PKR_MAP__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__PKR_YSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__SE_MAP__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__SE_MAP__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__SE_XSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__SE_YSEL__SHIFT
	.comm	_PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT,4,2 ; @PA_SC_RASTER_CONFIG__RB_YSEL__SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown asic: 0x%x\n"

	.no_dead_strip	_gfx_v6_0_raster_config
.subsections_via_symbols
