	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sampler_texdim                 ## -- Begin function sampler_texdim
	.p2align	4, 0x90
_sampler_texdim:                        ## @sampler_texdim
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_STATE_SAMPLER
	subq	%rax, %rbx
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_WINED3D_UNMAPPED_STAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	16(%r14), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.2:
	cmpq	8(%r14), %rbx
	jae	LBB0_4
## %bb.3:
	movq	_WINED3D_TSS_COLOR_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_STATE_TEXTURESTAGE
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_isStateDirty
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	16(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_texture_activate_dimensions    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_UNMAPPED_STAGE,8,3     ## @WINED3D_UNMAPPED_STAGE
	.comm	_WINED3D_TSS_COLOR_OP,4,2       ## @WINED3D_TSS_COLOR_OP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sampler_texdim                 ; -- Begin function sampler_texdim
	.p2align	2
_sampler_texdim:                        ; @sampler_texdim
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w0, #0
	bl	_STATE_SAMPLER
	sub	x21, x21, x0
	ldr	x8, [x19]
	ldr	x8, [x8, x21, 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:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.hs	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _WINED3D_TSS_COLOR_OP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_TSS_COLOR_OP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_STATE_TEXTURESTAGE
	mov	x1, x0
	mov	x0, x19
	bl	_isStateDirty
	cbz	x0, LBB0_5
LBB0_4:
	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_5:
	ldr	x8, [x20]
	ldr	w0, [x8, x21, lsl #2]
	ldr	x1, [x19, #16]
	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
	b	_texture_activate_dimensions
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_UNMAPPED_STAGE,8,3     ; @WINED3D_UNMAPPED_STAGE
	.comm	_WINED3D_TSS_COLOR_OP,4,2       ; @WINED3D_TSS_COLOR_OP
.subsections_via_symbols
