	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvd_nav_parse
_dvd_nav_parse:                         ## @dvd_nav_parse
	.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
	movl	%r9d, %r12d
	movq	%rdx, %r15
	movq	16(%rdi), %r14
	movq	_AV_PICTURE_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movabsq	$386547056640001, %rax          ## imm = 0x15F9000000001
	movq	%rax, (%rsi)
	testq	%r8, %r8
	je	LBB0_11
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.2:
	movq	%r8, %r13
	movl	(%r8), %eax
	cmpl	$1, %eax
	je	LBB0_8
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_PCI_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_11
## %bb.5:
	movq	%rdi, %rbx
	leaq	4(%r13), %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_AV_RB32
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	52(%r13), %rdi
	callq	_AV_RB32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	68(%r13), %rdi
	callq	_AV_RB32
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	_PCI_SIZE@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	%rsi, %rax
	jbe	LBB0_11
## %bb.6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%r14)
	movl	%esi, 8(%rbx)
	movq	%rax, (%rbx)
	movq	8(%r14), %rdi
	movq	%rdx, %rbx
	movl	(%rdx), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_7
LBB0_8:
	movq	_DSI_SIZE@GOTPCREL(%rip), %rbx
	cmpl	%r12d, (%rbx)
	jne	LBB0_11
## %bb.9:
	movl	16(%r14), %eax
	movq	_PCI_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_11
## %bb.10:
	leaq	20(%r13), %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_AV_RB32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%r14), %rax
	je	LBB0_12
LBB0_11:
	movl	$0, 16(%r14)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%r14)
LBB0_7:
	xorl	%eax, %eax
	xorl	%edx, %edx
LBB0_13:
	movq	%rax, (%r15)
	movl	%edx, (%rcx)
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movslq	16(%r14), %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movl	(%rbx), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, 16(%r14)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%r14)
	movq	8(%r14), %rax
	movl	$8, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_NONE,4,2       ## @AV_PICTURE_TYPE_NONE
	.comm	_PCI_SIZE,4,2                   ## @PCI_SIZE
	.comm	_DSI_SIZE,4,2                   ## @DSI_SIZE
	.no_dead_strip	_dvd_nav_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dvd_nav_parse
lCPI0_0:
	.long	1                               ; 0x1
	.long	90000                           ; 0x15f90
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dvd_nav_parse:                         ; @dvd_nav_parse
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x8, _AV_PICTURE_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PICTURE_TYPE_NONE@GOTPAGEOFF]
	ldr	x26, [x0, #16]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #12]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x1]
	cbz	x4, LBB0_10
; %bb.1:
	cbz	w19, LBB0_10
; %bb.2:
	mov	x22, x4
	ldr	w8, [x4]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w8, LBB0_10
; %bb.4:
Lloh5:
	adrp	x27, _PCI_SIZE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _PCI_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.5:
	mov	x23, x0
	add	x0, x22, #4
	bl	_AV_RB32
	mov	x24, x0
	add	x0, x22, #52
	bl	_AV_RB32
	mov	x25, x0
	add	x0, x22, #68
	bl	_AV_RB32
	subs	x8, x0, x25
	b.ls	LBB0_10
; %bb.6:
	str	x24, [x26]
	str	w25, [x23, #8]
	str	x8, [x23]
	ldr	x0, [x26, #8]
	ldr	w2, [x27]
	mov	x1, x22
	bl	_memcpy
	mov	x8, #0
	mov	w9, #0
	ldr	w10, [x27]
	str	w10, [x26, #16]
	b	LBB0_11
LBB0_7:
Lloh7:
	adrp	x23, _DSI_SIZE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DSI_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x26, #16]
Lloh9:
	adrp	x9, _PCI_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	add	x0, x22, #20
	bl	_AV_RB32
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_12
LBB0_10:
	mov	x8, #0
	mov	w9, #0
	str	wzr, [x26, #16]
	mov	w10, #-1
	str	x10, [x26]
LBB0_11:
	str	x8, [x21]
	str	w9, [x20]
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x8, [x26, #8]
	ldrsw	x9, [x26, #16]
	add	x0, x8, x9, lsl #2
	ldr	w2, [x23]
	mov	x1, x22
	bl	_memcpy
	str	wzr, [x26, #16]
	mov	w8, #-1
	str	x8, [x26]
	ldr	x8, [x26, #8]
	mov	w9, #8
	b	LBB0_11
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_NONE,4,2       ; @AV_PICTURE_TYPE_NONE
	.comm	_PCI_SIZE,4,2                   ; @PCI_SIZE
	.comm	_DSI_SIZE,4,2                   ; @DSI_SIZE
	.no_dead_strip	_dvd_nav_parse
.subsections_via_symbols
