	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_add
_queue_add:                             ## @queue_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_validate_settings
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ghb_array_new
	movq	%rax, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_ghb_finalize_job
	movq	%rbx, %rdi
	callq	_ghb_get_title_settings
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ghb_get_job_settings
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_ghb_value_dup
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_dict_remove
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_remove
	xorl	%eax, %eax
	callq	_ghb_dict_new
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_ghb_dict_set
	movq	%r13, %rdi
	callq	_ghb_value_dup
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_ghb_dict_set
	movq	%r12, %rdi
	callq	_ghb_value_dup
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_ghb_dict_set
	movq	8(%r14), %rdi
	callq	_ghb_value_dup
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_ghb_dict_set
	movq	_GHB_QUEUE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_set_int
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ghb_dict_set_int
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_ghb_array_append
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_add_to_queue_list
	movq	(%r14), %rdi
	callq	_ghb_save_queue
	movq	%r14, %rdi
	callq	_ghb_update_pending
	movq	%r14, %rdi
	callq	_ghb_queue_buttons_grey
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Job"

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

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

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

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

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

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_queue_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_add
_queue_add:                             ; @queue_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	bl	_validate_settings
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.2:
	bl	_ghb_array_new
	str	x0, [x19]
LBB0_3:
	mov	x0, x20
	bl	_ghb_finalize_job
	mov	x0, x20
	bl	_ghb_get_title_settings
	mov	x22, x0
	mov	x0, x20
	bl	_ghb_get_job_settings
	mov	x23, x0
	mov	x0, x20
	bl	_ghb_value_dup
	mov	x20, x0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	mov	x1, x24
	bl	_ghb_dict_remove
Lloh2:
	adrp	x25, l_.str.1@PAGE
Lloh3:
	add	x25, x25, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	bl	_ghb_dict_remove
	bl	_ghb_dict_new
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_ghb_dict_set
	mov	x0, x23
	bl	_ghb_value_dup
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_ghb_dict_set
	mov	x0, x22
	bl	_ghb_value_dup
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_ghb_dict_set
	ldr	x0, [x19, #8]
	bl	_ghb_value_dup
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set
Lloh8:
	adrp	x8, _GHB_QUEUE_PENDING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GHB_QUEUE_PENDING@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set_int
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_ghb_dict_set_int
	ldr	x0, [x19]
	mov	x1, x21
	bl	_ghb_array_append
	mov	x0, x19
	mov	x1, x21
	bl	_add_to_queue_list
	ldr	x0, [x19]
	bl	_ghb_save_queue
	mov	x0, x19
	bl	_ghb_update_pending
	mov	x0, x19
	bl	_ghb_queue_buttons_grey
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Job"

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

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

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

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

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

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_queue_add
.subsections_via_symbols
