	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yui_vdp2_update                ## -- Begin function yui_vdp2_update
	.p2align	4, 0x90
_yui_vdp2_update:                       ## @yui_vdp2_update
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_VDP2_DEBUG_STRING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	8(%rbx), %edi
	callq	_YUI_VIEWER
	movl	%eax, %edi
	callq	_yui_viewer_clear
	movl	(%rbx), %edi
	cmpq	$5, %rdi
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_Vdp2DebugStatsGeneral
	jmp	LBB0_8
LBB0_3:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_Vdp2DebugStatsNBG0
	jmp	LBB0_8
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_Vdp2DebugStatsNBG1
	jmp	LBB0_8
LBB0_5:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_Vdp2DebugStatsNBG2
	jmp	LBB0_8
LBB0_6:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_Vdp2DebugStatsNBG3
	jmp	LBB0_8
LBB0_7:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_Vdp2DebugStatsRBG0
LBB0_8:
	movl	(%rbx), %edi
LBB0_9:
	testl	%edi, %edi
	jle	LBB0_11
## %bb.10:
	decl	%edi
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Vdp2DebugTexture
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_yui_vdp2_draw
LBB0_11:
	cmpq	$0, -32(%rbp)
	movl	4(%rbx), %edi
	je	LBB0_13
## %bb.12:
	movq	%r14, %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str(%rip), %rsi
LBB0_14:
	movl	$-1, %edx
	callq	_gtk_text_buffer_set_text
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_VDP2_DEBUG_STRING_SIZE,4,2     ## @VDP2_DEBUG_STRING_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yui_vdp2_update                ; -- Begin function yui_vdp2_update
	.p2align	2
_yui_vdp2_update:                       ; @yui_vdp2_update
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _VDP2_DEBUG_STRING_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VDP2_DEBUG_STRING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x0, #8]
	bl	_YUI_VIEWER
	bl	_yui_viewer_clear
	ldr	w8, [x19]
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.1:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	sub	x1, x29, #32
	mov	x0, x20
	bl	_Vdp2DebugStatsGeneral
	b	LBB0_8
LBB0_3:
	sub	x1, x29, #32
	mov	x0, x20
	bl	_Vdp2DebugStatsNBG0
	b	LBB0_8
LBB0_4:
	sub	x1, x29, #32
	mov	x0, x20
	bl	_Vdp2DebugStatsNBG1
	b	LBB0_8
LBB0_5:
	sub	x1, x29, #32
	mov	x0, x20
	bl	_Vdp2DebugStatsNBG2
	b	LBB0_8
LBB0_6:
	sub	x1, x29, #32
	mov	x0, x20
	bl	_Vdp2DebugStatsNBG3
	b	LBB0_8
LBB0_7:
	sub	x1, x29, #32
	mov	x0, x20
	bl	_Vdp2DebugStatsRBG0
LBB0_8:
	ldr	w8, [x19]
LBB0_9:
	subs	w0, w8, #1
	b.lt	LBB0_11
; %bb.10:
	sub	x1, x29, #36
	sub	x2, x29, #40
	bl	_Vdp2DebugTexture
	mov	x1, x0
	ldp	w3, w2, [x29, #-40]
	mov	x0, x19
	bl	_yui_vdp2_draw
LBB0_11:
	ldur	x8, [x29, #-32]
	ldr	w0, [x19, #4]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x1, x20
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	mov	w2, #-1
	bl	_gtk_text_buffer_set_text
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_VDP2_DEBUG_STRING_SIZE,4,2     ; @VDP2_DEBUG_STRING_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
