	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yui_vdp1_view_cursor_changed
_yui_vdp1_view_cursor_changed:          ## @yui_vdp1_view_cursor_changed
	.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
	movl	$4128, %eax                     ## imm = 0x1020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_GTK_TREE_VIEW
	leaq	-4160(%rbp), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_gtk_tree_view_get_cursor
	cmpq	$0, -4160(%rbp)
	je	LBB0_2
## %bb.1:
	movl	20(%rbx), %edi
	callq	_YUI_VIEWER
	movl	%eax, %edi
	callq	_yui_viewer_clear
	movq	-4160(%rbp), %rdi
	callq	_gtk_tree_path_to_string
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-4148(%rbp), %rdx
	movq	%rax, %rdi
	callq	_sscanf
	movl	-4148(%rbp), %edi
	movl	%edi, (%rbx)
	leaq	-4144(%rbp), %r15
	movq	%r15, %rsi
	callq	_Vdp1DebugCommand
	movl	16(%rbx), %r12d
	movq	%r15, %rdi
	callq	_g_strstrip
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_gtk_text_buffer_set_text
	movl	-4148(%rbp), %edi
	leaq	8(%rbx), %rsi
	leaq	4(%rbx), %rdx
	callq	_Vdp1DebugTexture
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_yui_vdp1_draw
	movq	%r14, %rdi
	callq	_g_free
	movq	-4160(%rbp), %rdi
	callq	_gtk_tree_path_free
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$4128, %rsp                     ## imm = 0x1020
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i"

	.no_dead_strip	_yui_vdp1_view_cursor_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yui_vdp1_view_cursor_changed
_yui_vdp1_view_cursor_changed:          ; @yui_vdp1_view_cursor_changed
	.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
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x19, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_GTK_TREE_VIEW
	add	x1, sp, #16
	mov	x2, #0
	bl	_gtk_tree_view_get_cursor
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #20]
	bl	_YUI_VIEWER
	bl	_yui_viewer_clear
	ldr	x0, [sp, #16]
	bl	_gtk_tree_path_to_string
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	ldr	w0, [sp, #12]
	str	w0, [x19]
	add	x1, sp, #24
	bl	_Vdp1DebugCommand
	ldr	w21, [x19, #16]
	add	x0, sp, #24
	bl	_g_strstrip
	mov	x1, x0
	mov	x0, x21
	mov	w2, #-1
	bl	_gtk_text_buffer_set_text
	ldr	w0, [sp, #12]
	add	x1, x19, #8
	add	x2, x19, #4
	bl	_Vdp1DebugTexture
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_yui_vdp1_draw
	mov	x0, x20
	bl	_g_free
	ldr	x0, [sp, #16]
	bl	_gtk_tree_path_free
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i"

	.no_dead_strip	_yui_vdp1_view_cursor_changed
.subsections_via_symbols
