	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_new_log
_start_new_log:                         ## @start_new_log
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_ghb_queue_select_log
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_gtk_text_buffer_set_text
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_localtime
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_g_path_get_basename
	movq	%rax, %r13
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_ghb_dict_get_bool
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_g_path_get_dirname
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.3(%rip), %rdi
	callq	_ghb_get_user_config_dir
LBB0_3:
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_g_strrstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	$0, (%rax)
LBB0_5:
	movl	$1900, %ecx                     ## imm = 0x76C
	addq	24(%rbx), %rcx
	movq	16(%rbx), %r8
	incq	%r8
	movl	12(%rbx), %r9d
	movl	8(%rbx), %r10d
	movl	(%rbx), %r11d
	movl	4(%rbx), %ebx
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_g_strdup_printf
	addq	$32, %rsp
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_g_free
	movq	%r14, %rdi
	callq	_g_free
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_g_io_channel_unref
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_g_io_channel_new_file
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	callq	_hb_get_version
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_hb_get_build
	leaq	L_.str.7(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_g_strdup_printf
	movq	%rax, %rbx
	movq	(%r15), %rdi
	movq	%rax, %rsi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_g_io_channel_write_chars
	movq	%rbx, %rdi
	callq	_g_free
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_ghb_dict_set_string
LBB0_9:
	movq	%r12, %rdi
	callq	_g_free
	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
	.space	1

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

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"%s/%s %d-%02d-%02d %02d-%02d-%02d.log"

L_.str.6:                               ## @.str.6
	.asciz	"w"

L_.str.7:                               ## @.str.7
	.asciz	"Handbrake Version: %s (%d)\n"

L_.str.8:                               ## @.str.8
	.asciz	"ActivityFilename"

	.no_dead_strip	_start_new_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_new_log
_start_new_log:                         ; @start_new_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
	bl	_ghb_queue_select_log
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_gtk_text_buffer_set_text
	mov	x0, #0
	bl	_time
	stur	w0, [x29, #-52]
	sub	x0, x29, #52
	bl	_localtime
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ghb_dict_get_string
	mov	x23, x0
	bl	_g_path_get_basename
	mov	x21, x0
	ldr	w0, [x20, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_dict_get_bool
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_g_path_get_dirname
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ghb_get_user_config_dir
LBB0_3:
	mov	x23, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_g_strrstr
	cbz	x0, LBB0_5
; %bb.4:
	str	xzr, [x0]
LBB0_5:
	ldp	x9, x8, [x22, #16]
	add	x8, x8, #1900
	add	x9, x9, #1
	ldp	w11, w10, [x22, #8]
	ldp	w13, w12, [x22]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x23
	mov	x2, x21
	bl	_g_strdup_printf
	mov	x22, x0
	mov	x0, x21
	bl	_g_free
	mov	x0, x23
	bl	_g_free
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_g_io_channel_unref
LBB0_7:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_g_io_channel_new_file
	str	x0, [x20]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, #0
	bl	_hb_get_version
	mov	x21, x0
	mov	x0, #0
	bl	_hb_get_build
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_g_strdup_printf
	mov	x21, x0
	ldr	x0, [x20]
	mov	x1, x21
	mov	w2, #-1
	mov	x3, #0
	mov	x4, #0
	bl	_g_io_channel_write_chars
	mov	x0, x21
	bl	_g_free
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_ghb_dict_set_string
LBB0_9:
	mov	x0, x22
	bl	_g_free
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"%s/%s %d-%02d-%02d %02d-%02d-%02d.log"

l_.str.6:                               ; @.str.6
	.asciz	"w"

l_.str.7:                               ; @.str.7
	.asciz	"Handbrake Version: %s (%d)\n"

l_.str.8:                               ; @.str.8
	.asciz	"ActivityFilename"

	.no_dead_strip	_start_new_log
.subsections_via_symbols
