	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_reload_queue               ## -- Begin function ghb_reload_queue
	.p2align	4, 0x90
_ghb_reload_queue:                      ## @ghb_reload_queue
	.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, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_g_debug
	xorl	%eax, %eax
	callq	_ghb_find_pid_file
	testq	%rax, %rax
	js	LBB0_17
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %r15
	leaq	L_.str.2(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rbx, %rdi
	callq	_ghb_load_old_queue
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_ghb_remove_old_queue_file
	movq	-48(%rbp), %rdi
	callq	_ghb_array_len
	testq	%rax, %rax
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	incq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ghb_array_remove
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-2(%rbx), %r13
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ghb_array_get
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ghb_dict_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ghb_dict_get_value
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ghb_dict_get_int
	movq	_GHB_QUEUE_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_GHB_QUEUE_CANCELED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ghb_array_len
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_ghb_value_free
	xorl	%eax, %eax
	callq	_ghb_find_pid_file
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_2
	jmp	LBB0_17
LBB0_12:
	movq	%rax, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_GTK_TOGGLE_TOOL_BUTTON
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_gtk_toggle_tool_button_set_active
	movq	-48(%rbp), %rdi
	movq	%rdi, (%rbx)
	testq	%r13, %r13
	jle	LBB0_16
## %bb.13:
	decq	%r13
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_ghb_array_get
	movq	%rax, %r14
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_ghb_dict_set_int
	movq	_GHB_QUEUE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ghb_dict_set_int
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_add_to_queue_list
	cmpq	%rbx, %r13
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rdi
	incq	%rbx
	jmp	LBB0_14
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ghb_queue_buttons_grey
	movq	(%rbx), %rdi
	callq	_ghb_save_queue
	movq	%rbx, %rdi
	callq	_ghb_update_pending
	movq	%rbx, %rdi
	callq	_ghb_queue_selection_init
LBB0_17:
	xorl	%eax, %eax
	callq	_ghb_write_pid_file
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	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	"ghb_reload_queue"

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

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

	.comm	_GHB_QUEUE_DONE,8,3             ## @GHB_QUEUE_DONE
	.comm	_GHB_QUEUE_CANCELED,8,3         ## @GHB_QUEUE_CANCELED
L_.str.3:                               ## @.str.3
	.asciz	"show_queue"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.4:                               ## @.str.4
	.asciz	"job_unique_id"

	.comm	_GHB_QUEUE_PENDING,4,2          ## @GHB_QUEUE_PENDING
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_reload_queue               ; -- Begin function ghb_reload_queue
	.p2align	2
_ghb_reload_queue:                      ; @ghb_reload_queue
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_debug
	bl	_ghb_find_pid_file
	tbnz	x0, #63, LBB0_16
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh4:
	adrp	x24, _GHB_QUEUE_DONE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GHB_QUEUE_DONE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _GHB_QUEUE_CANCELED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GHB_QUEUE_CANCELED@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.2@PAGE
Lloh9:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x22
	bl	_ghb_load_old_queue
	str	x0, [sp, #8]
	mov	x0, x22
	bl	_ghb_remove_old_queue_file
	ldr	x0, [sp, #8]
	bl	_ghb_array_len
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x0, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_ghb_array_remove
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	sub	x26, x26, #1
	cmp	x26, #1
	b.ls	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x22, x26, #2
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_ghb_array_get
	mov	x1, x20
	bl	_ghb_dict_get
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x23, x0
	mov	x1, x21
	bl	_ghb_dict_get_value
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x23
	mov	x1, x21
	bl	_ghb_dict_get_int
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_4
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	bl	_ghb_array_len
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	bl	_ghb_value_free
	bl	_ghb_find_pid_file
	mov	x22, x0
	tbz	x0, #63, LBB0_2
	b	LBB0_16
LBB0_11:
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_TOGGLE_TOOL_BUTTON
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_gtk_toggle_tool_button_set_active
	ldr	x0, [sp, #8]
	str	x0, [x19]
	subs	x26, x22, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x20, #0
Lloh15:
	adrp	x21, l_.str.1@PAGE
Lloh16:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh17:
	adrp	x22, l_.str.4@PAGE
Lloh18:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh19:
	adrp	x27, _GHB_QUEUE_PENDING@GOTPAGE
Lloh20:
	ldr	x27, [x27, _GHB_QUEUE_PENDING@GOTPAGEOFF]
Lloh21:
	adrp	x23, l_.str.2@PAGE
Lloh22:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_ghb_array_get
	mov	x24, x0
	mov	x1, x21
	bl	_ghb_dict_get
	mov	x25, x0
	mov	x1, x22
	mov	w2, #0
	bl	_ghb_dict_set_int
	ldr	w2, [x27]
	mov	x0, x25
	mov	x1, x23
	bl	_ghb_dict_set_int
	mov	x0, x19
	mov	x1, x24
	bl	_add_to_queue_list
	cmp	x26, x20
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [sp, #8]
	add	x20, x20, #1
	b	LBB0_13
LBB0_15:
	mov	x0, x19
	bl	_ghb_queue_buttons_grey
	ldr	x0, [x19]
	bl	_ghb_save_queue
	mov	x0, x19
	bl	_ghb_update_pending
	mov	x0, x19
	bl	_ghb_queue_selection_init
LBB0_16:
	bl	_ghb_write_pid_file
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ghb_reload_queue"

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

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

	.comm	_GHB_QUEUE_DONE,8,3             ; @GHB_QUEUE_DONE
	.comm	_GHB_QUEUE_CANCELED,8,3         ; @GHB_QUEUE_CANCELED
l_.str.3:                               ; @.str.3
	.asciz	"show_queue"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.4:                               ; @.str.4
	.asciz	"job_unique_id"

	.comm	_GHB_QUEUE_PENDING,4,2          ; @GHB_QUEUE_PENDING
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
