	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_annexb_find_next_nalu       ## -- Begin function hb_annexb_find_next_nalu
	.p2align	4, 0x90
_hb_annexb_find_next_nalu:              ## @hb_annexb_find_next_nalu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rdx
	xorl	%ecx, %ecx
	movl	$0, %eax
	cmpq	$4, %rdx
	jl	LBB0_15
## %bb.1:
	shlq	$2, %rdx
	addq	$12, %rdi
	movq	%rdi, %rax
	movq	%rdx, %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$-4, %rcx
	addq	$4, %rax
	cmpq	$12, %rcx
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -12(%rax)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -8(%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, -4(%rax)
	jne	LBB0_5
## %bb.7:
	addq	$-12, %rcx
	cmpq	$13, %rcx
	jl	LBB0_14
## %bb.8:
	xorl	%edx, %edx
	movq	%rcx, %rdi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rdx
	addq	$-4, %rdi
	cmpq	$12, %rdi
	jle	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax,%rdx)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, 4(%rax,%rdx)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$2, 8(%rax,%rdx)
	jae	LBB0_13
## %bb.12:
	movq	%rdx, %rcx
LBB0_14:
	sarq	$2, %rcx
	jmp	LBB0_15
LBB0_6:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
LBB0_15:
	movq	%rcx, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_annexb_find_next_nalu       ; -- Begin function hb_annexb_find_next_nalu
	.p2align	2
_hb_annexb_find_next_nalu:              ; @hb_annexb_find_next_nalu
	.cfi_startproc
; %bb.0:
	ldr	x10, [x1]
	cmp	x10, #4
	b.lt	LBB0_8
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	lsl	x10, x10, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #4
	sub	x8, x8, #4
	add	x11, x10, x8
	cmp	x11, #12
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x0, x9]
	cbnz	w11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x0, x9
	ldr	w12, [x11, #4]
	cbnz	w12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x11, #8]
	cmp	w11, #1
	b.ne	LBB0_2
; %bb.6:
	add	x8, x0, x9
	add	x8, x8, #12
	sub	x10, x10, x9
	sub	x10, x10, #12
	cmp	x10, #13
	b.lt	LBB0_15
; %bb.7:
	mov	x11, #0
	mov	x12, x10
	b	LBB0_11
LBB0_8:
	mov	x9, #0
	mov	x8, #0
LBB0_9:
	str	x9, [x1]
	mov	x0, x8
	ret
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x11, x11, #4
	sub	x12, x12, #4
	cmp	x12, #12
	b.le	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x0, x11
	add	x13, x13, x9
	ldr	w14, [x13, #12]
	cbnz	w14, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w13, [x13, #16]
	cbnz	w13, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x13, x0, x11
	add	x13, x13, x9
	ldr	w13, [x13, #20]
	cmp	w13, #2
	b.hs	LBB0_10
; %bb.14:
	mov	x10, x11
LBB0_15:
	asr	x9, x10, #2
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
