	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_glfwInit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movl	$400, %edi                      ## imm = 0x190
	movl	$400, %esi                      ## imm = 0x190
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_glfwSetWindowAspectRatio
	movq	_reshape@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_glfwSetFramebufferSizeCallback
	movq	_key_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_glfwSetKeyCallback
	movq	_mouse_button_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_glfwSetMouseButtonCallback
	movq	_cursor_position_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_glfwSetCursorPosCallback
	movq	%r12, %rdi
	callq	_glfwMakeContextCurrent
	movq	_glfwGetProcAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gladLoadGL
	movl	$1, %edi
	callq	_glfwSwapInterval
	movq	_width@GOTPCREL(%rip), %r14
	movq	_height@GOTPCREL(%rip), %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_glfwGetFramebufferSize
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_reshape
	xorps	%xmm0, %xmm0
	callq	_glfwSetTime
	xorl	%eax, %eax
	callq	_init
	movq	_t@GOTPCREL(%rip), %r14
	movq	_t_old@GOTPCREL(%rip), %rbx
	movq	_dt@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_glfwGetTime
	movq	%rax, (%r14)
	movq	%rax, %rcx
	subq	(%rbx), %rcx
	movq	%rcx, (%r15)
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_display
	movq	%r12, %rdi
	callq	_glfwSwapBuffers
	xorl	%eax, %eax
	callq	_glfwPollEvents
	movq	%r12, %rdi
	callq	_glfwWindowShouldClose
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	callq	_glfwTerminate
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Boing (classic Amiga demo)"

	.comm	_key_callback,4,2               ## @key_callback
	.comm	_mouse_button_callback,4,2      ## @mouse_button_callback
	.comm	_cursor_position_callback,4,2   ## @cursor_position_callback
	.comm	_glfwGetProcAddress,4,2         ## @glfwGetProcAddress
	.comm	_width,4,2                      ## @width
	.comm	_height,4,2                     ## @height
	.comm	_t,8,3                          ## @t
	.comm	_t_old,8,3                      ## @t_old
	.comm	_dt,8,3                         ## @dt
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.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	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
	bl	_glfwInit
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #400
	mov	w1, #400
	mov	x3, #0
	mov	x4, #0
	bl	_glfwCreateWindow
	cbnz	x0, LBB0_4
; %bb.2:
	bl	_glfwTerminate
LBB0_3:
Lloh2:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_exit
LBB0_4:
	mov	x19, x0
	mov	w1, #1
	mov	w2, #1
	bl	_glfwSetWindowAspectRatio
Lloh5:
	adrp	x1, _reshape@GOTPAGE
Lloh6:
	ldr	x1, [x1, _reshape@GOTPAGEOFF]
	mov	x0, x19
	bl	_glfwSetFramebufferSizeCallback
Lloh7:
	adrp	x8, _key_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
Lloh10:
	adrp	x8, _mouse_button_callback@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mouse_button_callback@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetMouseButtonCallback
Lloh13:
	adrp	x8, _cursor_position_callback@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cursor_position_callback@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetCursorPosCallback
	mov	x0, x19
	bl	_glfwMakeContextCurrent
Lloh16:
	adrp	x8, _glfwGetProcAddress@GOTPAGE
Lloh17:
	ldr	x8, [x8, _glfwGetProcAddress@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_gladLoadGL
	mov	w0, #1
	bl	_glfwSwapInterval
Lloh19:
	adrp	x20, _width@GOTPAGE
Lloh20:
	ldr	x20, [x20, _width@GOTPAGEOFF]
Lloh21:
	adrp	x21, _height@GOTPAGE
Lloh22:
	ldr	x21, [x21, _height@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_glfwGetFramebufferSize
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_reshape
	movi	d0, #0000000000000000
	bl	_glfwSetTime
	bl	_init
Lloh23:
	adrp	x20, _t@GOTPAGE
Lloh24:
	ldr	x20, [x20, _t@GOTPAGEOFF]
Lloh25:
	adrp	x21, _t_old@GOTPAGE
Lloh26:
	ldr	x21, [x21, _t_old@GOTPAGEOFF]
Lloh27:
	adrp	x22, _dt@GOTPAGE
Lloh28:
	ldr	x22, [x22, _dt@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_glfwGetTime
	str	x0, [x20]
	ldr	x8, [x21]
	sub	x8, x0, x8
	str	x8, [x22]
	str	x0, [x21]
	bl	_display
	mov	x0, x19
	bl	_glfwSwapBuffers
	bl	_glfwPollEvents
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbz	x0, LBB0_5
; %bb.6:
	bl	_glfwTerminate
Lloh29:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Boing (classic Amiga demo)"

	.comm	_key_callback,4,2               ; @key_callback
	.comm	_mouse_button_callback,4,2      ; @mouse_button_callback
	.comm	_cursor_position_callback,4,2   ; @cursor_position_callback
	.comm	_glfwGetProcAddress,4,2         ; @glfwGetProcAddress
	.comm	_width,4,2                      ; @width
	.comm	_height,4,2                     ; @height
	.comm	_t,8,3                          ; @t
	.comm	_t_old,8,3                      ; @t_old
	.comm	_dt,8,3                         ; @dt
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
