	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmlab_render_custom_view
_dmlab_render_custom_view:              ## @dmlab_render_custom_view
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_re@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	xorl	%eax, %eax
	callq	_dmlab_context
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_SCR_RenderCustomView
	movl	$0, (%r14)
	movl	8(%r14), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	leaq	8(%r14), %rbx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_qglGenBuffers
	movl	(%rbx), %esi
LBB0_2:
	movq	_GL_PIXEL_PACK_BUFFER@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_qglBindBuffer
	movl	%r12d, %eax
	imull	%r15d, %eax
	leal	(%rax,%rax,2), %ebx
	cmpl	%ebx, 4(%r14)
	jge	LBB0_4
## %bb.3:
	movl	%ebx, 4(%r14)
	movl	(%r13), %edi
	movq	_GL_STREAM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_qglBufferData
LBB0_4:
	movq	_GL_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_qglReadPixels
	movl	(%r13), %edi
	movq	_GL_READ_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qglMapBuffer
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	(%r13), %edi
	callq	_qglUnmapBuffer
	movl	(%r13), %edi
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qglBindBuffer                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_re,8,3                         ## @re
	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ## @GL_PIXEL_PACK_BUFFER
	.comm	_GL_STREAM_READ,4,2             ## @GL_STREAM_READ
	.comm	_GL_RGB,4,2                     ## @GL_RGB
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_READ_ONLY,4,2               ## @GL_READ_ONLY
	.no_dead_strip	_dmlab_render_custom_view
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmlab_render_custom_view
_dmlab_render_custom_view:              ; @dmlab_render_custom_view
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _re@GOTPAGE
Lloh1:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	blr	x8
	bl	_dmlab_context
	ldr	x24, [x0]
	bl	_SCR_RenderCustomView
	str	wzr, [x24]
	mov	x22, x24
	ldr	w1, [x22, #8]!
	cbnz	w1, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, x22
	bl	_qglGenBuffers
	ldr	w1, [x22]
LBB0_2:
Lloh3:
	adrp	x23, _GL_PIXEL_PACK_BUFFER@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GL_PIXEL_PACK_BUFFER@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_qglBindBuffer
	mul	w8, w21, w20
	add	w22, w8, w8, lsl #1
	ldr	w8, [x24, #4]
	cmp	w8, w22
	b.ge	LBB0_4
; %bb.3:
	str	w22, [x24, #4]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _GL_STREAM_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_STREAM_READ@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x1, x22
	mov	x2, #0
	bl	_qglBufferData
LBB0_4:
Lloh8:
	adrp	x8, _GL_RGB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_RGB@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	w0, #0
	mov	w1, #0
	mov	x2, x21
	mov	x3, x20
	mov	w6, #0
	bl	_qglReadPixels
	ldr	w0, [x23]
Lloh14:
	adrp	x8, _GL_READ_ONLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_READ_ONLY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_qglMapBuffer
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_memcpy
	ldr	w0, [x23]
	bl	_qglUnmapBuffer
	ldr	w0, [x23]
	mov	w1, #0
	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
	b	_qglBindBuffer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_re,8,3                         ; @re
	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ; @GL_PIXEL_PACK_BUFFER
	.comm	_GL_STREAM_READ,4,2             ; @GL_STREAM_READ
	.comm	_GL_RGB,4,2                     ; @GL_RGB
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_READ_ONLY,4,2               ; @GL_READ_ONLY
	.no_dead_strip	_dmlab_render_custom_view
.subsections_via_symbols
