	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teapot_gl_init
_teapot_gl_init:                        ## @teapot_gl_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$12, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r15)
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_raspitexutil_gl_init_1_0
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_init_ogl
	movq	%r15, %rdi
	callq	_init_model_proj
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_load_wavefront
	movl	%eax, (%r15)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_vcos_log_error
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/opt/vc/src/hello_pi/hello_teapot/teapot.obj.dat"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to load model from %s\n"

	.no_dead_strip	_teapot_gl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function teapot_gl_init
_teapot_gl_init:                        ; @teapot_gl_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
	mov	x20, x0
	mov	w0, #1
	mov	w1, #12
	bl	_calloc
	mov	x19, x0
	str	x0, [x20, #8]
	ldr	d0, [x20]
	stur	d0, [x0, #4]
	mov	x0, x20
	bl	_raspitexutil_gl_init_1_0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_init_ogl
	mov	x0, x19
	bl	_init_model_proj
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_load_wavefront
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vcos_log_error
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/opt/vc/src/hello_pi/hello_teapot/teapot.obj.dat"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to load model from %s\n"

	.no_dead_strip	_teapot_gl_init
.subsections_via_symbols
