	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_ghb_ui_register_resource
	movl	$88, %edi
	callq	_g_malloc0
	movq	%rax, %rbx
	movq	_G_APPLICATION_NON_UNIQUE@GOTPCREL(%rip), %rax
	movq	_G_APPLICATION_HANDLES_OPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_gtk_application_new
	movl	%eax, 80(%rbx)
	movq	_ghb_activate_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rcx
	callq	_g_signal_connect
	movl	80(%rbx), %edi
	movq	_ghb_open_file_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	callq	_g_signal_connect
	movl	80(%rbx), %edi
	callq	_G_APPLICATION
	movq	_entries@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_g_application_add_main_option_entries
	movl	80(%rbx), %edi
	callq	_G_APPLICATION
	movl	%eax, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_g_application_run
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_ghb_backend_close
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_2
## %bb.1:
	callq	_g_source_remove
LBB0_2:
	leaq	76(%rbx), %rdi
	callq	_ghb_value_free
	leaq	72(%rbx), %rdi
	callq	_ghb_value_free
	leaq	68(%rbx), %rdi
	callq	_ghb_value_free
	movq	%rbx, %rdi
	addq	$64, %rdi
	callq	_ghb_value_free
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_g_io_channel_unref
LBB0_4:
	xorl	%eax, %eax
	callq	_ghb_settings_close
	xorl	%eax, %eax
	callq	_ghb_resource_free
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_g_object_unref
LBB0_6:
	movq	40(%rbx), %rdi
	callq	_g_object_unref
	movq	32(%rbx), %rdi
	callq	_g_object_unref
	movq	24(%rbx), %rdi
	callq	_g_object_unref
	movq	16(%rbx), %rdi
	callq	_g_free
	movq	8(%rbx), %rdi
	callq	_g_free
	movq	%rbx, %rdi
	callq	_g_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fr.handbrake.ghb"

	.comm	_G_APPLICATION_NON_UNIQUE,4,2   ## @G_APPLICATION_NON_UNIQUE
	.comm	_G_APPLICATION_HANDLES_OPEN,4,2 ## @G_APPLICATION_HANDLES_OPEN
L_.str.1:                               ## @.str.1
	.asciz	"activate"

	.comm	_ghb_activate_cb,8,3            ## @ghb_activate_cb
L_.str.2:                               ## @.str.2
	.asciz	"open"

	.comm	_ghb_open_file_cb,8,3           ## @ghb_open_file_cb
	.comm	_entries,4,2                    ## @entries
	.comm	_ATTACH_PARENT_PROCESS,4,2      ## @ATTACH_PARENT_PROCESS
	.comm	_GETTEXT_PACKAGE,4,2            ## @GETTEXT_PACKAGE
	.comm	_PACKAGE_LOCALE_DIR,4,2         ## @PACKAGE_LOCALE_DIR
	.comm	_STDERR_FILENO,8,3              ## @STDERR_FILENO
	.comm	_STDOUT_FILENO,8,3              ## @STDOUT_FILENO
	.comm	_stderr,8,3                     ## @stderr
	.comm	_stdout,8,3                     ## @stdout
	.comm	_win32_console,8,3              ## @win32_console
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
	bl	_ghb_ui_register_resource
	mov	w0, #88
	bl	_g_malloc0
	mov	x19, x0
Lloh0:
	adrp	x8, _G_APPLICATION_NON_UNIQUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_APPLICATION_NON_UNIQUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _G_APPLICATION_HANDLES_OPEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _G_APPLICATION_HANDLES_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gtk_application_new
	str	w0, [x19, #80]
Lloh8:
	adrp	x8, _ghb_activate_cb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ghb_activate_cb@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_g_signal_connect
	ldr	w0, [x19, #80]
Lloh13:
	adrp	x8, _ghb_open_file_cb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ghb_open_file_cb@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_g_signal_connect
	ldr	w0, [x19, #80]
	bl	_G_APPLICATION
Lloh18:
	adrp	x8, _entries@GOTPAGE
Lloh19:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_g_application_add_main_option_entries
	ldr	w0, [x19, #80]
	bl	_G_APPLICATION
	mov	x1, x21
	mov	x2, x20
	bl	_g_application_run
	mov	x20, x0
	bl	_ghb_backend_close
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	bl	_g_source_remove
LBB0_2:
	add	x0, x19, #76
	bl	_ghb_value_free
	add	x0, x19, #72
	bl	_ghb_value_free
	add	x0, x19, #68
	bl	_ghb_value_free
	add	x0, x19, #64
	bl	_ghb_value_free
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_g_io_channel_unref
LBB0_4:
	bl	_ghb_settings_close
	bl	_ghb_resource_free
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_g_object_unref
LBB0_6:
	ldr	x0, [x19, #40]
	bl	_g_object_unref
	ldr	x0, [x19, #32]
	bl	_g_object_unref
	ldr	x0, [x19, #24]
	bl	_g_object_unref
	ldr	x0, [x19, #16]
	bl	_g_free
	ldr	x0, [x19, #8]
	bl	_g_free
	mov	x0, x19
	bl	_g_free
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fr.handbrake.ghb"

	.comm	_G_APPLICATION_NON_UNIQUE,4,2   ; @G_APPLICATION_NON_UNIQUE
	.comm	_G_APPLICATION_HANDLES_OPEN,4,2 ; @G_APPLICATION_HANDLES_OPEN
l_.str.1:                               ; @.str.1
	.asciz	"activate"

	.comm	_ghb_activate_cb,8,3            ; @ghb_activate_cb
l_.str.2:                               ; @.str.2
	.asciz	"open"

	.comm	_ghb_open_file_cb,8,3           ; @ghb_open_file_cb
	.comm	_entries,4,2                    ; @entries
	.comm	_ATTACH_PARENT_PROCESS,4,2      ; @ATTACH_PARENT_PROCESS
	.comm	_GETTEXT_PACKAGE,4,2            ; @GETTEXT_PACKAGE
	.comm	_PACKAGE_LOCALE_DIR,4,2         ; @PACKAGE_LOCALE_DIR
	.comm	_STDERR_FILENO,8,3              ; @STDERR_FILENO
	.comm	_STDOUT_FILENO,8,3              ; @STDOUT_FILENO
	.comm	_stderr,8,3                     ; @stderr
	.comm	_stdout,8,3                     ; @stdout
	.comm	_win32_console,8,3              ; @win32_console
.subsections_via_symbols
