	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_dvdnav_start
_hb_dvdnav_start:                       ## @hb_dvdnav_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movl	(%rsi), %r15d
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_hb_dvdnav_reset
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_TitleOpenIfo
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	24(%rbx), %edi
	callq	_dvdnav_reset
	movl	28(%rbx), %edi
	decl	%r12d
	movl	%r12d, %esi
	callq	_hb_list_item
	movl	24(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	%r15d, %esi
	callq	_dvdnav_program_play
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_6:
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_dvdnav_part_play
LBB0_7:
	movq	_DVDNAV_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	$0, 16(%rbx)
	movl	$0, 8(%rbx)
	movq	$0, (%rbx)
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_8:
	movl	24(%rbx), %edi
	callq	_dvdnav_err_to_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_hb_error
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVDNAV_STATUS_OK,8,3           ## @DVDNAV_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvd: dvdnav_*_play failed - %s"

	.no_dead_strip	_hb_dvdnav_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_dvdnav_start
_hb_dvdnav_start:                       ; @hb_dvdnav_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x0
	ldr	w20, [x1]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_hb_dvdnav_reset
	cbz	w0, LBB0_9
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_TitleOpenIfo
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w0, [x19, #24]
	bl	_dvdnav_reset
	ldr	w0, [x19, #28]
	sub	w1, w21, #1
	bl	_hb_list_item
	mov	x8, x0
	ldr	w0, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	w3, w2, [x8]
	mov	x1, x20
	bl	_dvdnav_program_play
	b	LBB0_6
LBB0_5:
	mov	x1, x20
	mov	w2, #1
	bl	_dvdnav_part_play
LBB0_6:
Lloh0:
	adrp	x8, _DVDNAV_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVDNAV_STATUS_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x19, #16]
	str	wzr, [x19, #8]
	mov	w0, #1
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #24]
	bl	_dvdnav_err_to_string
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DVDNAV_STATUS_OK,8,3           ; @DVDNAV_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvd: dvdnav_*_play failed - %s"

	.no_dead_strip	_hb_dvdnav_start
.subsections_via_symbols
