	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yui_viewer_save                ## -- Begin function yui_viewer_save
	.p2align	4, 0x90
_yui_viewer_save:                       ## @yui_viewer_save
	.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
	movq	%rdi, %r14
	movq	_GTK_FILE_CHOOSER_ACTION_SAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GTK_STOCK_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GTK_STOCK_SAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	movl	$128, %r8d
	pushq	$0
	pushq	$129
	callq	_gtk_file_chooser_dialog_new
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gtk_widget_show
	movq	%rbx, %rdi
	callq	_GTK_DIALOG
	movl	%eax, %edi
	callq	_gtk_dialog_run
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_GTK_FILE_CHOOSER
	movl	%eax, %edi
	callq	_gtk_file_chooser_get_filename
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_gdk_pixbuf_save
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gtk_widget_destroy             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Please choose a file"

	.comm	_GTK_FILE_CHOOSER_ACTION_SAVE,4,2 ## @GTK_FILE_CHOOSER_ACTION_SAVE
	.comm	_GTK_STOCK_CANCEL,4,2           ## @GTK_STOCK_CANCEL
	.comm	_GTK_STOCK_SAVE,4,2             ## @GTK_STOCK_SAVE
L_.str.1:                               ## @.str.1
	.asciz	"png"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yui_viewer_save                ; -- Begin function yui_viewer_save
	.p2align	2
_yui_viewer_save:                       ; @yui_viewer_save
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GTK_FILE_CHOOSER_ACTION_SAVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GTK_FILE_CHOOSER_ACTION_SAVE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GTK_STOCK_CANCEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GTK_STOCK_CANCEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _GTK_STOCK_SAVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GTK_STOCK_SAVE@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	w4, #128
	mov	w6, #129
	mov	x7, #0
	bl	_gtk_file_chooser_dialog_new
	mov	x20, x0
	bl	_gtk_widget_show
	mov	x0, x20
	bl	_GTK_DIALOG
	bl	_gtk_dialog_run
	cmp	w0, #129
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_GTK_FILE_CHOOSER
	bl	_gtk_file_chooser_get_filename
	mov	x1, x0
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, #0
	mov	x4, #0
	bl	_gdk_pixbuf_save
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gtk_widget_destroy
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Please choose a file"

	.comm	_GTK_FILE_CHOOSER_ACTION_SAVE,4,2 ; @GTK_FILE_CHOOSER_ACTION_SAVE
	.comm	_GTK_STOCK_CANCEL,4,2           ; @GTK_STOCK_CANCEL
	.comm	_GTK_STOCK_SAVE,4,2             ; @GTK_STOCK_SAVE
l_.str.1:                               ; @.str.1
	.asciz	"png"

.subsections_via_symbols
