	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_constants_device
_set_constants_device:                  ## @set_constants_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%r9d, %r10d
	movl	16(%rbp), %r9d
	movq	_D3DXPT_VERTEXSHADER@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_8
## %bb.1:
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_15
## %bb.4:
	movq	_SetVertexShaderConstantF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_D3DXPT_PIXELSHADER@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_16
## %bb.9:
	cmpl	$128, %ecx
	je	LBB0_13
## %bb.10:
	cmpl	$130, %ecx
	je	LBB0_14
## %bb.11:
	cmpl	$129, %ecx
	jne	LBB0_15
## %bb.12:
	movq	_SetPixelShaderConstantF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movq	%rdx, %rsi
	jmp	LBB0_17
LBB0_15:
	movl	%ecx, %esi
	leaq	L_.str(%rip), %rdi
LBB0_17:
	callq	_FIXME
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_SetVertexShaderConstantI@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_SetVertexShaderConstantB@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_SetPixelShaderConstantI@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movq	_SetPixelShaderConstantB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movl	%r10d, %ecx
	popq	%rbp
	jmp	_SET_D3D_STATE_                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPT_VERTEXSHADER,8,3        ## @D3DXPT_VERTEXSHADER
	.comm	_SetVertexShaderConstantF,4,2   ## @SetVertexShaderConstantF
	.comm	_SetVertexShaderConstantI,4,2   ## @SetVertexShaderConstantI
	.comm	_SetVertexShaderConstantB,4,2   ## @SetVertexShaderConstantB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected register table %u.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.comm	_D3DXPT_PIXELSHADER,8,3         ## @D3DXPT_PIXELSHADER
	.comm	_SetPixelShaderConstantF,4,2    ## @SetPixelShaderConstantF
	.comm	_SetPixelShaderConstantI,4,2    ## @SetPixelShaderConstantI
	.comm	_SetPixelShaderConstantB,4,2    ## @SetPixelShaderConstantB
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected parameter type %u.\n"

	.no_dead_strip	_set_constants_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_constants_device
_set_constants_device:                  ; @set_constants_device
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _D3DXPT_VERTEXSHADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DXPT_VERTEXSHADER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_5
; %bb.1:
	cmp	w3, #128
	b.eq	LBB0_13
; %bb.2:
	cmp	w3, #130
	b.eq	LBB0_14
; %bb.3:
	cmp	w3, #129
	b.ne	LBB0_11
; %bb.4:
Lloh3:
	adrp	x8, _SetVertexShaderConstantF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SetVertexShaderConstantF@GOTPAGEOFF]
	b	LBB0_17
LBB0_5:
Lloh5:
	adrp	x8, _D3DXPT_PIXELSHADER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D3DXPT_PIXELSHADER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_10
; %bb.6:
	cmp	w3, #128
	b.eq	LBB0_15
; %bb.7:
	cmp	w3, #130
	b.eq	LBB0_16
; %bb.8:
	cmp	w3, #129
	b.ne	LBB0_11
; %bb.9:
Lloh8:
	adrp	x8, _SetPixelShaderConstantF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SetPixelShaderConstantF@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x2
	b	LBB0_12
LBB0_11:
	mov	w1, w3
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_FIXME
Lloh14:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh17:
	adrp	x8, _SetVertexShaderConstantI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SetVertexShaderConstantI@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh19:
	adrp	x8, _SetVertexShaderConstantB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SetVertexShaderConstantB@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh21:
	adrp	x8, _SetPixelShaderConstantI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SetPixelShaderConstantI@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x8, _SetPixelShaderConstantB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SetPixelShaderConstantB@GOTPAGEOFF]
LBB0_17:
	ldr	w2, [x8]
	mov	x3, x5
	mov	x5, x6
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_SET_D3D_STATE_
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPT_VERTEXSHADER,8,3        ; @D3DXPT_VERTEXSHADER
	.comm	_SetVertexShaderConstantF,4,2   ; @SetVertexShaderConstantF
	.comm	_SetVertexShaderConstantI,4,2   ; @SetVertexShaderConstantI
	.comm	_SetVertexShaderConstantB,4,2   ; @SetVertexShaderConstantB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected register table %u.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.comm	_D3DXPT_PIXELSHADER,8,3         ; @D3DXPT_PIXELSHADER
	.comm	_SetPixelShaderConstantF,4,2    ; @SetPixelShaderConstantF
	.comm	_SetPixelShaderConstantI,4,2    ; @SetPixelShaderConstantI
	.comm	_SetPixelShaderConstantB,4,2    ; @SetPixelShaderConstantB
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected parameter type %u.\n"

	.no_dead_strip	_set_constants_device
.subsections_via_symbols
