	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_ps_stream_getVideo
_hb_ps_stream_getVideo:                 ## @hb_ps_stream_getVideo
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_HB_DVD_READ_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hb_buffer_init
	movq	%rax, %r13
	movq	%rax, -80(%rbp)
	movl	$-2048, %ebx                    ## imm = 0xF800
	leaq	-64(%rbp), %r12
	movq	_V@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_hb_ps_read_packet
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r13), %esi
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_hb_parse_ps
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %esi
	cmpl	$189, %esi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$189, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_index_of_ps_stream
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	cmpq	(%r14), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rcx)
	jmp	LBB0_12
LBB0_11:
	leaq	-80(%rbp), %rdi
	callq	_hb_buffer_close
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_DVD_READ_BUFFER_SIZE,4,2    ## @HB_DVD_READ_BUFFER_SIZE
	.comm	_V,8,3                          ## @V
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_hb_ps_stream_getVideo
.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_getVideo
_hb_ps_stream_getVideo:                 ; @hb_ps_stream_getVideo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HB_DVD_READ_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_DVD_READ_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_hb_buffer_init
	mov	x20, x0
	str	x0, [sp, #24]
	mov	w22, #-2048
Lloh3:
	adrp	x23, _V@GOTPAGE
Lloh4:
	ldr	x23, [x23, _V@GOTPAGEOFF]
Lloh5:
	adrp	x24, _AV_NOPTS_VALUE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	adds	w22, w22, #1
	b.hs	LBB0_11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_hb_ps_read_packet
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x3, sp
	mov	x0, x21
	bl	_hb_parse_ps
	cbz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [sp]
	cmp	w1, #189
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [sp, #20]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [sp, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_index_of_ps_stream
	tbnz	w0, #31, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.10:
	ldr	q0, [sp]
	str	q0, [x19]
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
	b	LBB0_12
LBB0_11:
	add	x0, sp, #24
	bl	_hb_buffer_close
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_DVD_READ_BUFFER_SIZE,4,2    ; @HB_DVD_READ_BUFFER_SIZE
	.comm	_V,8,3                          ; @V
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_hb_ps_stream_getVideo
.subsections_via_symbols
