	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_dvdnav_seek
_hb_dvdnav_seek:                        ## @hb_dvdnav_seek
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HB_DVD_READ_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r13)
	jne	LBB0_29
## %bb.1:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	mulss	(%r13), %xmm0
	cvttss2si	%xmm0, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	36(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, %r14
	movl	36(%r13), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rax
	cmovneq	%r13, %r14
	incl	%ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	36(%r13), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jge	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r12
	movl	36(%r13), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r13
	movq	16(%rax), %rax
	movq	16(%r14), %rcx
	cmpq	%rcx, %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmovneq	%r15, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r15
	addq	%r12, %r15
	subq	8(%r13), %r15
	incq	%r15
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r12
	jg	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %r15
	jle	LBB0_14
## %bb.5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edi
	leaq	-64(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	callq	_dvdnav_current_title_program
	movq	_DVDNAV_STATUS_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_7
## %bb.6:
	movl	32(%rbx), %edi
	callq	_dvdnav_err_to_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_7:
	movq	8(%rbx), %rsi
	cmpq	-64(%rbp), %rsi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edi
	callq	_dvdnav_reset
	movq	8(%rbx), %rsi
	cmpq	-64(%rbp), %rsi
	jne	LBB0_9
LBB0_10:
	movq	16(%r13), %rdx
	cmpq	-96(%rbp), %rdx
	jne	LBB0_11
	jmp	LBB0_13
LBB0_15:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	movq	16(%r13), %rdx
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	movl	24(%r13), %ecx
	callq	_dvdnav_program_play
	cmpq	(%r14), %rax
	je	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	callq	_dvdnav_err_to_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_13:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
LBB0_16:
	movl	$-1, %ebx
	leaq	-96(%rbp), %r15
	movq	_DVDNAV_STATUS_ERR@GOTPCREL(%rip), %r13
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	callq	_dvdnav_still_skip
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%ebx
	cmpl	$99, %ebx
	jae	LBB0_25
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	leaq	-64(%rbp), %rdx
	movq	%r15, %rcx
	callq	_dvdnav_get_next_block
	cmpl	(%r13), %eax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-64(%rbp), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	callq	_dvdnav_wait_skip
	jmp	LBB0_24
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_dvdnav_sector_search
	movq	_DVDNAV_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.28:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$1, %ebx
	jmp	LBB0_29
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	callq	_dvdnav_err_to_string
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_27
LBB0_26:
	movl	32(%rbx), %edi
	callq	_dvdnav_err_to_string
	leaq	L_.str.4(%rip), %rdi
LBB0_27:
	movl	%eax, %esi
	callq	_hb_error
	xorl	%ebx, %ebx
LBB0_29:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hb_log
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	jmp	LBB0_29
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_HB_DVD_READ_BUFFER_SIZE,4,2    ## @HB_DVD_READ_BUFFER_SIZE
	.comm	_DVDNAV_STATUS_OK,8,3           ## @DVDNAV_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvdnav cur pgcn err: %s"

L_.str.1:                               ## @.str.1
	.asciz	"dvdnav prog play err: %s"

	.comm	_DVDNAV_STATUS_ERR,4,2          ## @DVDNAV_STATUS_ERR
L_.str.2:                               ## @.str.2
	.asciz	"dvdnav: Read Error, %s"

L_.str.3:                               ## @.str.3
	.asciz	"dvdnav: stop encountered during seek"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.4:                               ## @.str.4
	.asciz	"dvd: dvdnav_sector_search failed - %s"

	.no_dead_strip	_hb_dvdnav_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_dvdnav_seek
_hb_dvdnav_seek:                        ; @hb_dvdnav_seek
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	s1, [x0]
Lloh3:
	adrp	x8, _HB_DVD_READ_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_DVD_READ_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_27
; %bb.1:
	fmul	s0, s1, s0
	fcvtzs	x21, s0
	ldr	w0, [x19, #36]
	mov	w1, #0
	bl	_hb_list_item
	mov	x23, x0
	ldr	w0, [x19, #36]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x27, #0
	mov	x26, #0
	mov	w24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x9
	csel	x23, x23, x22, eq
	add	w24, w24, #1
	ldr	w0, [x19, #36]
	bl	_hb_list_count
	mov	x27, x28
	cmp	w24, w0
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #36]
	mov	x1, x24
	bl	_hb_list_item
	mov	x22, x0
	ldp	x10, x11, [x0]
	ldr	x8, [x0, #16]
	ldr	x9, [x23, #16]
	cmp	x8, x9
	csel	x26, x26, x27, eq
	add	x10, x27, x10
	sub	x10, x10, x11
	add	x28, x10, #1
	cmp	x27, x21
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, x21
	b.le	LBB0_3
; %bb.6:
	ldr	w0, [x19, #32]
	sub	x1, x29, #96
	sub	x2, x29, #104
	sub	x3, x29, #112
	bl	_dvdnav_current_title_program
Lloh8:
	adrp	x23, _DVDNAV_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DVDNAV_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19, #32]
	bl	_dvdnav_err_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	add	sp, sp, #16
LBB0_8:
	ldr	x1, [x19, #8]
	ldur	x8, [x29, #-96]
	cmp	x1, x8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #32]
	bl	_dvdnav_reset
	ldr	x1, [x19, #8]
	ldur	x8, [x29, #-96]
	cmp	x1, x8
	b.ne	LBB0_11
LBB0_10:
	ldr	x2, [x22, #16]
	ldur	x8, [x29, #-104]
	cmp	x2, x8
	b.ne	LBB0_12
	b	LBB0_14
LBB0_11:
	ldr	x2, [x22, #16]
LBB0_12:
	ldr	w0, [x19, #32]
	ldr	w3, [x22, #24]
	bl	_dvdnav_program_play
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #32]
	bl	_dvdnav_err_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
	add	sp, sp, #16
LBB0_14:
	sub	x21, x21, x26
LBB0_15:
	mov	w22, #-1
Lloh14:
	adrp	x23, _DVDNAV_STATUS_ERR@GOTPAGE
Lloh15:
	ldr	x23, [x23, _DVDNAV_STATUS_ERR@GOTPAGEOFF]
Lloh16:
	adrp	x24, lJTI0_0@PAGE
Lloh17:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x19, #32]
	bl	_dvdnav_still_skip
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w22, w22, #1
	cmp	w22, #99
	b.hs	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	sub	x2, x29, #96
	sub	x3, x29, #104
	mov	x1, x20
	bl	_dvdnav_get_next_block
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	w8, [x29, #-96]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	adr	x9, LBB0_16
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x19, #32]
	bl	_dvdnav_wait_skip
	b	LBB0_17
LBB0_22:
	ldr	w0, [x19, #32]
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_dvdnav_sector_search
Lloh21:
	adrp	x8, _DVDNAV_STATUS_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DVDNAV_STATUS_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.23:
	stp	xzr, xzr, [x19, #16]
	mov	w0, #1
	b	LBB0_28
LBB0_24:
	ldr	w0, [x19, #32]
	bl	_dvdnav_err_to_string
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_25:
	ldr	w0, [x19, #32]
	bl	_dvdnav_err_to_string
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_26:
	bl	_hb_error
LBB0_27:
	mov	w0, #0
LBB0_28:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.29:
	sub	sp, x29, #80
	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_30:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_28
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_30-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
                                        ; -- End function
	.comm	_HB_DVD_READ_BUFFER_SIZE,4,2    ; @HB_DVD_READ_BUFFER_SIZE
	.comm	_DVDNAV_STATUS_OK,8,3           ; @DVDNAV_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvdnav cur pgcn err: %s"

l_.str.1:                               ; @.str.1
	.asciz	"dvdnav prog play err: %s"

	.comm	_DVDNAV_STATUS_ERR,4,2          ; @DVDNAV_STATUS_ERR
l_.str.2:                               ; @.str.2
	.asciz	"dvdnav: Read Error, %s"

l_.str.3:                               ; @.str.3
	.asciz	"dvdnav: stop encountered during seek"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.4:                               ; @.str.4
	.asciz	"dvd: dvdnav_sector_search failed - %s"

	.no_dead_strip	_hb_dvdnav_seek
.subsections_via_symbols
