	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_ps_input
_map_ps_input:                          ## @map_ps_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	(%rdi), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.3:
	movl	$1, %esi
	cmpq	8(%rcx), %rax
	jne	LBB0_4
LBB0_1:
	movq	_D3DSPR_INPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movl	$1, %esi
	cmpq	8(%rcx), %rax
	je	LBB0_5
## %bb.7:
	movl	$2, %esi
	cmpq	16(%rcx), %rax
	je	LBB0_5
## %bb.8:
	movl	$3, %esi
	cmpq	24(%rcx), %rax
	je	LBB0_5
## %bb.9:
	movl	$4, %esi
	cmpq	32(%rcx), %rax
	je	LBB0_5
## %bb.10:
	movl	$5, %esi
	cmpq	40(%rcx), %rax
	je	LBB0_5
## %bb.11:
	movl	$6, %esi
	cmpq	48(%rcx), %rax
	je	LBB0_5
## %bb.12:
	movl	$7, %esi
	cmpq	56(%rcx), %rax
	jne	LBB0_13
LBB0_5:
	movq	_D3DSPR_TEXTURE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_d3dsp_register                 ## TAILCALL
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DSPR_INPUT,4,2               ## @D3DSPR_INPUT
	.comm	_D3DSPR_TEXTURE,4,2             ## @D3DSPR_TEXTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid ps 1/2 varying\n"

	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.no_dead_strip	_map_ps_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_ps_input
_map_ps_input:                          ; @map_ps_input
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	b	LBB0_4
LBB0_2:
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w1, #1
LBB0_4:
Lloh0:
	adrp	x8, _D3DSPR_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DSPR_INPUT@GOTPAGEOFF]
	b	LBB0_22
LBB0_5:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.6:
	mov	w1, #0
	b	LBB0_21
LBB0_7:
	ldr	x10, [x9, #8]
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.8:
	mov	w1, #1
	b	LBB0_21
LBB0_9:
	ldr	x10, [x9, #16]
	cmp	x8, x10
	b.ne	LBB0_11
; %bb.10:
	mov	w1, #2
	b	LBB0_21
LBB0_11:
	ldr	x10, [x9, #24]
	cmp	x8, x10
	b.ne	LBB0_13
; %bb.12:
	mov	w1, #3
	b	LBB0_21
LBB0_13:
	ldr	x10, [x9, #32]
	cmp	x8, x10
	b.ne	LBB0_15
; %bb.14:
	mov	w1, #4
	b	LBB0_21
LBB0_15:
	ldr	x10, [x9, #40]
	cmp	x8, x10
	b.ne	LBB0_17
; %bb.16:
	mov	w1, #5
	b	LBB0_21
LBB0_17:
	ldr	x10, [x9, #48]
	cmp	x8, x10
	b.ne	LBB0_19
; %bb.18:
	mov	w1, #6
	b	LBB0_21
LBB0_19:
	ldr	x9, [x9, #56]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.20:
	mov	w1, #7
LBB0_21:
Lloh2:
	adrp	x8, _D3DSPR_TEXTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DSPR_TEXTURE@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_d3dsp_register
LBB0_23:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh6:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DSPR_INPUT,4,2               ; @D3DSPR_INPUT
	.comm	_D3DSPR_TEXTURE,4,2             ; @D3DSPR_TEXTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ps 1/2 varying\n"

	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.no_dead_strip	_map_ps_input
.subsections_via_symbols
