	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function texture_2d_error_check
_texture_2d_error_check:                ## @texture_2d_error_check
	.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
	movq	%r8, %r15
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rdx
	movq	_GL_PROXY_TEXTURE_2D@GOTPCREL(%rip), %r14
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%rdx)
	je	LBB0_6
## %bb.1:
	cmpq	%rbx, (%r14)
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rdi
	testq	%rax, %rax
	js	LBB0_15
## %bb.7:
	movq	_MAX_TEXTURE_LEVELS@GOTPCREL(%rip), %rsi
	cmpq	%rax, (%rsi)
	jle	LBB0_15
## %bb.8:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_decode_internal_format
	testq	%rax, %rax
	js	LBB0_16
## %bb.9:
	movq	32(%rbp), %rcx
	cmpq	$2, %rcx
	jae	LBB0_17
## %bb.10:
	movq	16(%rbp), %rdi
	addq	%rcx, %rcx
	cmpq	%rdi, %rcx
	jg	LBB0_12
## %bb.11:
	movq	_MAX_TEXTURE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$2, %rax
	cmpq	%rdi, %rax
	jge	LBB0_21
LBB0_12:
	cmpq	%rbx, (%r14)
	je	LBB0_4
## %bb.20:
	leaq	L_.str.4(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_15:
	movq	%rdi, %r13
	jmp	LBB0_3
LBB0_16:
	leaq	L_.str.2(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_17:
	cmpq	%rbx, (%r14)
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	je	LBB0_4
## %bb.19:
	leaq	L_.str.3(%rip), %rdx
LBB0_3:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_gl_error
LBB0_4:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	24(%rbp), %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_30
## %bb.22:
	cmpq	%rdx, %rax
	jl	LBB0_30
## %bb.23:
	movq	%rdx, %r14
	subq	%rcx, %rdi
	movq	%rcx, %rbx
	callq	_logbase2
	testq	%rax, %rax
	js	LBB0_33
## %bb.24:
	movq	%r14, %rdi
	subq	%rbx, %rdi
	callq	_logbase2
	testq	%rax, %rax
	js	LBB0_34
## %bb.25:
	leaq	L_.str.8(%rip), %rdx
	addq	$-132, %r15
	cmpq	$13, %r15
	ja	LBB0_3
## %bb.26:
	movl	$15711, %eax                    ## imm = 0x3D5F
	btq	%r15, %rax
	jae	LBB0_3
## %bb.27:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$-128, %rcx
	leaq	L_.str.9(%rip), %rdx
	cmpq	$14, %rcx
	jae	LBB0_3
## %bb.28:
	movl	$10767, %eax                    ## imm = 0x2A0F
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.29:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_30:
	cmpq	%rbx, (%r14)
	je	LBB0_4
## %bb.32:
	leaq	L_.str.5(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_33:
	leaq	L_.str.6(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_34:
	leaq	L_.str.7(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,8,3              ## @GL_TEXTURE_2D
	.comm	_GL_PROXY_TEXTURE_2D,8,3        ## @GL_PROXY_TEXTURE_2D
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glTexImage2D(target)"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_MAX_TEXTURE_LEVELS,8,3         ## @MAX_TEXTURE_LEVELS
	.comm	_GL_INVALID_VALUE,4,2           ## @GL_INVALID_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"glTexImage2D(level)"

L_.str.2:                               ## @.str.2
	.asciz	"glTexImage2D(internalFormat)"

L_.str.3:                               ## @.str.3
	.asciz	"glTexImage2D(border)"

	.comm	_MAX_TEXTURE_SIZE,4,2           ## @MAX_TEXTURE_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"glTexImage2D(width)"

L_.str.5:                               ## @.str.5
	.asciz	"glTexImage2D(height)"

L_.str.6:                               ## @.str.6
	.asciz	"glTexImage2D(width != 2^k + 2*border)"

L_.str.7:                               ## @.str.7
	.asciz	"glTexImage2D(height != 2^k + 2*border)"

L_.str.8:                               ## @.str.8
	.asciz	"glTexImage2D(format)"

L_.str.9:                               ## @.str.9
	.asciz	"glTexImage2D(type)"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.no_dead_strip	_texture_2d_error_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function texture_2d_error_check
_texture_2d_error_check:                ; @texture_2d_error_check
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x9, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x25, _GL_PROXY_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GL_PROXY_TEXTURE_2D@GOTPAGEOFF]
	ldr	x10, [x25]
	cmp	x9, x1
	ccmp	x10, x1, #4, ne
	b.ne	LBB0_9
; %bb.1:
	mov	x8, x2
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, _GL_INVALID_VALUE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GL_INVALID_VALUE@GOTPAGEOFF]
	tbnz	x8, #63, LBB0_15
; %bb.2:
Lloh9:
	adrp	x10, _MAX_TEXTURE_LEVELS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_TEXTURE_LEVELS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x10, x8
	b.le	LBB0_15
; %bb.3:
	mov	x22, x7
	mov	x24, x6
	mov	x20, x5
	mov	x21, x4
	mov	x23, x1
	mov	x0, x3
	bl	_decode_internal_format
	tbnz	x0, #63, LBB0_11
; %bb.4:
	ldr	x8, [x29, #16]
	cmp	x8, #2
	b.hs	LBB0_12
; %bb.5:
	lsl	x26, x8, #1
	cmp	x26, x24
	b.gt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _MAX_TEXTURE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_TEXTURE_SIZE@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	add	x8, x8, #2
	cmp	x8, x24
	b.ge	LBB0_18
LBB0_7:
	ldr	x8, [x25]
	cmp	x8, x23
	b.eq	LBB0_16
; %bb.8:
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
Lloh19:
	adrp	x9, _GL_INVALID_ENUM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GL_INVALID_ENUM@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	x8, [x25]
	cmp	x8, x23
	b.eq	LBB0_16
; %bb.13:
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_14:
Lloh25:
	adrp	x9, _GL_INVALID_VALUE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GL_INVALID_VALUE@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x9]
	mov	x0, x19
	bl	_gl_error
LBB0_16:
Lloh27:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	cmp	x26, x22
	b.gt	LBB0_27
; %bb.19:
	cmp	x8, x22
	b.lt	LBB0_27
; %bb.20:
	sub	x0, x24, x26
	bl	_logbase2
	tbnz	x0, #63, LBB0_29
; %bb.21:
	sub	x0, x22, x26
	bl	_logbase2
	tbnz	x0, #63, LBB0_30
; %bb.22:
Lloh29:
	adrp	x2, l_.str.8@PAGE
Lloh30:
	add	x2, x2, l_.str.8@PAGEOFF
Lloh31:
	adrp	x9, _GL_INVALID_ENUM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _GL_INVALID_ENUM@GOTPAGEOFF]
	sub	x8, x21, #132
	cmp	x8, #13
	b.hi	LBB0_15
; %bb.23:
	mov	w10, #1
	lsl	x8, x10, x8
	mov	w10, #15711
	tst	x8, x10
	b.eq	LBB0_15
; %bb.24:
	sub	x8, x20, #128
	cmp	x8, #14
	b.hs	LBB0_26
; %bb.25:
	mov	w9, #10767
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_31
LBB0_26:
Lloh33:
	adrp	x2, l_.str.9@PAGE
Lloh34:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_10
LBB0_27:
	ldr	x8, [x25]
	cmp	x8, x23
	b.eq	LBB0_16
; %bb.28:
Lloh35:
	adrp	x2, l_.str.5@PAGE
Lloh36:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_29:
Lloh37:
	adrp	x2, l_.str.6@PAGE
Lloh38:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_30:
Lloh39:
	adrp	x2, l_.str.7@PAGE
Lloh40:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_31:
Lloh41:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,8,3              ; @GL_TEXTURE_2D
	.comm	_GL_PROXY_TEXTURE_2D,8,3        ; @GL_PROXY_TEXTURE_2D
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glTexImage2D(target)"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_MAX_TEXTURE_LEVELS,8,3         ; @MAX_TEXTURE_LEVELS
	.comm	_GL_INVALID_VALUE,4,2           ; @GL_INVALID_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"glTexImage2D(level)"

l_.str.2:                               ; @.str.2
	.asciz	"glTexImage2D(internalFormat)"

l_.str.3:                               ; @.str.3
	.asciz	"glTexImage2D(border)"

	.comm	_MAX_TEXTURE_SIZE,4,2           ; @MAX_TEXTURE_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"glTexImage2D(width)"

l_.str.5:                               ; @.str.5
	.asciz	"glTexImage2D(height)"

l_.str.6:                               ; @.str.6
	.asciz	"glTexImage2D(width != 2^k + 2*border)"

l_.str.7:                               ; @.str.7
	.asciz	"glTexImage2D(height != 2^k + 2*border)"

l_.str.8:                               ; @.str.8
	.asciz	"glTexImage2D(format)"

l_.str.9:                               ; @.str.9
	.asciz	"glTexImage2D(type)"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.no_dead_strip	_texture_2d_error_check
.subsections_via_symbols
