	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_split
_h264_split:                            ## @h264_split
	.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	$-1, -44(%rbp)
	testl	%edx, %edx
	jle	LBB0_6
## %bb.1:
	movslq	%edx, %rax
	leaq	(%rsi,%rax,8), %rbx
	leaq	-44(%rbp), %r12
	movq	_H264_NAL_SPS@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r15d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %rax
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_avpriv_find_start_code
	movl	-44(%rbp), %ecx
	movl	%ecx, %edx
	andl	$-256, %edx
	cmpl	$256, %edx                      ## imm = 0x100
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$31, %ecx
	cmpl	(%r13), %ecx
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_H264_NAL_PPS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_H264_NAL_SEI@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_H264_NAL_AUD@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$15, %ecx
	je	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_H264_NAL_SPS_EXT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.16:
	leaq	-32(%rax), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rcx
	jbe	LBB0_21
## %bb.17:
	cmpq	$0, -40(%rax)
	jne	LBB0_21
## %bb.18:
	addq	$-48, %rax
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	8(%rax), %rcx
	cmpq	%rdx, %rcx
	jbe	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, (%rax)
	leaq	-8(%rax), %rax
	je	LBB0_19
LBB0_21:
	subq	%rdx, %rcx
	shrq	$3, %rcx
	jmp	LBB0_22
LBB0_6:
	xorl	%ecx, %ecx
LBB0_22:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H264_NAL_SPS,4,2               ## @H264_NAL_SPS
	.comm	_H264_NAL_PPS,4,2               ## @H264_NAL_PPS
	.comm	_H264_NAL_SEI,4,2               ## @H264_NAL_SEI
	.comm	_H264_NAL_AUD,4,2               ## @H264_NAL_AUD
	.comm	_H264_NAL_SPS_EXT,4,2           ## @H264_NAL_SPS_EXT
	.no_dead_strip	_h264_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_split
_h264_split:                            ; @h264_split
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w8, #-1
	str	w8, [sp, #12]
	cmp	w2, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	w21, #0
	mov	w22, #0
Lloh0:
	adrp	x23, _H264_NAL_SPS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _H264_NAL_SPS@GOTPAGEOFF]
Lloh2:
	adrp	x24, _H264_NAL_PPS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _H264_NAL_PPS@GOTPAGEOFF]
Lloh4:
	adrp	x25, _H264_NAL_SEI@GOTPAGE
Lloh5:
	ldr	x25, [x25, _H264_NAL_SEI@GOTPAGEOFF]
	mov	x0, x1
Lloh6:
	adrp	x26, _H264_NAL_AUD@GOTPAGE
Lloh7:
	ldr	x26, [x26, _H264_NAL_AUD@GOTPAGEOFF]
Lloh8:
	adrp	x27, _H264_NAL_SPS_EXT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _H264_NAL_SPS_EXT@GOTPAGEOFF]
	add	x20, x1, w2, sxtw #3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x20
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x1, x20
	bl	_avpriv_find_start_code
	ldr	w8, [sp, #12]
	and	w9, w8, #0xffffff00
	cmp	w9, #256
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w8, #0x1f
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #1
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	cmp	w8, w9
	ccmp	w22, #0, #0, eq
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #15
	b.eq	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	cmp	w8, w9
	ccmp	w21, #0, #4, ne
	b.eq	LBB0_3
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	b	LBB0_3
LBB0_13:
	mov	w0, #0
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	sub	x8, x0, #32
	cmp	x8, x19
	b.ls	LBB0_20
; %bb.16:
	ldur	x9, [x0, #-40]
	cbnz	x9, LBB0_20
; %bb.17:
	sub	x9, x0, #48
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x9, #8
	cmp	x8, x19
	b.ls	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x10, [x9], #-8
	cbz	x10, LBB0_18
LBB0_20:
	sub	x8, x8, x19
	lsr	x0, x8, #3
	b	LBB0_14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H264_NAL_SPS,4,2               ; @H264_NAL_SPS
	.comm	_H264_NAL_PPS,4,2               ; @H264_NAL_PPS
	.comm	_H264_NAL_SEI,4,2               ; @H264_NAL_SEI
	.comm	_H264_NAL_AUD,4,2               ; @H264_NAL_AUD
	.comm	_H264_NAL_SPS_EXT,4,2           ; @H264_NAL_SPS_EXT
	.no_dead_strip	_h264_split
.subsections_via_symbols
