	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function analyze_subtitle_scan
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_analyze_subtitle_scan:                 ## @analyze_subtitle_scan
	.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, %r15
	movl	(%rdi), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_19
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r15
	incl	%ebx
	movl	(%r12), %edi
	callq	_hb_list_count
	movl	%r14d, %r13d
	cmpl	%eax, %ebx
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r12
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r15
	movl	28(%rax), %esi
	movl	24(%rax), %ecx
	movl	(%rax), %edx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%eax, %edx
	cmovlel	%eax, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ecx
	jle	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %r14d
	testl	%r14d, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %r13d
	jle	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
LBB0_12:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.13:
	cmpq	$0, 8(%r15)
	je	LBB0_16
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_16:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_19
## %bb.17:
	cvtsi2sd	%eax, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm1        ## 4-byte Folded Reload
	mulsd	LCPI0_0(%rip), %xmm1
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	movl	-56(%rbp), %r12d                ## 4-byte Reload
LBB0_15:
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_hb_log
LBB0_20:
	movl	(%r15), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_25
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%r15, %r14
	cmpl	%r12d, (%rax)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=1
	incl	%ebx
	movl	(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	movq	%r14, %r15
	jl	LBB0_23
	jmp	LBB0_25
LBB0_24:
	movq	%rax, %r15
	movl	16(%r14), %edi
	callq	_hb_interjob_get
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	%rax, 16(%r15)
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_hb_list_rem
	movq	%r15, (%rbx)
LBB0_25:
	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
	.asciz	"Subtitle track %d (id 0x%x) '%s': %d hits (%d forced)"

L_.str.1:                               ## @.str.1
	.asciz	"Found a subtitle candidate with id 0x%x (contains forced subs)"

L_.str.2:                               ## @.str.2
	.asciz	"Found a subtitle candidate with id 0x%x"

L_.str.3:                               ## @.str.3
	.asciz	"No candidate detected during subtitle scan"

	.no_dead_strip	_analyze_subtitle_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analyze_subtitle_scan
_analyze_subtitle_scan:                 ; @analyze_subtitle_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.1:
	mov	w20, #0
	mov	w27, #0
	mov	w23, #0
	mov	w24, #0
	mov	w26, #0
	mov	w25, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x22]
	mov	x27, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w20, w0
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_hb_list_item
	mov	x22, x0
	ldp	w9, w8, [x0, #24]
	ldp	w10, w11, [x0]
	ldr	w12, [x0, #8]
	stp	x11, x12, [sp, #24]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
	mov	x0, x21
	bl	_hb_log
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, w8
	csel	w25, w25, w8, gt
	cbz	w26, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, w8
	b.le	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [x22]
	mov	x26, x8
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w27, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, w8
	b.le	LBB0_3
	b	LBB0_2
LBB0_11:
	cbz	w23, LBB0_14
; %bb.12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
	str	x23, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
	b	LBB0_18
LBB0_14:
	cmp	w26, #1
	b.lt	LBB0_17
; %bb.15:
	scvtf	d0, w26
	scvtf	d1, w25
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d2, x8
	fmul	d1, d1, d2
	fcmp	d1, d0
	b.le	LBB0_17
; %bb.16:
	str	x24, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hb_log
	mov	x23, x24
	b	LBB0_18
LBB0_17:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	mov	w23, #0
LBB0_18:
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.19:
	mov	w20, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_hb_list_item
	ldr	w8, [x0]
	cmp	w8, w23
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	w20, w20, #1
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w20, w0
	b.lt	LBB0_20
	b	LBB0_23
LBB0_22:
	mov	x21, x0
	ldr	w0, [x19, #16]
	bl	_hb_interjob_get
	mov	x20, x0
	ldr	x8, [x19, #8]
	str	x8, [x21, #16]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_hb_list_rem
	str	x21, [x20]
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Subtitle track %d (id 0x%x) '%s': %d hits (%d forced)"

l_.str.1:                               ; @.str.1
	.asciz	"Found a subtitle candidate with id 0x%x (contains forced subs)"

l_.str.2:                               ; @.str.2
	.asciz	"Found a subtitle candidate with id 0x%x"

l_.str.3:                               ; @.str.3
	.asciz	"No candidate detected during subtitle scan"

	.no_dead_strip	_analyze_subtitle_scan
.subsections_via_symbols
