	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_dvdread_chapter
_hb_dvdread_chapter:                    ## @hb_dvdread_chapter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r8
	movq	8(%r8), %rax
	movq	(%rax), %rdx
	movslq	(%rdi), %rsi
	decq	%rsi
	shlq	$4, %rsi
	movl	(%rdx,%rsi), %r11d
	movl	$-1, %eax
	testl	%r11d, %r11d
	jle	LBB0_6
## %bb.1:
	movq	8(%rdx,%rsi), %r10
	movq	(%r8), %rsi
	movq	(%rsi), %r8
	movl	4(%rdi), %r9d
	subl	8(%rdi), %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdi), %rcx
	movq	%rdi, %r11
	cmpq	$1, %rcx
	jbe	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r11), %rdi
	movl	%edi, %esi
	movslq	(%r10,%rsi,8), %rdx
	movslq	4(%r10,%rsi,8), %rcx
	movq	-8(%r8,%rdx,8), %rsi
	movq	(%rsi), %rdx
	movl	-4(%rdx,%rcx,4), %ecx
	decl	%ecx
	cmpl	%ecx, %r9d
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	8(%rsi), %r9d
	jge	LBB0_4
## %bb.5:
	movl	%r11d, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hb_dvdread_chapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_dvdread_chapter
_hb_dvdread_chapter:                    ; @hb_dvdread_chapter
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x10, [x0, #16]
	ldr	x9, [x10, #8]
	ldr	x9, [x9]
	ldrsw	x11, [x0]
	sub	x11, x11, #1
	lsl	x12, x11, #4
	ldr	w0, [x9, x12]
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	add	x9, x9, x11, lsl #4
	ldr	x9, [x9, #8]
	ldr	x10, [x10]
	ldr	x10, [x10]
	ldp	w11, w8, [x8, #4]
	sub	w8, w11, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x11, #1
	mov	x0, x11
	cmp	x12, #1
	b.ls	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x11, x0, #1
	add	x12, x9, w11, uxtw #3
	ldpsw	x13, x14, [x12]
	add	x12, x10, x13, lsl #3
	ldur	x12, [x12, #-8]
	ldr	x13, [x12]
	add	x13, x13, x14, lsl #2
	ldur	w13, [x13, #-4]
	sub	w13, w13, #1
	cmp	w8, w13
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x12, #8]
	cmp	w8, w12
	b.ge	LBB0_2
; %bb.5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hb_dvdread_chapter
.subsections_via_symbols
