	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_set_function
_shader_set_function:                   ## @shader_set_function
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	callq	_TRACE
	movq	24(%rbx), %r15
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	%rbx, %rdx
	callq	*(%r15)
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%rbx), %r13
	movq	_d3d_shader@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_shader_trace_init
LBB0_3:
	leaq	4(%rbx), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %r8
	movl	%r12d, %r9d
	callq	_shader_get_registers_used
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movl	(%r13), %esi
	cmpl	%r14d, %esi
	jne	LBB0_8
## %bb.5:
	movl	44(%rbx), %esi
	cmpl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	jbe	LBB0_13
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_WARN
LBB0_10:
	movq	_WINED3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	addl	$-128, %r14d
	cmpl	$5, %r14d
	ja	LBB0_16
## %bb.14:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	callq	_FIXME
	movl	44(%rbx), %esi
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	jmp	LBB0_22
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	jmp	LBB0_22
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
	jmp	LBB0_22
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	jmp	LBB0_22
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %eax
LBB0_22:
	cmpl	%eax, %esi
	jbe	LBB0_24
## %bb.23:
	movl	48(%rbx), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_10
LBB0_24:
	movq	_WINED3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shader %p, float_const_count %u, type %#x, max_version %u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize frontend.\n"

	.comm	_WINED3DERR_INVALIDCALL,4,2     ## @WINED3DERR_INVALIDCALL
	.comm	_d3d_shader,4,2                 ## @d3d_shader
L_.str.2:                               ## @.str.2
	.asciz	"Wrong shader type %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Shader version %d not supported by this D3D API version.\n"

L_.str.4:                               ## @.str.4
	.asciz	"No backend version-checking for this shader type.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Shader version %d.%d not supported by your GPU with the current shader backend.\n"

	.comm	_WINED3D_OK,4,2                 ## @WINED3D_OK
	.no_dead_strip	_shader_set_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_set_function
_shader_set_function:                   ; @shader_set_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x25, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x21
	bl	_TRACE
	ldr	x24, [x19, #24]
	ldr	x8, [x24]
	ldp	w1, w0, [x19, #12]
	mov	x2, x19
	blr	x8
	str	w0, [x19, #8]
	cbz	w0, LBB0_7
; %bb.1:
	add	x23, x19, #40
Lloh2:
	adrp	x8, _d3d_shader@GOTPAGE
Lloh3:
	ldr	x8, [x8, _d3d_shader@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_TRACE_ON
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19, #8]
	mov	x0, x24
	bl	_shader_trace_init
LBB0_3:
	add	x3, x19, #4
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x4, x19
	mov	x5, x22
	bl	_shader_get_registers_used
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_23
; %bb.4:
	ldr	w1, [x23]
	cmp	w1, w20
	b.ne	LBB0_8
; %bb.5:
	ldr	w1, [x19, #44]
	cmp	w1, w21
	b.ls	LBB0_9
; %bb.6:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	b	LBB0_21
LBB0_8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_9:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.10:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	ldr	w8, [x25]
	b	LBB0_18
LBB0_12:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_FIXME
	mov	w8, #0
	ldr	w1, [x19, #44]
	b	LBB0_18
LBB0_13:
	ldr	w8, [x25, #16]
	b	LBB0_18
LBB0_14:
	ldr	w8, [x25, #4]
	b	LBB0_18
LBB0_15:
	ldr	w8, [x25, #12]
	b	LBB0_18
LBB0_16:
	ldr	w8, [x25, #8]
	b	LBB0_18
LBB0_17:
	ldr	w8, [x25, #20]
LBB0_18:
	cmp	w1, w8
	b.ls	LBB0_24
; %bb.19:
	ldr	w8, [x19, #48]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_20:
	bl	_WARN
LBB0_21:
Lloh17:
	adrp	x8, _WINED3DERR_INVALIDCALL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WINED3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_22:
	ldr	w22, [x8]
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
Lloh19:
	adrp	x8, _WINED3D_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WINED3D_OK@GOTPAGEOFF]
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shader %p, float_const_count %u, type %#x, max_version %u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize frontend.\n"

	.comm	_WINED3DERR_INVALIDCALL,4,2     ; @WINED3DERR_INVALIDCALL
	.comm	_d3d_shader,4,2                 ; @d3d_shader
l_.str.2:                               ; @.str.2
	.asciz	"Wrong shader type %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Shader version %d not supported by this D3D API version.\n"

l_.str.4:                               ; @.str.4
	.asciz	"No backend version-checking for this shader type.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Shader version %d.%d not supported by your GPU with the current shader backend.\n"

	.comm	_WINED3D_OK,4,2                 ; @WINED3D_OK
	.no_dead_strip	_shader_set_function
.subsections_via_symbols
