	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_record_register_usage
_shader_record_register_usage:          ## @shader_record_register_usage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	(%rdx), %esi
	leal	-128(%rsi), %ecx
	cmpl	$9, %ecx
	ja	LBB0_40
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	8(%rbx), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	orl	%edx, (%r14)
	jmp	LBB0_41
LBB0_40:
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	8(%rax), %ecx
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TRACE
	jmp	LBB0_41
LBB0_5:
	movq	8(%rbx), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, 8(%r14)
	jmp	LBB0_41
LBB0_12:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpl	$2, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$1, %eax
	jne	LBB0_42
## %bb.14:
	movl	$1, 20(%r14)
	jmp	LBB0_42
LBB0_39:
	movl	$1, 56(%r14)
	jmp	LBB0_41
LBB0_16:
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rdx
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rdx)
	jne	LBB0_42
## %bb.17:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_20
## %bb.18:
	testl	%eax, %eax
	jne	LBB0_42
## %bb.19:
	movl	$1, 28(%r14)
	jmp	LBB0_42
LBB0_6:
	movq	8(%rbx), %rcx
	cmpl	$0, 4(%rcx)
	je	LBB0_7
## %bb.9:
	movl	$1, 12(%r14)
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rdx
	cmpl	%eax, (%rdx)
	jne	LBB0_11
## %bb.10:
	movl	$-1, 8(%rdi)
	jmp	LBB0_41
LBB0_30:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movq	(%rdi), %rax
	cmpl	(%rax), %ecx
	jae	LBB0_31
## %bb.34:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, 44(%r14)
	jmp	LBB0_41
LBB0_35:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movq	(%rdi), %rax
	cmpl	4(%rax), %ecx
	jae	LBB0_36
## %bb.37:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, 48(%r14)
	jmp	LBB0_41
LBB0_21:
	movq	8(%rbx), %rax
	cmpl	$0, 4(%rax)
	movl	(%rax), %r15d
	je	LBB0_27
## %bb.22:
	cmpl	36(%r14), %r15d
	jae	LBB0_24
## %bb.23:
	movl	%r15d, 36(%r14)
LBB0_24:
	cmpl	40(%r14), %r15d
	jbe	LBB0_26
## %bb.25:
	movl	%r15d, 40(%r14)
LBB0_26:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, 64(%r14)
	jmp	LBB0_42
LBB0_38:
	movq	8(%rbx), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, 52(%r14)
	jmp	LBB0_41
LBB0_4:
	orl	%edx, 4(%r14)
	jmp	LBB0_41
LBB0_31:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_32
LBB0_36:
	leaq	L_.str.2(%rip), %rdi
LBB0_32:
	movl	%ecx, %esi
LBB0_33:
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_42
LBB0_7:
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rdx
	cmpl	%eax, (%rdx)
	jne	LBB0_11
## %bb.8:
	movb	(%rcx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, 8(%rdi)
	jmp	LBB0_41
LBB0_11:
	movb	(%rcx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, 16(%r14)
	jmp	LBB0_41
LBB0_27:
	movq	(%rdi), %rax
	movl	8(%rax), %edi
	movl	%r8d, %esi
	callq	_min
	cmpl	%eax, %r15d
	jae	LBB0_28
## %bb.29:
	movl	60(%r14), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_wined3d_insert_bits
LBB0_41:
	movq	_TRUE@GOTPCREL(%rip), %rcx
LBB0_42:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$1, 24(%r14)
	jmp	LBB0_42
LBB0_20:
	movl	$1, 32(%r14)
	jmp	LBB0_42
LBB0_28:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_33
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_39
	.long	L0_0_set_16
	.long	L0_0_set_6
	.long	L0_0_set_30
	.long	L0_0_set_35
	.long	L0_0_set_21
	.long	L0_0_set_38
	.end_data_region
                                        ## -- End function
	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ## @WINED3D_SHADER_TYPE_PIXEL
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shader using float constant %u which is not supported.\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Shader using integer constant %u which is not supported.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Shader using bool constant %u which is not supported.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Not recording register of type %#x and [%#x][%#x].\n"

	.no_dead_strip	_shader_record_register_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_record_register_usage
_shader_record_register_usage:          ; @shader_record_register_usage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	ldr	w1, [x2]
	sub	w8, w1, #128
	cmp	w8, #9
	b.hi	LBB0_4
; %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, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w8, w10, w8
	cmp	w9, w3
	b.ne	LBB0_28
; %bb.3:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_38
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	ldr	w3, [x8, #8]
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	b	LBB0_38
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_38
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.eq	LBB0_36
; %bb.7:
	cmp	w8, #1
	b.ne	LBB0_38
; %bb.8:
	str	w8, [x19, #20]
	b	LBB0_38
LBB0_9:
	mov	w8, #1
	str	w8, [x19, #56]
	b	LBB0_38
LBB0_10:
Lloh7:
	adrp	x8, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_38
; %bb.11:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_37
; %bb.12:
	cbnz	w8, LBB0_38
; %bb.13:
	mov	w8, #1
	str	w8, [x19, #28]
	b	LBB0_38
LBB0_14:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_31
; %bb.15:
	mov	w9, #1
	str	w9, [x19, #12]
Lloh10:
	adrp	x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w3
	b.ne	LBB0_33
; %bb.16:
	mov	w8, #-1
	str	w8, [x0, #8]
	b	LBB0_38
LBB0_17:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w1, w8
	b.hs	LBB0_29
; %bb.18:
	mov	w8, #1
	lsl	w8, w8, w1
	ldr	w9, [x19, #44]
	orr	w8, w9, w8
	str	w8, [x19, #44]
	b	LBB0_38
LBB0_19:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	cmp	w1, w8
	b.hs	LBB0_30
; %bb.20:
	mov	w8, #1
	lsl	w8, w8, w1
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	b	LBB0_38
LBB0_21:
	ldr	x8, [x20, #8]
	ldp	w21, w9, [x8]
	cbz	w9, LBB0_34
; %bb.22:
	ldr	w8, [x19, #36]
	cmp	w21, w8
	b.hs	LBB0_24
; %bb.23:
	str	w21, [x19, #36]
LBB0_24:
	ldr	w8, [x19, #40]
	cmp	w21, w8
	b.ls	LBB0_26
; %bb.25:
	str	w21, [x19, #40]
LBB0_26:
Lloh13:
	adrp	x8, _TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x19, #64]
	b	LBB0_39
LBB0_27:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
	b	LBB0_38
LBB0_28:
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_38
LBB0_29:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_41
LBB0_30:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_41
LBB0_31:
Lloh19:
	adrp	x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w9, w3
	b.ne	LBB0_33
; %bb.32:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
	str	w8, [x0, #8]
	b	LBB0_38
LBB0_33:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_38
LBB0_34:
	ldr	x8, [x0]
	ldr	w0, [x8, #8]
	mov	x1, x4
	bl	_min
	cmp	w21, w0
	b.hs	LBB0_40
; %bb.35:
	ldr	w0, [x19, #60]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #1
	bl	_wined3d_insert_bits
	b	LBB0_38
LBB0_36:
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_38
LBB0_37:
	str	w8, [x19, #32]
LBB0_38:
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_39:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_40:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
LBB0_41:
	bl	_WARN
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_39
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
                                        ; -- End function
	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ; @WINED3D_SHADER_TYPE_PIXEL
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shader using float constant %u which is not supported.\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Shader using integer constant %u which is not supported.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Shader using bool constant %u which is not supported.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Not recording register of type %#x and [%#x][%#x].\n"

	.no_dead_strip	_shader_record_register_usage
.subsections_via_symbols
