	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_Init                     ## -- Begin function GLimp_Init
	.p2align	4, 0x90
_GLimp_Init:                            ## @GLimp_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_r_colorbits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$16, (%rax)
	movq	_r_depthbits@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	$24, (%rax)
	xorl	%eax, %eax
	callq	_GLimp_CommonPreInit
	movq	_OSMESA_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_OSMesaCreateContextExt
	movq	_osmesa_ctx@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Sys_Error
LBB0_2:
	movq	_glConfig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	4(%rax), %edi
	shll	$2, %edi
	movl	$4, %esi
	callq	_calloc
	movq	_osmesa_frame_buffer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_Sys_Error
LBB0_4:
	movq	_ri@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	*(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_GLimp_CommonPostInit           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r_colorbits,8,3                ## @r_colorbits
	.comm	_r_depthbits,8,3                ## @r_depthbits
	.comm	_OSMESA_RGBA,4,2                ## @OSMESA_RGBA
	.comm	_osmesa_ctx,4,2                 ## @osmesa_ctx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OSMesaCreateContext failed!"

	.comm	_glConfig,8,2                   ## @glConfig
	.comm	_osmesa_frame_buffer,4,2        ## @osmesa_frame_buffer
L_.str.1:                               ## @.str.1
	.asciz	"Alloc image buffer failed!"

	.comm	_ri,8,3                         ## @ri
L_.str.2:                               ## @.str.2
	.asciz	"r_drawBuffer"

L_.str.3:                               ## @.str.3
	.asciz	"GL_FRONT"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_Init                     ; -- Begin function GLimp_Init
	.p2align	2
_GLimp_Init:                            ; @GLimp_Init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _r_colorbits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_colorbits@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #16
	str	w9, [x8]
Lloh3:
	adrp	x19, _r_depthbits@GOTPAGE
Lloh4:
	ldr	x19, [x19, _r_depthbits@GOTPAGEOFF]
	ldr	x8, [x19]
	mov	w9, #24
	str	w9, [x8]
	bl	_GLimp_CommonPreInit
Lloh5:
	adrp	x8, _OSMESA_RGBA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSMESA_RGBA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_OSMesaCreateContextExt
Lloh8:
	adrp	x8, _osmesa_ctx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _osmesa_ctx@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Sys_Error
LBB0_2:
Lloh13:
	adrp	x8, _glConfig@GOTPAGE
Lloh14:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
	ldp	w9, w8, [x8]
	mul	w8, w9, w8
	lsl	w0, w8, #2
	mov	w1, #4
	bl	_calloc
Lloh15:
	adrp	x8, _osmesa_frame_buffer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _osmesa_frame_buffer@GOTPAGEOFF]
Lloh17:
	str	w0, [x8]
	cbnz	w0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Sys_Error
LBB0_4:
Lloh20:
	adrp	x8, _ri@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	blr	x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_GLimp_CommonPostInit
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_r_colorbits,8,3                ; @r_colorbits
	.comm	_r_depthbits,8,3                ; @r_depthbits
	.comm	_OSMESA_RGBA,4,2                ; @OSMESA_RGBA
	.comm	_osmesa_ctx,4,2                 ; @osmesa_ctx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OSMesaCreateContext failed!"

	.comm	_glConfig,8,2                   ; @glConfig
	.comm	_osmesa_frame_buffer,4,2        ; @osmesa_frame_buffer
l_.str.1:                               ; @.str.1
	.asciz	"Alloc image buffer failed!"

	.comm	_ri,8,3                         ; @ri
l_.str.2:                               ; @.str.2
	.asciz	"r_drawBuffer"

l_.str.3:                               ; @.str.3
	.asciz	"GL_FRONT"

.subsections_via_symbols
