	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_bcm_host_init
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_state@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%rbx), %rdi
	callq	_init_ogl
	movq	(%rbx), %rdi
	callq	_init_model_proj
	movq	(%rbx), %rdi
	callq	_init_textures
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_load_wavefront
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	movq	_terminate@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_3
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_update_model
	movq	(%rbx), %rdi
	callq	_redraw_scene
	cmpl	$0, (%r14)
	je	LBB0_1
LBB0_3:
	xorl	%eax, %eax
	callq	_exit_func
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,8,3                      ## @state
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"/opt/vc/src/hello_pi/hello_teapot/teapot.obj.dat"

	.comm	_terminate,4,2                  ## @terminate
L_str:                                  ## @str
	.asciz	"Note: ensure you have sufficient gpu_mem configured"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	bl	_bcm_host_init
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x19, _state@GOTPAGE
Lloh3:
	ldr	x19, [x19, _state@GOTPAGEOFF]
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x19]
	bl	_init_ogl
	ldr	x0, [x19]
	bl	_init_model_proj
	ldr	x0, [x19]
	bl	_init_textures
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_load_wavefront
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0]
Lloh6:
	adrp	x20, _terminate@GOTPAGE
Lloh7:
	ldr	x20, [x20, _terminate@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_update_model
	ldr	x0, [x19]
	bl	_redraw_scene
	ldr	w8, [x20]
	cbz	w8, LBB0_1
LBB0_3:
	bl	_exit_func
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_state,8,3                      ; @state
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"/opt/vc/src/hello_pi/hello_teapot/teapot.obj.dat"

	.comm	_terminate,4,2                  ; @terminate
l_str:                                  ; @str
	.asciz	"Note: ensure you have sufficient gpu_mem configured"

.subsections_via_symbols
