	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_cancel_encode              ## -- Begin function ghb_cancel_encode
	.p2align	4, 0x90
_ghb_cancel_encode:                     ## @ghb_cancel_encode
	.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
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rbx
	cmovneq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_WINDOW
	movq	%rax, %r15
	movq	_GTK_DIALOG_MODAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GTK_MESSAGE_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_GTK_BUTTONS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_gtk_message_dialog_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GTK_DIALOG
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdi
	callq	__
                                        ## kill: def $eax killed $eax def $rax
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	%r13d, %ecx
	movl	$2, %r8d
	movl	%ebx, %r9d
	pushq	$0
	pushq	$4
	pushq	%rax
	pushq	$3
	callq	_gtk_dialog_add_buttons
	addq	$32, %rsp
	movq	%r15, %rdi
	callq	_GTK_DIALOG
	movl	%eax, %edi
	callq	_gtk_dialog_run
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_gtk_widget_destroy
	cmpl	$3, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$2, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_ghb_stop_queue
	movq	_GHB_CANCEL_ALL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_GHB_CANCEL_FINISH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_ghb_stop_queue
	movq	_GHB_CANCEL_CURRENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_GHB_CANCEL_NONE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	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
	.space	1

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

	.comm	_GTK_DIALOG_MODAL,4,2           ## @GTK_DIALOG_MODAL
	.comm	_GTK_MESSAGE_WARNING,4,2        ## @GTK_MESSAGE_WARNING
	.comm	_GTK_BUTTONS_NONE,4,2           ## @GTK_BUTTONS_NONE
L_.str.2:                               ## @.str.2
	.asciz	"%sYour movie will be lost if you don't continue encoding."

L_.str.3:                               ## @.str.3
	.asciz	"Cancel Current and Stop"

L_.str.4:                               ## @.str.4
	.asciz	"Cancel Current, Start Next"

L_.str.5:                               ## @.str.5
	.asciz	"Finish Current, then Stop"

L_.str.6:                               ## @.str.6
	.asciz	"Continue Encoding"

	.comm	_GHB_CANCEL_ALL,4,2             ## @GHB_CANCEL_ALL
	.comm	_GHB_CANCEL_CURRENT,4,2         ## @GHB_CANCEL_CURRENT
	.comm	_GHB_CANCEL_FINISH,4,2          ## @GHB_CANCEL_FINISH
	.comm	_GHB_CANCEL_NONE,4,2            ## @GHB_CANCEL_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_cancel_encode              ; -- Begin function ghb_cancel_encode
	.p2align	2
_ghb_cancel_encode:                     ; @ghb_cancel_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x20, x8, x1, eq
	ldr	w0, [x0, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_WINDOW
	mov	x21, x0
Lloh4:
	adrp	x8, _GTK_DIALOG_MODAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GTK_DIALOG_MODAL@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
Lloh7:
	adrp	x8, _GTK_MESSAGE_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GTK_MESSAGE_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _GTK_BUTTONS_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GTK_BUTTONS_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x5, x20
	bl	_gtk_message_dialog_new
	mov	x20, x0
	bl	_GTK_DIALOG
	mov	x21, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x22, x0
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x23, x0
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x24, x0
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x7, x0
	str	xzr, [sp, #8]
	mov	w8, #4
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	mov	x3, x23
	mov	w4, #2
	mov	x5, x24
	mov	w6, #3
	bl	_gtk_dialog_add_buttons
	mov	x0, x20
	bl	_GTK_DIALOG
	bl	_gtk_dialog_run
	mov	x21, x0
	mov	x0, x20
	bl	_gtk_widget_destroy
	cmp	w21, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.3:
	bl	_ghb_stop_queue
Lloh23:
	adrp	x8, _GHB_CANCEL_ALL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GHB_CANCEL_ALL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh25:
	adrp	x8, _GHB_CANCEL_FINISH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GHB_CANCEL_FINISH@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	bl	_ghb_stop_queue
Lloh27:
	adrp	x8, _GHB_CANCEL_CURRENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GHB_CANCEL_CURRENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh29:
	adrp	x8, _GHB_CANCEL_NONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GHB_CANCEL_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

	.comm	_GTK_DIALOG_MODAL,4,2           ; @GTK_DIALOG_MODAL
	.comm	_GTK_MESSAGE_WARNING,4,2        ; @GTK_MESSAGE_WARNING
	.comm	_GTK_BUTTONS_NONE,4,2           ; @GTK_BUTTONS_NONE
l_.str.2:                               ; @.str.2
	.asciz	"%sYour movie will be lost if you don't continue encoding."

l_.str.3:                               ; @.str.3
	.asciz	"Cancel Current and Stop"

l_.str.4:                               ; @.str.4
	.asciz	"Cancel Current, Start Next"

l_.str.5:                               ; @.str.5
	.asciz	"Finish Current, then Stop"

l_.str.6:                               ; @.str.6
	.asciz	"Continue Encoding"

	.comm	_GHB_CANCEL_ALL,4,2             ; @GHB_CANCEL_ALL
	.comm	_GHB_CANCEL_CURRENT,4,2         ; @GHB_CANCEL_CURRENT
	.comm	_GHB_CANCEL_FINISH,4,2          ; @GHB_CANCEL_FINISH
	.comm	_GHB_CANCEL_NONE,4,2            ; @GHB_CANCEL_NONE
.subsections_via_symbols
