	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gl_test_texture_object_completeness
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_test_texture_object_completeness
	.p2align	4, 0x90
_gl_test_texture_object_completeness:   ## @gl_test_texture_object_completeness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	movq	24(%rdi), %r11
	movq	(%r11), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	cmpl	$0, 24(%rdx)
	je	LBB0_2
## %bb.3:
	movq	(%rdi), %rcx
	movq	_GL_NEAREST@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_32
## %bb.4:
	movq	_GL_LINEAR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_32
## %bb.5:
	movq	_MAX_TEXTURE_LEVELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	cmpl	$2, %r10d
	jl	LBB0_12
## %bb.6:
	movl	$1, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	cmpq	%rsi, %r10
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 24(%rcx)
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rcx), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rcx), %rax
	cmpq	8(%rdx), %rax
	je	LBB0_11
LBB0_2:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	popq	%rbp
	retq
LBB0_12:
	movl	8(%rdi), %ecx
	cmpl	$2, %ecx
	je	LBB0_25
## %bb.13:
	cmpl	$1, %ecx
	jne	LBB0_33
## %bb.14:
	cmpl	$2, %r10d
	jl	LBB0_32
## %bb.15:
	movl	16(%rdx), %r8d
	addq	$-2, %r10
	xorl	%r9d, %r9d
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %r8d
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movl	%eax, %r8d
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r11,%r9,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 24(%rsi)
	je	LBB0_2
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rsi), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rsi), %rax
	cmpq	8(%rdx), %rax
	jne	LBB0_2
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	%r8d, 16(%rsi)
	jne	LBB0_2
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$1, %r8d
	je	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%r9), %rax
	cmpq	%r9, %r10
	movq	%rax, %r9
	jne	LBB0_16
	jmp	LBB0_32
LBB0_25:
	cmpl	$2, %r10d
	jl	LBB0_32
## %bb.26:
	movq	16(%rdx), %xmm1                 ## xmm1 = mem[0],zero
	addq	$-2, %r10
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <1,1,u,u>
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	movdqa	%xmm1, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm1, %xmm3
	psrad	$1, %xmm3
	blendvps	%xmm0, %xmm3, %xmm1
	movq	8(%r11,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movd	%xmm1, %eax
	cmpl	%eax, 16(%rcx)
	jne	LBB0_2
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	pextrd	$1, %xmm1, %eax
	cmpl	%eax, 20(%rcx)
	jne	LBB0_2
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm2, %xmm0
	pmovsxdq	%xmm0, %xmm0
	movmskpd	%xmm0, %eax
	cmpb	$3, %al
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	1(%rdx), %rax
	cmpq	%rdx, %r10
	movq	%rax, %rdx
	jne	LBB0_27
LBB0_32:
	popq	%rbp
	retq
LBB0_33:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	popq	%rbp
	jmp	_gl_problem                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
	.comm	_GL_NEAREST,8,3                 ## @GL_NEAREST
	.comm	_GL_LINEAR,8,3                  ## @GL_LINEAR
	.comm	_MAX_TEXTURE_LEVELS,4,2         ## @MAX_TEXTURE_LEVELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bug in gl_test_texture_object_completeness\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_test_texture_object_completeness ; -- Begin function gl_test_texture_object_completeness
	.p2align	2
_gl_test_texture_object_completeness:   ; @gl_test_texture_object_completeness
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0, #16]
	ldr	x9, [x0, #24]
	ldr	x8, [x9]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	w10, [x8, #24]
	cbz	w10, LBB0_11
; %bb.2:
	ldr	x10, [x0]
Lloh3:
	adrp	x11, _GL_NEAREST@GOTPAGE
Lloh4:
	ldr	x11, [x11, _GL_NEAREST@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _GL_LINEAR@GOTPAGE
Lloh7:
	ldr	x12, [x12, _GL_LINEAR@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_4
LBB0_3:
	ret
LBB0_4:
Lloh9:
	adrp	x10, _MAX_TEXTURE_LEVELS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_TEXTURE_LEVELS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w10, #2
	b.lt	LBB0_12
; %bb.5:
	add	x11, x9, #8
	sub	x12, x10, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #8
	subs	x12, x12, #1
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	cbz	x13, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x13, #24]
	cbz	w14, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x13]
	ldr	x15, [x8]
	cmp	x14, x15
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x13, #8]
	ldr	x14, [x8, #8]
	cmp	x13, x14
	b.eq	LBB0_6
LBB0_11:
Lloh12:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x0, #16]
	ret
LBB0_12:
	ldr	w11, [x0, #8]
	cmp	w11, #2
	b.eq	LBB0_23
; %bb.13:
	cmp	w11, #1
	b.ne	LBB0_30
; %bb.14:
	cmp	w10, #2
	b.lt	LBB0_3
; %bb.15:
	ldr	w11, [x8, #16]
	sub	x12, x10, #2
	add	x9, x9, #8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x12
	cmp	w11, #0
	cinc	w12, w11, lt
	asr	w12, w12, #1
	cmp	w11, #1
	csel	w11, w12, w11, gt
	ldr	x12, [x9]
	cbz	x12, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w13, [x12, #24]
	cbz	w13, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x13, [x12]
	ldr	x14, [x8]
	cmp	x13, x14
	b.ne	LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x13, [x12, #8]
	ldr	x14, [x8, #8]
	cmp	x13, x14
	b.ne	LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w12, [x12, #16]
	cmp	w12, w11
	b.ne	LBB0_11
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w11, #1
	b.eq	LBB0_3
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x12, x10, #1
	add	x9, x9, #8
	cbnz	x10, LBB0_16
	b	LBB0_3
LBB0_23:
	cmp	w10, #2
	b.lt	LBB0_3
; %bb.24:
	ldp	w8, w11, [x8, #16]
	sub	x12, x10, #2
	add	x9, x9, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x12
	cmp	w8, #0
	cinc	w12, w8, lt
	asr	w12, w12, #1
	cmp	w8, #1
	csel	w8, w12, w8, gt
	cmp	w11, #0
	cinc	w12, w11, lt
	asr	w12, w12, #1
	cmp	w11, #1
	csel	w11, w12, w11, gt
	ldr	x12, [x9]
	cbz	x12, LBB0_11
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w13, [x12, #16]
	cmp	w13, w8
	b.ne	LBB0_11
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w12, [x12, #20]
	cmp	w12, w11
	b.ne	LBB0_11
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w11, #1
	ccmp	w8, #1, #0, eq
	b.eq	LBB0_3
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	sub	x12, x10, #1
	add	x9, x9, #8
	cbnz	x10, LBB0_25
	b	LBB0_3
LBB0_30:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	b	_gl_problem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_GL_FALSE,8,3                   ; @GL_FALSE
	.comm	_GL_NEAREST,8,3                 ; @GL_NEAREST
	.comm	_GL_LINEAR,8,3                  ; @GL_LINEAR
	.comm	_MAX_TEXTURE_LEVELS,4,2         ; @MAX_TEXTURE_LEVELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bug in gl_test_texture_object_completeness\n"

.subsections_via_symbols
