	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_unit_free_for_vs
_context_unit_free_for_vs:              ## @context_unit_free_for_vs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	_WINED3D_UNMAPPED_STAGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_6
## %bb.1:
	movq	_MAX_FRAGMENT_SAMPLERS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_6
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	cmpl	$0, (%rsi,%rcx,4)
	sete	%al
	popq	%rbp
	retq
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbp
	retq
LBB0_3:
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jae	LBB0_7
## %bb.4:
	movl	8(%rdi), %edx
	xorl	%eax, %eax
	btl	%ecx, %edx
	setae	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_UNMAPPED_STAGE,8,3     ## @WINED3D_UNMAPPED_STAGE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MAX_FRAGMENT_SAMPLERS,8,3      ## @MAX_FRAGMENT_SAMPLERS
	.comm	_MAX_TEXTURES,8,3               ## @MAX_TEXTURES
	.no_dead_strip	_context_unit_free_for_vs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_unit_free_for_vs
_context_unit_free_for_vs:              ; @context_unit_free_for_vs
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8, x2, lsl #3]
Lloh0:
	adrp	x9, _WINED3D_UNMAPPED_STAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_UNMAPPED_STAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _MAX_FRAGMENT_SAMPLERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_FRAGMENT_SAMPLERS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:
	cbz	x1, LBB0_5
; %bb.3:
	ldr	w8, [x1, x8, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	ret
LBB0_4:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh9:
	adrp	x9, _MAX_TEXTURES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_TEXTURES@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.6:
	ldr	w9, [x0, #8]
	mvn	w9, w9
	lsr	w8, w9, w8
	and	w0, w8, #0x1
	ret
LBB0_7:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_UNMAPPED_STAGE,8,3     ; @WINED3D_UNMAPPED_STAGE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MAX_FRAGMENT_SAMPLERS,8,3      ; @MAX_FRAGMENT_SAMPLERS
	.comm	_MAX_TEXTURES,8,3               ; @MAX_TEXTURES
	.no_dead_strip	_context_unit_free_for_vs
.subsections_via_symbols
