	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function submit_job
_submit_job:                            ## @submit_job
	.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, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_g_debug
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_ghb_dict_get
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_dict_get_bool
	movq	%rax, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r13
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	cmpl	$1, %eax
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.6(%rip), %rax
	cmovneq	%rax, %rdx
	testq	%r12, %r12
	leaq	L_.str.7(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.8(%rip), %rdi
	movq	%r13, %rcx
	callq	_ghb_log
	movq	_GHB_QUEUE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_set_int
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_start_new_log
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_ghb_dict_get
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ghb_queue_handle
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_ghb_add_job
	movl	%eax, %r15d
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ghb_dict_set_int
	xorl	%edi, %edi
	callq	_time
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ghb_dict_set_int
	xorl	%eax, %eax
	callq	_ghb_start_queue
	movl	(%r14), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_ghb_find_queue_job
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ghb_queue_progress_set_visible ## TAILCALL
LBB0_1:
	addq	$8, %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	"submit_job"

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

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

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

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

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

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"Modified "

L_.str.8:                               ## @.str.8
	.asciz	"%s%sPreset: %s"

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

	.comm	_GHB_QUEUE_RUNNING,4,2          ## @GHB_QUEUE_RUNNING
L_.str.10:                              ## @.str.10
	.asciz	"Job"

L_.str.11:                              ## @.str.11
	.asciz	"job_unique_id"

L_.str.12:                              ## @.str.12
	.asciz	"job_start_time"

	.no_dead_strip	_submit_job
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function submit_job
_submit_job:                            ; @submit_job
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_debug
	cbz	x21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_dict_get_bool
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_string
	mov	x23, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
Lloh10:
	adrp	x8, l_.str.6@PAGE
Lloh11:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh12:
	adrp	x9, l_.str.5@PAGE
Lloh13:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w0, #1
	csel	x2, x9, x8, eq
Lloh14:
	adrp	x9, l_.str.7@PAGE
Lloh15:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	x22, #0
	csel	x1, x8, x9, eq
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x3, x23
	bl	_ghb_log
Lloh18:
	adrp	x8, _GHB_QUEUE_RUNNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GHB_QUEUE_RUNNING@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set_int
	mov	x0, x19
	mov	x1, x20
	bl	_start_new_log
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get
	mov	x21, x0
	bl	_ghb_queue_handle
	mov	x1, x21
	bl	_ghb_add_job
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_ghb_dict_set_int
	mov	x0, #0
	bl	_time
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.12@PAGE
Lloh28:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set_int
	bl	_ghb_start_queue
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, #0
	bl	_ghb_find_queue_job
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ghb_queue_progress_set_visible
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"submit_job"

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

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

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

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

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

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"Modified "

l_.str.8:                               ; @.str.8
	.asciz	"%s%sPreset: %s"

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

	.comm	_GHB_QUEUE_RUNNING,4,2          ; @GHB_QUEUE_RUNNING
l_.str.10:                              ; @.str.10
	.asciz	"Job"

l_.str.11:                              ; @.str.11
	.asciz	"job_unique_id"

l_.str.12:                              ; @.str.12
	.asciz	"job_start_time"

	.no_dead_strip	_submit_job
.subsections_via_symbols
