	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_queue_file
_save_queue_file:                       ## @save_queue_file
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_ghb_value_dup
	movq	%rax, -48(%rbp)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ghb_array_len
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_ghb_array_get
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_ghb_dict_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GHB_QUEUE_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ghb_dict_set_int
	jmp	LBB0_4
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_WINDOW
	movq	_GTK_FILE_CHOOSER_ACTION_SAVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GHB_STOCK_CANCEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_GTK_RESPONSE_CANCEL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_GHB_STOCK_SAVE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_GTK_RESPONSE_ACCEPT@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	pushq	$0
	pushq	(%r14)
	callq	_gtk_file_chooser_dialog_new
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GTK_FILE_CHOOSER
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_gtk_file_chooser_set_current_name
	movq	%rbx, %rdi
	callq	_GTK_DIALOG
	movl	%eax, %edi
	callq	_gtk_dialog_run
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_GTK_FILE_CHOOSER
	movl	%eax, %edi
	callq	_gtk_file_chooser_get_filename
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_gtk_widget_destroy
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ghb_write_settings_file
	movq	%r14, %rdi
	callq	_g_free
	leaq	-48(%rbp), %rdi
	callq	_ghb_value_free
	jmp	LBB0_8
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_ghb_value_free
	movq	%rbx, %rdi
	callq	_gtk_widget_destroy
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uiSettings"

L_.str.1:                               ## @.str.1
	.asciz	"job_status"

	.comm	_GHB_QUEUE_PENDING,4,2          ## @GHB_QUEUE_PENDING
L_.str.2:                               ## @.str.2
	.asciz	"hb_window"

L_.str.3:                               ## @.str.3
	.asciz	"Queue Destination"

	.comm	_GTK_FILE_CHOOSER_ACTION_SAVE,4,2 ## @GTK_FILE_CHOOSER_ACTION_SAVE
	.comm	_GHB_STOCK_CANCEL,4,2           ## @GHB_STOCK_CANCEL
	.comm	_GTK_RESPONSE_CANCEL,4,2        ## @GTK_RESPONSE_CANCEL
	.comm	_GHB_STOCK_SAVE,4,2             ## @GHB_STOCK_SAVE
	.comm	_GTK_RESPONSE_ACCEPT,8,3        ## @GTK_RESPONSE_ACCEPT
L_.str.4:                               ## @.str.4
	.asciz	"queue.json"

	.no_dead_strip	_save_queue_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_queue_file
_save_queue_file:                       ; @save_queue_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_ghb_value_dup
	mov	x19, x0
	str	x0, [sp, #8]
	bl	_ghb_array_len
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _GHB_QUEUE_PENDING@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GHB_QUEUE_PENDING@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x22
	bl	_ghb_array_get
	mov	x1, x23
	bl	_ghb_dict_get
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x25]
	mov	x1, x24
	bl	_ghb_dict_set_int
	b	LBB0_2
LBB0_5:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_WINDOW
	mov	x1, x0
Lloh8:
	adrp	x8, _GTK_FILE_CHOOSER_ACTION_SAVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GTK_FILE_CHOOSER_ACTION_SAVE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _GHB_STOCK_CANCEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GHB_STOCK_CANCEL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _GTK_RESPONSE_CANCEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GTK_RESPONSE_CANCEL@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x8, _GHB_STOCK_SAVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GHB_STOCK_SAVE@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
Lloh20:
	adrp	x21, _GTK_RESPONSE_ACCEPT@GOTPAGE
Lloh21:
	ldr	x21, [x21, _GTK_RESPONSE_ACCEPT@GOTPAGEOFF]
	ldr	x6, [x21]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x7, #0
	bl	_gtk_file_chooser_dialog_new
	mov	x20, x0
	bl	_GTK_FILE_CHOOSER
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_gtk_file_chooser_set_current_name
	mov	x0, x20
	bl	_GTK_DIALOG
	bl	_gtk_dialog_run
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_GTK_FILE_CHOOSER
	bl	_gtk_file_chooser_get_filename
	mov	x21, x0
	mov	x0, x20
	bl	_gtk_widget_destroy
	mov	x0, x21
	mov	x1, x19
	bl	_ghb_write_settings_file
	mov	x0, x21
	bl	_g_free
	add	x0, sp, #8
	bl	_ghb_value_free
	b	LBB0_8
LBB0_7:
	add	x0, sp, #8
	bl	_ghb_value_free
	mov	x0, x20
	bl	_gtk_widget_destroy
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uiSettings"

l_.str.1:                               ; @.str.1
	.asciz	"job_status"

	.comm	_GHB_QUEUE_PENDING,4,2          ; @GHB_QUEUE_PENDING
l_.str.2:                               ; @.str.2
	.asciz	"hb_window"

l_.str.3:                               ; @.str.3
	.asciz	"Queue Destination"

	.comm	_GTK_FILE_CHOOSER_ACTION_SAVE,4,2 ; @GTK_FILE_CHOOSER_ACTION_SAVE
	.comm	_GHB_STOCK_CANCEL,4,2           ; @GHB_STOCK_CANCEL
	.comm	_GTK_RESPONSE_CANCEL,4,2        ; @GTK_RESPONSE_CANCEL
	.comm	_GHB_STOCK_SAVE,4,2             ; @GHB_STOCK_SAVE
	.comm	_GTK_RESPONSE_ACCEPT,8,3        ; @GTK_RESPONSE_ACCEPT
l_.str.4:                               ; @.str.4
	.asciz	"queue.json"

	.no_dead_strip	_save_queue_file
.subsections_via_symbols
