	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_glsl_get_prev_textures
_gl_glsl_get_prev_textures:             ## @gl_glsl_get_prev_textures
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_11
## %bb.2:
	movq	_PREV_TEXTURES@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	$1, %r15d
	xorl	%eax, %eax
	movl	%ecx, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdx
	movl	%ecx, %esi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	cmpl	(%rdx), %r15d
	ja	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %r13d
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%ecx, %edx
	movq	%rbx, %rdi
	cmpq	%rdx, %rbx
	jae	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdx
	movq	(%rdx,%r13,8), %rdx
	leaq	1(%rdi), %rbx
	cmpq	$0, (%rdx,%rdi,8)
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%eax, %esi
	callq	_MAX
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREV_TEXTURES,4,2              ## @PREV_TEXTURES
	.no_dead_strip	_gl_glsl_get_prev_textures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_glsl_get_prev_textures
_gl_glsl_get_prev_textures:             ; @gl_glsl_get_prev_textures
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	w8, [x9]
	cbz	w8, LBB0_10
; %bb.2:
	mov	w1, #0
Lloh0:
	adrp	x20, _PREV_TEXTURES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PREV_TEXTURES@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w21, #1
	mov	x10, x8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	mov	x10, x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	w11, [x9]
	cmp	w21, w11
	b.hi	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cbz	w10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
	mov	w23, w21
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x22, lsl #3]
	tbnz	x9, #63, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w0, w22, #1
	bl	_MAX
	mov	x1, x0
	ldr	w8, [x20]
	b	LBB0_7
LBB0_10:
	mov	w1, #0
LBB0_11:
	mov	x0, x1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PREV_TEXTURES,4,2              ; @PREV_TEXTURES
	.no_dead_strip	_gl_glsl_get_prev_textures
.subsections_via_symbols
