	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dta_to_combiner_input
_d3dta_to_combiner_input:               ## @d3dta_to_combiner_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movl	%edi, %ecx
	leal	-128(%rcx), %edx
	cmpl	$6, %edx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	_GL_CONSTANT_COLOR0_NV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_GL_TEXTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_GL_TEXTURE0_ARB@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_GL_SPARE1_NV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_GL_SECONDARY_COLOR_NV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	testl	%esi, %esi
	je	LBB0_6
## %bb.3:
	movq	_GL_SPARE0_NV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_GL_PRIMARY_COLOR_NV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_GL_CONSTANT_COLOR1_NV@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_GL_PRIMARY_COLOR_NV,4,2        ## @GL_PRIMARY_COLOR_NV
	.comm	_GL_SPARE0_NV,4,2               ## @GL_SPARE0_NV
	.comm	_GL_TEXTURE0_ARB,4,2            ## @GL_TEXTURE0_ARB
	.comm	_GL_CONSTANT_COLOR0_NV,4,2      ## @GL_CONSTANT_COLOR0_NV
	.comm	_GL_SECONDARY_COLOR_NV,4,2      ## @GL_SECONDARY_COLOR_NV
	.comm	_GL_SPARE1_NV,4,2               ## @GL_SPARE1_NV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WINED3DTA_CONSTANT, not properly supported.\n"

	.comm	_GL_CONSTANT_COLOR1_NV,4,2      ## @GL_CONSTANT_COLOR1_NV
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized texture arg %#x\n"

	.comm	_GL_TEXTURE,4,2                 ## @GL_TEXTURE
	.no_dead_strip	_d3dta_to_combiner_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dta_to_combiner_input
_d3dta_to_combiner_input:               ; @d3dta_to_combiner_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _GL_CONSTANT_COLOR0_NV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_CONSTANT_COLOR0_NV@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh6:
	adrp	x8, _GL_TEXTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_TEXTURE@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	tbnz	w2, #31, LBB0_10
; %bb.5:
Lloh8:
	adrp	x8, _GL_TEXTURE0_ARB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TEXTURE0_ARB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w0, w8, w2
	b	LBB0_13
LBB0_6:
Lloh11:
	adrp	x8, _GL_SPARE1_NV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_SPARE1_NV@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x8, _GL_SECONDARY_COLOR_NV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_SECONDARY_COLOR_NV@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	cbz	w1, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _GL_SPARE0_NV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GL_SPARE0_NV@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _GL_PRIMARY_COLOR_NV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_PRIMARY_COLOR_NV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh21:
	adrp	x8, _GL_CONSTANT_COLOR1_NV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_CONSTANT_COLOR1_NV@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_GL_PRIMARY_COLOR_NV,4,2        ; @GL_PRIMARY_COLOR_NV
	.comm	_GL_SPARE0_NV,4,2               ; @GL_SPARE0_NV
	.comm	_GL_TEXTURE0_ARB,4,2            ; @GL_TEXTURE0_ARB
	.comm	_GL_CONSTANT_COLOR0_NV,4,2      ; @GL_CONSTANT_COLOR0_NV
	.comm	_GL_SECONDARY_COLOR_NV,4,2      ; @GL_SECONDARY_COLOR_NV
	.comm	_GL_SPARE1_NV,4,2               ; @GL_SPARE1_NV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WINED3DTA_CONSTANT, not properly supported.\n"

	.comm	_GL_CONSTANT_COLOR1_NV,4,2      ; @GL_CONSTANT_COLOR1_NV
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized texture arg %#x\n"

	.comm	_GL_TEXTURE,4,2                 ; @GL_TEXTURE
	.no_dead_strip	_d3dta_to_combiner_input
.subsections_via_symbols
