	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_ps_stream_init
_hb_ps_stream_init:                     ## @hb_ps_stream_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.2:
	cmpl	$1, %ecx
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_4:
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	28(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$-1, -28(%rdi)
	movq	$-1, -4(%rdi)
	addq	$2, %rdx
	addq	$48, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_5
LBB0_6:
	testb	$1, %cl
	je	LBB0_8
## %bb.7:
	leaq	(%rdx,%rdx,2), %rcx
	movq	$-1, (%rax,%rcx,8)
LBB0_8:
	movl	$0, 4(%r15)
	movq	%r15, %rdi
	callq	_hb_ps_stream_find_streams
	movq	%r15, %rdi
	callq	_hb_ps_resolve_stream_types
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.14:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.15:
	movq	_V@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %r13
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	8(%rcx,%r14), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rcx,%r14), %rsi
	movl	(%rcx,%r14), %ebx
	movl	20(%rcx,%r14), %r12d
	movq	%r15, %rdi
	callq	_stream_type_name2
	movq	8(%r15), %rcx
	movl	16(%rcx,%r14), %r8d
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_hb_log
	movq	_V@GOTPCREL(%rip), %rsi
	movl	4(%r15), %eax
	jmp	LBB0_18
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.20:
	movq	_A@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %r13
	jge	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	8(%rcx,%r14), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	(%rcx,%r14), %rsi
	movl	(%rcx,%r14), %ebx
	movl	20(%rcx,%r14), %r12d
	movq	%r15, %rdi
	callq	_stream_type_name2
	movq	8(%r15), %rcx
	movl	16(%rcx,%r14), %r8d
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_hb_log
	movq	_A@GOTPCREL(%rip), %rsi
	movl	4(%r15), %eax
	jmp	LBB0_23
LBB0_24:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.25:
	movq	_S@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %r13
	jge	LBB0_29
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	8(%rcx,%r14), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	leaq	(%rcx,%r14), %rsi
	movl	(%rcx,%r14), %ebx
	movl	20(%rcx,%r14), %r12d
	movq	%r15, %rdi
	callq	_stream_type_name2
	movq	8(%r15), %rcx
	movl	16(%rcx,%r14), %r8d
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_hb_log
	movq	_S@GOTPCREL(%rip), %rsi
	movl	4(%r15), %eax
	jmp	LBB0_28
LBB0_29:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_34
## %bb.30:
	movq	_N@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_34
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	8(%rcx,%r14), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	leaq	(%rcx,%r14), %rsi
	movl	(%rcx,%r14), %r12d
	movl	20(%rcx,%r14), %r13d
	movq	%r15, %rdi
	callq	_stream_type_name2
	movq	8(%r15), %rcx
	movl	16(%rcx,%r14), %r8d
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_hb_log
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hb_stream_delete_ps_entry
	movq	_N@GOTPCREL(%rip), %rsi
	movl	4(%r15), %eax
	jmp	LBB0_33
LBB0_9:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_34
## %bb.10:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	movq	_N@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_34
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r14), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hb_stream_delete_ps_entry
	movl	4(%r15), %eax
	jmp	LBB0_13
LBB0_34:
	addq	$8, %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	"Found the following streams"

L_.str.1:                               ## @.str.1
	.asciz	"    Video Streams : "

	.comm	_V,8,3                          ## @V
L_.str.2:                               ## @.str.2
	.asciz	"      0x%x-0x%x type %s (0x%x)"

L_.str.3:                               ## @.str.3
	.asciz	"    Audio Streams : "

	.comm	_A,8,3                          ## @A
L_.str.4:                               ## @.str.4
	.asciz	"    Subtitle Streams : "

	.comm	_S,8,3                          ## @S
L_.str.5:                               ## @.str.5
	.asciz	"    Other Streams : "

	.comm	_N,8,3                          ## @N
	.no_dead_strip	_hb_ps_stream_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_ps_stream_init
_hb_ps_stream_init:                     ; @hb_ps_stream_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.3:
	mov	x10, #0
	b	LBB0_7
