	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_preview_image             ## -- Begin function init_preview_image
	.p2align	4, 0x90
_init_preview_image:                    ## @init_preview_image
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_live_preview_stop
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_int
	leaq	-28(%rbp), %rsi
	movl	%eax, %edi
	callq	_ghb_lookup_title
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_g_object_unref
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
LBB0_3:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_ghb_widget_int
	leaq	-1(%rax), %rcx
	movq	(%rbx), %rdx
	movq	%rcx, (%rdx)
	movq	24(%rdx), %rcx
	cmpq	$0, -8(%rcx,%rax,8)
	movl	8(%rbx), %edi
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_gtk_widget_hide
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_gtk_widget_show
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_gtk_widget_hide
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_gtk_widget_show
	movl	8(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GTK_PROGRESS_BAR
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_gtk_progress_bar_set_text
	movq	%r15, %rdi
	callq	_GTK_PROGRESS_BAR
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_gtk_progress_bar_set_fraction
LBB0_6:
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_g_object_unref
	movq	(%rbx), %rax
LBB0_8:
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_g_object_unref
	movq	(%rbx), %rax
LBB0_10:
	movq	(%rax), %rsi
	leaq	-36(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ghb_get_preview_image
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	callq	_gdk_pixbuf_get_width
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_gdk_pixbuf_get_height
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_preview_set_size
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"title"

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

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

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

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_preview_image             ; -- Begin function init_preview_image
	.p2align	2
_init_preview_image:                    ; @init_preview_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_live_preview_stop
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_int
	add	x1, sp, #4
	bl	_ghb_lookup_title
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_g_object_unref
	ldr	x8, [x19]
	str	xzr, [x8, #8]
LBB0_3:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GHB_WIDGET
	bl	_ghb_widget_int
	sub	x8, x0, #1
	ldr	x9, [x19]
	str	x8, [x9]
	ldr	x9, [x9, #24]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_WIDGET
	bl	_gtk_widget_hide
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GHB_WIDGET
	bl	_gtk_widget_show
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GHB_WIDGET
	bl	_gtk_widget_hide
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GHB_WIDGET
	bl	_gtk_widget_show
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_GHB_WIDGET
	mov	x21, x0
	bl	_GTK_PROGRESS_BAR
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_gtk_progress_bar_set_text
	mov	x0, x21
	bl	_GTK_PROGRESS_BAR
	mov	w1, #0
	bl	_gtk_progress_bar_set_fraction
LBB0_6:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_g_object_unref
	ldr	x8, [x19]
LBB0_8:
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_g_object_unref
	ldr	x8, [x19]
LBB0_10:
	ldr	x1, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_ghb_get_preview_image
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_gdk_pixbuf_get_width
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_gdk_pixbuf_get_height
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_preview_set_size
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"title"

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

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

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

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

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

.subsections_via_symbols
