	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function render
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_render
	.p2align	4, 0x90
_render:                                ## @render
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_renderWidth@GOTPCREL(%rip), %r15
	movq	_renderHeight@GOTPCREL(%rip), %r12
	cmpl	%edi, (%r15)
	jne	LBB0_2
## %bb.1:
	cmpl	%r14d, (%r12)
	je	LBB0_3
LBB0_2:
	movaps	L___const.render.clearColor(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_tigerMaxX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tigerMinX@GOTPCREL(%rip), %r13
	subl	(%r13), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	movq	_egldisplay@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_eglsurface@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eglSwapBuffers
	movq	_VG_CLEAR_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movl	$4, %esi
	callq	_vgSetfv
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_vgClear
	xorl	%eax, %eax
	callq	_vgLoadIdentity
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	callq	_vgScale
	movq	_tigerMinY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	negl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	xorl	%edi, %edi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r14d, %xmm1
	subl	(%r13), %edi
	movq	_tigerMaxY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%eax, %ecx
	cvtsi2ss	%ecx, %xmm2
	divss	-68(%rbp), %xmm1                ## 4-byte Folded Reload
	subss	%xmm2, %xmm1
	mulss	LCPI0_0(%rip), %xmm1
	addss	%xmm0, %xmm1
	cvttss2si	%xmm1, %esi
	callq	_vgTranslate
	movq	_tiger@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PS_render
	xorl	%eax, %eax
	callq	_vgGetError
	movq	_VG_NO_ERROR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	%ebx, (%r15)
	movl	%r14d, (%r12)
LBB0_3:
	movq	_egldisplay@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_eglsurface@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eglSwapBuffers
	xorl	%eax, %eax
	callq	_eglGetError
	movq	_EGL_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_renderWidth,4,2                ## @renderWidth
	.comm	_renderHeight,4,2               ## @renderHeight
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.render.clearColor
L___const.render.clearColor:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1

	.comm	_tigerMaxX,4,2                  ## @tigerMaxX
	.comm	_tigerMinX,4,2                  ## @tigerMinX
	.comm	_egldisplay,4,2                 ## @egldisplay
	.comm	_eglsurface,4,2                 ## @eglsurface
	.comm	_VG_CLEAR_COLOR,4,2             ## @VG_CLEAR_COLOR
	.comm	_tigerMinY,4,2                  ## @tigerMinY
	.comm	_tigerMaxY,4,2                  ## @tigerMaxY
	.comm	_tiger,4,2                      ## @tiger
	.comm	_VG_NO_ERROR,8,3                ## @VG_NO_ERROR
	.comm	_EGL_SUCCESS,8,3                ## @EGL_SUCCESS
	.comm	_rotateN,4,2                    ## @rotateN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render                         ; -- Begin function render
	.p2align	2
_render:                                ; @render
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x21, _renderWidth@GOTPAGE
Lloh4:
	ldr	x21, [x21, _renderWidth@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh5:
	adrp	x22, _renderHeight@GOTPAGE
Lloh6:
	ldr	x22, [x22, _renderHeight@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w0
	ccmp	w9, w1, #0, eq
Lloh7:
	adrp	x23, _egldisplay@GOTPAGE
Lloh8:
	ldr	x23, [x23, _egldisplay@GOTPAGEOFF]
Lloh9:
	adrp	x24, _eglsurface@GOTPAGE
Lloh10:
	ldr	x24, [x24, _eglsurface@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh11:
	adrp	x8, l___const.render.clearColor@PAGE
Lloh12:
	add	x8, x8, l___const.render.clearColor@PAGEOFF
Lloh13:
	ldr	q0, [x8]
	str	q0, [sp]
Lloh14:
	adrp	x8, _tigerMaxX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tigerMaxX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x25, _tigerMinX@GOTPAGE
Lloh18:
	ldr	x25, [x25, _tigerMinX@GOTPAGEOFF]
	ldr	w9, [x25]
	sub	w8, w8, w9
	sdiv	w8, w0, w8
	scvtf	s8, w8
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_eglSwapBuffers
Lloh19:
	adrp	x8, _VG_CLEAR_COLOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VG_CLEAR_COLOR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x2, sp
	mov	w1, #4
	bl	_vgSetfv
	mov	w0, #0
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_vgClear
	bl	_vgLoadIdentity
	fmov	s0, s8
	fmov	s1, s8
	bl	_vgScale
	ldr	w8, [x25]
Lloh22:
	adrp	x9, _tigerMinY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _tigerMinY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	neg	w10, w9
	scvtf	s0, w10
	scvtf	s1, w19
	fdiv	s1, s1, s8
Lloh25:
	adrp	x10, _tigerMaxY@GOTPAGE
Lloh26:
	ldr	x10, [x10, _tigerMaxY@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	sub	w9, w10, w9
	scvtf	s2, w9
	neg	w0, w8
	fsub	s1, s1, s2
	fmov	s2, #0.50000000
	fmadd	s0, s1, s2, s0
	fcvtzs	w1, s0
	bl	_vgTranslate
Lloh28:
	adrp	x8, _tiger@GOTPAGE
Lloh29:
	ldr	x8, [x8, _tiger@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_PS_render
	bl	_vgGetError
Lloh31:
	adrp	x8, _VG_NO_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VG_NO_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	str	w20, [x21]
	str	w19, [x22]
LBB0_2:
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_eglSwapBuffers
	bl	_eglGetError
Lloh34:
	adrp	x8, _EGL_SUCCESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EGL_SUCCESS@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [sp, #24]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAddLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_renderWidth,4,2                ; @renderWidth
	.comm	_renderHeight,4,2               ; @renderHeight
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.render.clearColor
l___const.render.clearColor:
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1

	.comm	_tigerMaxX,4,2                  ; @tigerMaxX
	.comm	_tigerMinX,4,2                  ; @tigerMinX
	.comm	_egldisplay,4,2                 ; @egldisplay
	.comm	_eglsurface,4,2                 ; @eglsurface
	.comm	_VG_CLEAR_COLOR,4,2             ; @VG_CLEAR_COLOR
	.comm	_tigerMinY,4,2                  ; @tigerMinY
	.comm	_tigerMaxY,4,2                  ; @tigerMaxY
	.comm	_tiger,4,2                      ; @tiger
	.comm	_VG_NO_ERROR,8,3                ; @VG_NO_ERROR
	.comm	_EGL_SUCCESS,8,3                ; @EGL_SUCCESS
	.comm	_rotateN,4,2                    ; @rotateN
.subsections_via_symbols
