	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_map_fixed_function_samplers
_context_map_fixed_function_samplers:   ## @context_map_fixed_function_samplers
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rcx
	movl	(%rdi), %r12d
	movq	(%rcx), %rax
	cmpq	8(%rcx), %rax
	je	LBB0_9
## %bb.1:
	cmpq	%rax, 8(%r15)
	jle	LBB0_9
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	sarl	%eax
	incl	%ebx
	cmpl	$1, %r12d
	movl	%eax, %r12d
	jbe	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r12b
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rax
	movl	%ebx, %ecx
	cmpl	%r14d, (%rax,%rcx,4)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_context_map_stage
	movl	%ebx, %edi
	callq	_STATE_SAMPLER
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_context_invalidate_texture_stage
	jmp	LBB0_7
LBB0_9:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %eax
	sarl	%eax
	incl	%ebx
	cmpl	$2, %r12d
	movl	%eax, %r12d
	jb	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, %r12b
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r15), %rax
	movl	%ebx, %ecx
	cmpl	(%rax,%rcx,4), %ebx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_context_map_stage
	movl	%ebx, %edi
	callq	_STATE_SAMPLER
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_context_invalidate_texture_stage
	jmp	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_context_map_fixed_function_samplers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_map_fixed_function_samplers
_context_map_fixed_function_samplers:   ; @context_map_fixed_function_samplers
	.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	x19, x0
	ldr	x9, [x0, #24]
	ldr	w22, [x0]
	ldp	x8, x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.le	LBB0_9
; %bb.2:
	cbz	w22, LBB0_15
; %bb.3:
	mov	w20, #0
	mov	w21, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	asr	w8, w22, #1
	add	w21, w21, #1
	cmp	w22, #1
	mov	x22, x8
	b.ls	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w22, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, w21, uxtw #2]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_context_map_stage
	mov	x0, x21
	bl	_STATE_SAMPLER
	mov	x1, x0
	mov	x0, x19
	bl	_context_invalidate_state
	mov	x0, x19
	mov	x1, x21
	bl	_context_invalidate_texture_stage
	b	LBB0_4
LBB0_9:
	cbz	w22, LBB0_15
; %bb.10:
	mov	w20, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	asr	w8, w22, #1
	add	w20, w20, #1
	cmp	w22, #2
	mov	x22, x8
	b.lo	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	tbz	w22, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, w20, uxtw #2]
	cmp	w20, w8
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_context_map_stage
	mov	x0, x20
	bl	_STATE_SAMPLER
	mov	x1, x0
	mov	x0, x19
	bl	_context_invalidate_state
	mov	x0, x19
	mov	x1, x20
	bl	_context_invalidate_texture_stage
	b	LBB0_11
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_context_map_fixed_function_samplers
.subsections_via_symbols
