	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_ps13_temp
_map_ps13_temp:                         ## @map_ps13_temp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %ecx
	movq	_T0_REG@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movq	_D3DSPR_TEXTURE@GOTPCREL(%rip), %rax
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.1:
	movq	_T1_REG@GOTPCREL(%rip), %rdx
	movl	$1, %esi
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.2:
	movq	_T2_REG@GOTPCREL(%rip), %rdx
	movl	$2, %esi
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.3:
	movq	_T3_REG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	_D3DSPR_TEMP@GOTPCREL(%rip), %rax
	cmoveq	_D3DSPR_TEXTURE@GOTPCREL(%rip), %rax
	movl	$3, %esi
	cmovnel	%ecx, %esi
LBB0_4:
	movl	(%rax), %edi
	popq	%rbp
	jmp	_d3dsp_register                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_T0_REG,4,2                     ## @T0_REG
	.comm	_D3DSPR_TEXTURE,4,2             ## @D3DSPR_TEXTURE
	.comm	_T1_REG,4,2                     ## @T1_REG
	.comm	_T2_REG,4,2                     ## @T2_REG
	.comm	_T3_REG,4,2                     ## @T3_REG
	.comm	_D3DSPR_TEMP,4,2                ## @D3DSPR_TEMP
	.no_dead_strip	_map_ps13_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_ps13_temp
_map_ps13_temp:                         ; @map_ps13_temp
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _T0_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T0_REG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _T1_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _T1_REG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.3:
	mov	w1, #1
LBB0_4:
Lloh6:
	adrp	x8, _D3DSPR_TEXTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3DSPR_TEXTURE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	_d3dsp_register
LBB0_5:
Lloh9:
	adrp	x8, _T2_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _T2_REG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x8]
Lloh12:
	adrp	x8, _D3DSPR_TEXTURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D3DSPR_TEXTURE@GOTPAGEOFF]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.6:
	mov	w1, #2
	ldr	w0, [x8]
	b	_d3dsp_register
LBB0_7:
Lloh14:
	adrp	x10, _T3_REG@GOTPAGE
Lloh15:
	ldr	x10, [x10, _T3_REG@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _D3DSPR_TEMP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _D3DSPR_TEMP@GOTPAGEOFF]
	mov	w12, #3
	cmp	w9, w10
	csel	w1, w12, w9, eq
	csel	x8, x8, x11, eq
	ldr	w0, [x8]
	b	_d3dsp_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_T0_REG,4,2                     ; @T0_REG
	.comm	_D3DSPR_TEXTURE,4,2             ; @D3DSPR_TEXTURE
	.comm	_T1_REG,4,2                     ; @T1_REG
	.comm	_T2_REG,4,2                     ; @T2_REG
	.comm	_T3_REG,4,2                     ; @T3_REG
	.comm	_D3DSPR_TEMP,4,2                ; @D3DSPR_TEMP
	.no_dead_strip	_map_ps13_temp
.subsections_via_symbols