LBB0_4:
	and	x10, x9, #0xfffffffc
	add	x11, x8, #48
	movi.2d	v0, #0xffffffffffffffff
	mov	x12, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stur	d0, [x11, #-48]
	stur	d0, [x11, #-24]
	str	d0, [x11]
	str	d0, [x11, #24]
	add	x11, x11, #96
	subs	x12, x12, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x10, x9
	b.eq	LBB0_9
LBB0_7:
	mov	w11, #24
	madd	x8, x10, x11, x8
	sub	x9, x9, x10
	movi.2d	v0, #0xffffffffffffffff
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	d0, [x8], #24
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	str	wzr, [x19, #4]
	mov	x0, x19
	bl	_hb_ps_stream_find_streams
	mov	x0, x19
	bl	_hb_ps_resolve_stream_types
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_30
; %bb.10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x21, #0
	mov	x22, #0
Lloh4:
	adrp	x23, _V@GOTPAGE
Lloh5:
	ldr	x23, [x23, _V@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.2@PAGE
Lloh7:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	add	x21, x21, #24
	cmp	x22, w8, sxtw
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x1, x9, x21
	ldr	x9, [x1, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w24, [x1]
	ldr	w25, [x1, #20]
	mov	x0, x19
	bl	_stream_type_name2
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w8, [x8, #16]
	stp	x0, x8, [sp, #16]
	stp	x24, x25, [sp]
	mov	x0, x20
	bl	_hb_log
	ldr	w8, [x19, #4]
	b	LBB0_12
LBB0_15:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x21, #0
	mov	x22, #0
Lloh10:
	adrp	x23, _A@GOTPAGE
Lloh11:
	ldr	x23, [x23, _A@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str.2@PAGE
Lloh13:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	add	x21, x21, #24
	cmp	x22, w8, sxtw
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x1, x9, x21
	ldr	x9, [x1, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w24, [x1]
	ldr	w25, [x1, #20]
	mov	x0, x19
	bl	_stream_type_name2
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w8, [x8, #16]
	stp	x0, x8, [sp, #16]
	stp	x24, x25, [sp]
	mov	x0, x20
	bl	_hb_log
	ldr	w8, [x19, #4]
	b	LBB0_17
LBB0_20:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_log
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x21, #0
	mov	x22, #0
Lloh16:
	adrp	x23, _S@GOTPAGE
Lloh17:
	ldr	x23, [x23, _S@GOTPAGEOFF]
Lloh18:
	adrp	x20, l_.str.2@PAGE
Lloh19:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x22, x22, #1
	add	x21, x21, #24
	cmp	x22, w8, sxtw
	b.ge	LBB0_25
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x1, x9, x21
	ldr	x9, [x1, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w24, [x1]
	ldr	w25, [x1, #20]
	mov	x0, x19
	bl	_stream_type_name2
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w8, [x8, #16]
	stp	x0, x8, [sp, #16]
	stp	x24, x25, [sp]
	mov	x0, x20
	bl	_hb_log
	ldr	w8, [x19, #4]
	b	LBB0_22
LBB0_25:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_hb_log
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.26:
	mov	x22, #0
	mov	x20, #0
Lloh22:
	adrp	x23, _N@GOTPAGE
Lloh23:
	ldr	x23, [x23, _N@GOTPAGEOFF]
Lloh24:
	adrp	x21, l_.str.2@PAGE
Lloh25:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x20, x20, #1
	add	x22, x22, #24
	cmp	x20, w8, sxtw
	b.ge	LBB0_35
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x1, x9, x22
	ldr	x9, [x1, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w24, [x1]
	ldr	w25, [x1, #20]
	mov	x0, x19
	bl	_stream_type_name2
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	w8, [x8, #16]
	stp	x0, x8, [sp, #16]
	stp	x24, x25, [sp]
	mov	x0, x21
	bl	_hb_log
	mov	x0, x19
	mov	x1, x20
	bl	_hb_stream_delete_ps_entry
	ldr	w8, [x19, #4]
	b	LBB0_27
LBB0_30:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.31:
	mov	x20, #0
	mov	w21, #8
Lloh26:
	adrp	x22, _N@GOTPAGE
Lloh27:
	ldr	x22, [x22, _N@GOTPAGEOFF]
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	x20, x20, #1
	add	x21, x21, #24
	cmp	x20, w8, sxtw
	b.ge	LBB0_35
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_hb_stream_delete_ps_entry
	ldr	w8, [x19, #4]
	b	LBB0_32
LBB0_35:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found the following streams"

l_.str.1:                               ; @.str.1
	.asciz	"    Video Streams : "

	.comm	_V,8,3                          ; @V
l_.str.2:                               ; @.str.2
	.asciz	"      0x%x-0x%x type %s (0x%x)"

l_.str.3:                               ; @.str.3
	.asciz	"    Audio Streams : "

	.comm	_A,8,3                          ; @A
l_.str.4:                               ; @.str.4
	.asciz	"    Subtitle Streams : "

	.comm	_S,8,3                          ; @S
l_.str.5:                               ; @.str.5
	.asciz	"    Other Streams : "

	.comm	_N,8,3                          ; @N
	.no_dead_strip	_hb_ps_stream_init
.subsections_via_symbols
