	.file	"extr_subtitlehandler.c_ghb_subtitle_prune.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FileFormat"
.LC1:
	.string	"Burn"
	.text
	.p2align 4
	.globl	ghb_subtitle_prune
	.type	ghb_subtitle_prune, @function
ghb_subtitle_prune:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	r13d, DWORD PTR FALSE[rip]
	call	ghb_get_job_subtitle_list@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR [r14]
	lea	rsi, .LC0[rip]
	mov	r12, rax
	xor	ebx, ebx
	call	ghb_dict_get_string@PLT
	mov	rdi, rax
	call	ghb_lookup_container_by_name@PLT
	mov	QWORD PTR 8[rsp], rax
.L4:
	mov	rdi, r12
	call	ghb_array_len@PLT
	cmp	rax, rbx
	jle	.L20
.L10:
	mov	rsi, rbx
	mov	rdi, r12
	call	ghb_array_get@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	ghb_dict_get_bool@PLT
	mov	edi, DWORD PTR [r14]
	mov	rsi, rbp
	mov	r15d, eax
	call	get_sub_source@PLT
	test	r15d, r15d
	je	.L5
.L8:
	test	r13d, r13d
	jne	.L6
	mov	r13d, 1
	mov	r15d, 1
.L7:
	test	r13d, r13d
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	mov	edx, r15d
	setne	r13b
	add	rbx, 1
	call	ghb_dict_set_bool@PLT
	mov	rdi, r12
	movzx	r13d, r13b
	call	ghb_array_len@PLT
	cmp	rax, rbx
	jg	.L10
.L20:
	xor	esi, esi
	mov	rdi, r14
	call	subtitle_get_selected_settings@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L1
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	subtitle_update_dialog_widgets@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, r12
	call	ghb_array_remove@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, QWORD PTR 8[rsp]
	mov	edi, eax
	mov	esi, DWORD PTR [rcx]
	call	hb_subtitle_can_pass@PLT
	test	eax, eax
	je	.L8
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ghb_subtitle_prune, .-ghb_subtitle_prune
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_subtitlehandler.c_ghb_subtitle_prune.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FileFormat\000"
	.align	2
.LC1:
	.ascii	"Burn\000"
	.text
	.align	2
	.global	ghb_subtitle_prune
	.syntax unified
	.arm
	.fpu softvfp
	.type	ghb_subtitle_prune, %function
ghb_subtitle_prune:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	mov	r9, r0
	ldr	r0, [r0]
	ldr	r7, [r3]
	bl	ghb_get_job_subtitle_list
	subs	r8, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r1, .L22+4
	ldr	r0, [r9]
	bl	ghb_dict_get_string
	bl	ghb_lookup_container_by_name
	mov	r6, #0
	mov	fp, r0
	ldr	r10, .L22+8
.L4:
	mov	r0, r8
	bl	ghb_array_len
	cmp	r0, r6
	ble	.L20
.L10:
	mov	r1, r6
	mov	r0, r8
	bl	ghb_array_get
	mov	r1, r10
	mov	r5, r0
	bl	ghb_dict_get_bool
	mov	r4, r0
	mov	r1, r5
	ldr	r0, [r9]
	bl	get_sub_source
	cmp	r4, #0
	beq	.L5
.L8:
	cmp	r7, #0
	moveq	r7, #1
	moveq	r4, r7
	bne	.L21
.L7:
	subs	r7, r7, #0
	mov	r2, r4
	mov	r1, r10
	mov	r0, r5
	movne	r7, #1
	bl	ghb_dict_set_bool
	mov	r0, r8
	bl	ghb_array_len
	add	r6, r6, #1
	cmp	r0, r6
	bgt	.L10
.L20:
	mov	r1, #0
	mov	r0, r9
	bl	subtitle_get_selected_settings
	subs	r1, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	subtitle_update_dialog_widgets
.L21:
	mov	r1, r6
	mov	r0, r8
	bl	ghb_array_remove
	b	.L4
.L5:
	ldr	r1, [fp]
	bl	hb_subtitle_can_pass
	cmp	r0, #0
	beq	.L8
	b	.L7
.L23:
	.align	2
.L22:
	.word	FALSE
	.word	.LC0
	.word	.LC1
	.size	ghb_subtitle_prune, .-ghb_subtitle_prune
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
