	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_oldps_register
_map_oldps_register:                    ## @map_oldps_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.1:
	testl	%esi, %esi
	je	LBB0_11
## %bb.2:
	movl	4(%rbx), %esi
	cmpq	$7, %rsi
	ja	LBB0_16
## %bb.3:
	movq	_BWRITERSPR_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_T0_VARYING@GOTPCREL(%rip), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_4:
	movq	_T1_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_17:
	addq	$4, %rbx
	movq	%rbx, %r14
LBB0_18:
	movl	(%r14), %ecx
	shlq	$32, %rcx
	movl	%eax, %eax
	orq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	4(%rbx), %esi
	cmpq	$3, %rsi
	ja	LBB0_16
## %bb.12:
	movq	_BWRITERSPR_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_T0_REG@GOTPCREL(%rip), %r14
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_13:
	movq	_T1_REG@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_16:
	leaq	4(%rbx), %r14
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FIXME
	movl	(%rbx), %eax
	jmp	LBB0_18
LBB0_5:
	movq	_T2_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_6:
	movq	_T3_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_7:
	movq	_T4_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_8:
	movq	_T5_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_9:
	movq	_T6_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_10:
	movq	_T7_VARYING@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_14:
	movq	_T2_REG@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_15:
	movq	_T3_REG@GOTPCREL(%rip), %r14
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
LJTI0_1:
	.long	L0_1_set_18
	.long	L0_1_set_13
	.long	L0_1_set_14
	.long	L0_1_set_15
	.end_data_region
                                        ## -- End function
	.comm	_BWRITERSPR_INPUT,4,2           ## @BWRITERSPR_INPUT
	.comm	_T0_VARYING,4,2                 ## @T0_VARYING
	.comm	_T1_VARYING,4,2                 ## @T1_VARYING
	.comm	_T2_VARYING,4,2                 ## @T2_VARYING
	.comm	_T3_VARYING,4,2                 ## @T3_VARYING
	.comm	_T4_VARYING,4,2                 ## @T4_VARYING
	.comm	_T5_VARYING,4,2                 ## @T5_VARYING
	.comm	_T6_VARYING,4,2                 ## @T6_VARYING
	.comm	_T7_VARYING,4,2                 ## @T7_VARYING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected TEXTURE register t%u\n"

	.comm	_BWRITERSPR_TEMP,4,2            ## @BWRITERSPR_TEMP
	.comm	_T0_REG,4,2                     ## @T0_REG
	.comm	_T1_REG,4,2                     ## @T1_REG
	.comm	_T2_REG,4,2                     ## @T2_REG
	.comm	_T3_REG,4,2                     ## @T3_REG
	.no_dead_strip	_map_oldps_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_oldps_register
_map_oldps_register:                    ; @map_oldps_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x19
	cbz	w1, LBB0_7
; %bb.2:
	ldr	w1, [x20, #4]!
	cmp	w1, #7
	b.hi	LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _BWRITERSPR_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BWRITERSPR_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _T0_VARYING@GOTPAGE
Lloh4:
	ldr	x20, [x20, _T0_VARYING@GOTPAGEOFF]
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh7:
	adrp	x20, _T1_VARYING@GOTPAGE
Lloh8:
	ldr	x20, [x20, _T1_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x20, x19, #4
LBB0_6:
	ldr	w9, [x20]
	mov	w0, w8
	bfi	x0, x9, #32, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w1, [x20, #4]!
	cmp	w1, #3
	b.hi	LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _BWRITERSPR_TEMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BWRITERSPR_TEMP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x20, _T0_REG@GOTPAGE
Lloh13:
	ldr	x20, [x20, _T0_REG@GOTPAGEOFF]
Lloh14:
	adrp	x9, lJTI0_1@PAGE
Lloh15:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh16:
	adrp	x20, _T1_REG@GOTPAGE
Lloh17:
	ldr	x20, [x20, _T1_REG@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FIXME
	ldr	w8, [x19]
	b	LBB0_6
LBB0_11:
Lloh20:
	adrp	x20, _T2_VARYING@GOTPAGE
Lloh21:
	ldr	x20, [x20, _T2_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
Lloh22:
	adrp	x20, _T3_VARYING@GOTPAGE
Lloh23:
	ldr	x20, [x20, _T3_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
Lloh24:
	adrp	x20, _T4_VARYING@GOTPAGE
Lloh25:
	ldr	x20, [x20, _T4_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
Lloh26:
	adrp	x20, _T5_VARYING@GOTPAGE
Lloh27:
	ldr	x20, [x20, _T5_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
Lloh28:
	adrp	x20, _T6_VARYING@GOTPAGE
Lloh29:
	ldr	x20, [x20, _T6_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
Lloh30:
	adrp	x20, _T7_VARYING@GOTPAGE
Lloh31:
	ldr	x20, [x20, _T7_VARYING@GOTPAGEOFF]
	b	LBB0_6
LBB0_17:
Lloh32:
	adrp	x20, _T2_REG@GOTPAGE
Lloh33:
	ldr	x20, [x20, _T2_REG@GOTPAGEOFF]
	b	LBB0_6
LBB0_18:
Lloh34:
	adrp	x20, _T3_REG@GOTPAGE
Lloh35:
	ldr	x20, [x20, _T3_REG@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_18-LBB0_6)>>2
                                        ; -- End function
	.comm	_BWRITERSPR_INPUT,4,2           ; @BWRITERSPR_INPUT
	.comm	_T0_VARYING,4,2                 ; @T0_VARYING
	.comm	_T1_VARYING,4,2                 ; @T1_VARYING
	.comm	_T2_VARYING,4,2                 ; @T2_VARYING
	.comm	_T3_VARYING,4,2                 ; @T3_VARYING
	.comm	_T4_VARYING,4,2                 ; @T4_VARYING
	.comm	_T5_VARYING,4,2                 ; @T5_VARYING
	.comm	_T6_VARYING,4,2                 ; @T6_VARYING
	.comm	_T7_VARYING,4,2                 ; @T7_VARYING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected TEXTURE register t%u\n"

	.comm	_BWRITERSPR_TEMP,4,2            ; @BWRITERSPR_TEMP
	.comm	_T0_REG,4,2                     ; @T0_REG
	.comm	_T1_REG,4,2                     ; @T1_REG
	.comm	_T2_REG,4,2                     ; @T2_REG
	.comm	_T3_REG,4,2                     ; @T3_REG
	.no_dead_strip	_map_oldps_register
.subsections_via_symbols
