	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_queue_file
_open_queue_file:                       ## @open_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, %r12
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_WINDOW
	movq	_GTK_FILE_CHOOSER_ACTION_OPEN@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_OPEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_GTK_RESPONSE_ACCEPT@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	pushq	$0
	pushq	(%r13)
	callq	_gtk_file_chooser_dialog_new
	addq	$16, %rsp
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GTK_FILE_CHOOSER
	movq	%rax, %r14
	movl	8(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_OBJECT
	movl	%eax, %edi
	callq	_GTK_FILE_FILTER
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_gtk_file_filter_set_name
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gtk_file_filter_add_pattern
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gtk_file_chooser_add_filter
	movl	8(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_GHB_OBJECT
	movl	%eax, %edi
	callq	_GTK_FILE_FILTER
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdi
	callq	_gtk_file_filter_set_name
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gtk_file_filter_add_pattern
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gtk_file_filter_add_pattern
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gtk_file_chooser_add_filter
	movq	%r15, %rdi
	callq	_GTK_DIALOG
	movl	%eax, %edi
	callq	_gtk_dialog_run
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_GTK_FILE_CHOOSER
	movq	%rax, %rdi
	callq	_gtk_file_chooser_get_filename
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_gtk_widget_destroy
	movq	%rbx, %rdi
	callq	_ghb_read_settings_file
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ghb_array_len
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rsi
	callq	_ghb_array_append
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_add_to_queue_list
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ghb_array_get
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_ghb_dict_get
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ghb_value_incref
	movq	_GHB_QUEUE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_ghb_dict_set_int
	movq	%rbx, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%edx, %edx
	callq	_ghb_dict_set_int
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_ghb_array_new
	movq	%rax, %rdi
	movq	%rax, (%r12)
	jmp	LBB0_6
LBB0_9:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gtk_widget_destroy             ## TAILCALL
LBB0_7:
	movq	%r12, %rdi
	callq	_ghb_queue_buttons_grey
	movq	(%r12), %rdi
	callq	_ghb_save_queue
	leaq	-64(%rbp), %rdi
	callq	_ghb_value_free
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movq	%rbx, %rdi
	callq	_g_free
	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	"hb_window"

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

	.comm	_GTK_FILE_CHOOSER_ACTION_OPEN,4,2 ## @GTK_FILE_CHOOSER_ACTION_OPEN
	.comm	_GHB_STOCK_CANCEL,4,2           ## @GHB_STOCK_CANCEL
	.comm	_GTK_RESPONSE_CANCEL,4,2        ## @GTK_RESPONSE_CANCEL
	.comm	_GHB_STOCK_OPEN,4,2             ## @GHB_STOCK_OPEN
	.comm	_GTK_RESPONSE_ACCEPT,8,3        ## @GTK_RESPONSE_ACCEPT
L_.str.2:                               ## @.str.2
	.asciz	"QueueFilterAll"

L_.str.3:                               ## @.str.3
	.asciz	"All"

L_.str.4:                               ## @.str.4
	.asciz	"*"

L_.str.5:                               ## @.str.5
	.asciz	"QueueFilterJSON"

L_.str.6:                               ## @.str.6
	.asciz	"JSON"

L_.str.7:                               ## @.str.7
	.asciz	"*.JSON"

L_.str.8:                               ## @.str.8
	.asciz	"*.json"

L_.str.9:                               ## @.str.9
	.asciz	"uiSettings"

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

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

	.no_dead_strip	_open_queue_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_queue_file
_open_queue_file:                       ; @open_queue_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_WINDOW
	mov	x1, x0
Lloh2:
	adrp	x8, _GTK_FILE_CHOOSER_ACTION_OPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GTK_FILE_CHOOSER_ACTION_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _GHB_STOCK_CANCEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GHB_STOCK_CANCEL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _GTK_RESPONSE_CANCEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GTK_RESPONSE_CANCEL@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _GHB_STOCK_OPEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GHB_STOCK_OPEN@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
Lloh14:
	adrp	x23, _GTK_RESPONSE_ACCEPT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _GTK_RESPONSE_ACCEPT@GOTPAGEOFF]
	ldr	x6, [x23]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x7, #0
	bl	_gtk_file_chooser_dialog_new
	mov	x21, x0
	bl	_GTK_FILE_CHOOSER
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_OBJECT
	bl	_GTK_FILE_FILTER
	mov	x22, x0
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x22
	bl	_gtk_file_filter_set_name
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_gtk_file_filter_add_pattern
	mov	x0, x20
	mov	x1, x22
	bl	_gtk_file_chooser_add_filter
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_GHB_OBJECT
	bl	_GTK_FILE_FILTER
	mov	x22, x0
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_gtk_file_filter_set_name
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_gtk_file_filter_add_pattern
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_gtk_file_filter_add_pattern
	mov	x0, x20
	mov	x1, x22
	bl	_gtk_file_chooser_add_filter
	mov	x0, x21
	bl	_GTK_DIALOG
	bl	_gtk_dialog_run
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_GTK_FILE_CHOOSER
	bl	_gtk_file_chooser_get_filename
	mov	x20, x0
	mov	x0, x21
	bl	_gtk_widget_destroy
	mov	x0, x20
	bl	_ghb_read_settings_file
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	str	x20, [sp]                       ; 8-byte Folded Spill
	bl	_ghb_array_len
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x22, x0
	mov	w23, #0
Lloh32:
	adrp	x24, l_.str.9@PAGE
Lloh33:
	add	x24, x24, l_.str.9@PAGEOFF
Lloh34:
	adrp	x20, _GHB_QUEUE_PENDING@GOTPAGE
Lloh35:
	ldr	x20, [x20, _GHB_QUEUE_PENDING@GOTPAGEOFF]
Lloh36:
	adrp	x25, l_.str.10@PAGE
Lloh37:
	add	x25, x25, l_.str.10@PAGEOFF
Lloh38:
	adrp	x26, l_.str.11@PAGE
Lloh39:
	add	x26, x26, l_.str.11@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x27
	bl	_ghb_array_append
	mov	x0, x19
	mov	x1, x27
	bl	_add_to_queue_list
	add	w23, w23, #1
	cmp	w22, w23
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ghb_array_get
	mov	x27, x0
	mov	x1, x24
	bl	_ghb_dict_get
	mov	x28, x0
	mov	x0, x27
	bl	_ghb_value_incref
	ldr	w2, [x20]
	mov	x0, x28
	mov	x1, x25
	bl	_ghb_dict_set_int
	mov	x0, x28
	mov	x1, x26
	mov	w2, #0
	bl	_ghb_dict_set_int
	ldr	x0, [x19]
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ghb_array_new
	str	x0, [x19]
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_gtk_widget_destroy
LBB0_8:
	mov	x0, x19
	bl	_ghb_queue_buttons_grey
	ldr	x0, [x19]
	bl	_ghb_save_queue
	add	x0, sp, #8
	bl	_ghb_value_free
	ldr	x20, [sp]                       ; 8-byte Folded Reload
LBB0_9:
	mov	x0, x20
	bl	_g_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_window"

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

	.comm	_GTK_FILE_CHOOSER_ACTION_OPEN,4,2 ; @GTK_FILE_CHOOSER_ACTION_OPEN
	.comm	_GHB_STOCK_CANCEL,4,2           ; @GHB_STOCK_CANCEL
	.comm	_GTK_RESPONSE_CANCEL,4,2        ; @GTK_RESPONSE_CANCEL
	.comm	_GHB_STOCK_OPEN,4,2             ; @GHB_STOCK_OPEN
	.comm	_GTK_RESPONSE_ACCEPT,8,3        ; @GTK_RESPONSE_ACCEPT
l_.str.2:                               ; @.str.2
	.asciz	"QueueFilterAll"

l_.str.3:                               ; @.str.3
	.asciz	"All"

l_.str.4:                               ; @.str.4
	.asciz	"*"

l_.str.5:                               ; @.str.5
	.asciz	"QueueFilterJSON"

l_.str.6:                               ; @.str.6
	.asciz	"JSON"

l_.str.7:                               ; @.str.7
	.asciz	"*.JSON"

l_.str.8:                               ; @.str.8
	.asciz	"*.json"

l_.str.9:                               ; @.str.9
	.asciz	"uiSettings"

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

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

	.no_dead_strip	_open_queue_file
.subsections_via_symbols
