	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_subtitle_prune             ## -- Begin function ghb_subtitle_prune
	.p2align	4, 0x90
_ghb_subtitle_prune:                    ## @ghb_subtitle_prune
	.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	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	callq	_ghb_get_job_subtitle_list
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_string
	movq	%rax, %rdi
	callq	_ghb_lookup_container_by_name
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ghb_array_len
	testq	%rax, %rax
	jle	LBB0_10
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	setne	%al
	movzbl	%cl, %edx
	orb	%cl, %al
	movzbl	%al, %r14d
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_set_bool
	incq	%rbx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_ghb_array_len
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ghb_array_get
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_bool
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_get_sub_source
	movb	$1, %cl
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_hb_subtitle_can_pass
	testl	%eax, %eax
	sete	%cl
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ghb_array_remove
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_subtitle_get_selected_settings
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_subtitle_update_dialog_widgets ## TAILCALL
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FileFormat"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_subtitle_prune             ; -- Begin function ghb_subtitle_prune
	.p2align	2
_ghb_subtitle_prune:                    ; @ghb_subtitle_prune
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldr	w0, [x0]
	bl	_ghb_get_job_subtitle_list
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_string
	bl	_ghb_lookup_container_by_name
	mov	x21, x0
	mov	x0, x20
	bl	_ghb_array_len
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x22, #0
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #0
	cset	w8, ne
	orr	w26, w8, w2
	mov	x0, x24
	mov	x1, x23
	bl	_ghb_dict_set_bool
	add	x22, x22, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_ghb_array_len
	cmp	x22, x0
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ghb_array_get
	mov	x24, x0
	mov	x1, x23
	bl	_ghb_dict_get_bool
	mov	x25, x0
	ldr	w0, [x19]
	mov	x1, x24
	bl	_get_sub_source
	cbz	w25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #1
	cbnz	w2, LBB0_8
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21]
	bl	_hb_subtitle_can_pass
	cmp	w0, #0
	cset	w2, eq
	cbz	w2, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w26, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ghb_array_remove
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	mov	x1, #0
	bl	_subtitle_get_selected_settings
	cbz	x0, LBB0_12
; %bb.11:
	mov	x1, x0
	mov	x0, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_subtitle_update_dialog_widgets
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FileFormat"

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

.subsections_via_symbols
