	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IJK_GLES2_Renderer_renderOverlay ## -- Begin function IJK_GLES2_Renderer_renderOverlay
	.p2align	4, 0x90
_IJK_GLES2_Renderer_renderOverlay:      ## @IJK_GLES2_Renderer_renderOverlay
	.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	_GL_FALSE@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 72(%rdi)
	je	LBB0_19
## %bb.2:
	movq	%rsi, %r14
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
	leaq	L_.str(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	(%rbx), %rcx
	testq	%r14, %r14
	je	LBB0_20
## %bb.3:
	movq	(%r14), %r15
	movq	8(%r14), %rax
	cmpq	%r15, %rcx
	jne	LBB0_7
## %bb.4:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	16(%rbx), %rcx
	cmpq	16(%r14), %rcx
	jne	LBB0_7
## %bb.6:
	movq	24(%rbx), %rcx
	cmpq	24(%r14), %rcx
	je	LBB0_8
LBB0_7:
	movq	%r15, (%rbx)
	movq	%rax, 8(%rbx)
	movups	16(%r14), %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$1, 32(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*48(%rbx)
	movq	%rax, 40(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*72(%rbx)
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	cmpl	$0, 32(%rbx)
	movq	40(%rbx), %r14
	jne	LBB0_14
## %bb.10:
	testq	%r14, %r14
	jle	LBB0_18
## %bb.11:
	cmpq	%r15, %r14
	jle	LBB0_18
## %bb.12:
	cmpq	56(%rbx), %r14
	je	LBB0_18
## %bb.13:
	cmpq	64(%rbx), %r15
	jne	LBB0_14
	jmp	LBB0_18
LBB0_20:
	movq	40(%rbx), %r14
	movq	%rcx, %r15
LBB0_14:
	movl	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_IJK_GLES2_Renderer_Vertices_apply
	movq	%rbx, %rdi
	callq	_IJK_GLES2_Renderer_Vertices_reloadVertex
	movq	%r14, 56(%rbx)
	movq	%r15, 64(%rbx)
	movq	%r14, %rax
	subq	%r15, %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_15
## %bb.16:
	cqto
	idivq	%r14
	movq	%rax, %r14
	jmp	LBB0_17
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %r14d
LBB0_17:
	movq	%rbx, %rdi
	callq	_IJK_GLES2_Renderer_TexCoords_reset
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_IJK_GLES2_Renderer_TexCoords_cropRight
	movq	%rbx, %rdi
	callq	_IJK_GLES2_Renderer_TexCoords_reloadVertex
LBB0_18:
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_glDrawArrays
	leaq	L_.str.1(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	_GL_TRUE@GOTPCREL(%rip), %r12
LBB0_19:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glClear"

	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
L_.str.1:                               ## @.str.1
	.asciz	"glDrawArrays"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IJK_GLES2_Renderer_renderOverlay ; -- Begin function IJK_GLES2_Renderer_renderOverlay
	.p2align	2
_IJK_GLES2_Renderer_renderOverlay:      ; @IJK_GLES2_Renderer_renderOverlay
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #72]
	cbz	x8, LBB0_14
; %bb.2:
	mov	x20, x1
Lloh0:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glClear
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
	ldr	x9, [x19]
	cbz	x20, LBB0_15
; %bb.3:
	ldp	x21, x8, [x20]
	cmp	x9, x21
	b.ne	LBB0_7
; %bb.4:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x9, [x19, #16]
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [x19, #24]
	ldr	x10, [x20, #24]
	cmp	x9, x10
	b.eq	LBB0_8
LBB0_7:
	stp	x21, x8, [x19]
	ldr	q0, [x20, #16]
	str	q0, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #32]
LBB0_8:
	ldr	x8, [x19, #48]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	str	x0, [x19, #40]
	ldr	x8, [x19, #72]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_14
; %bb.9:
	ldr	w8, [x19, #32]
	ldr	x20, [x19, #40]
	cbnz	w8, LBB0_16
; %bb.10:
	cmp	x20, #1
	b.lt	LBB0_17
; %bb.11:
	cmp	x20, x21
	b.le	LBB0_17
; %bb.12:
	ldr	x8, [x19, #56]
	cmp	x20, x8
	b.eq	LBB0_17
; %bb.13:
	ldr	x8, [x19, #64]
	cmp	x21, x8
	b.ne	LBB0_16
	b	LBB0_17
LBB0_14:
Lloh5:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	ldr	x20, [x19, #40]
	mov	x21, x9
LBB0_16:
	str	wzr, [x19, #32]
	mov	x0, x19
	bl	_IJK_GLES2_Renderer_Vertices_apply
	mov	x0, x19
	bl	_IJK_GLES2_Renderer_Vertices_reloadVertex
	stp	x20, x21, [x19, #56]
	sub	x8, x20, x21
	sdiv	x20, x8, x20
	mov	x0, x19
	bl	_IJK_GLES2_Renderer_TexCoords_reset
	mov	x0, x19
	mov	x1, x20
	bl	_IJK_GLES2_Renderer_TexCoords_cropRight
	mov	x0, x19
	bl	_IJK_GLES2_Renderer_TexCoords_reloadVertex
LBB0_17:
Lloh7:
	adrp	x8, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #4
	bl	_glDrawArrays
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
Lloh12:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glClear"

	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
l_.str.1:                               ; @.str.1
	.asciz	"glDrawArrays"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
.subsections_via_symbols
