	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_h264_to_annexb
_convert_h264_to_annexb:                ## @convert_h264_to_annexb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	leaq	-3(%rdx), %rax
	cmpq	$1, %rax
	ja	LBB0_13
## %bb.2:
	movq	(%rcx), %r9
	movq	_INT_MAX@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpq	%rdx, %r9
	jae	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r10, %r11
	movl	8(%rcx), %eax
	shll	$8, %eax
	orl	(%rdi,%r10,4), %eax
	movl	%eax, 8(%rcx)
	movl	$0, (%rdi,%r10,4)
	incl	%r10d
	incq	%r9
	cmpq	%rdx, %r9
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r10, %rsi
	ja	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, (%rcx)
	cmpq	%rdx, %r9
	jb	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%rdi,%r11,4)
	leaq	(%rdi,%r10,4), %rdi
	subq	%r10, %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %r9
	movslq	8(%rcx), %rax
	cmpl	(%r8), %eax
	jg	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rsi
	subq	%rax, %rsi
	jb	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdi,%rax,4), %rdi
	movl	$0, 8(%rcx)
	movq	$0, (%rcx)
	movl	$0, %r9d
	jne	LBB0_3
LBB0_13:
	popq	%rbp
	retq
LBB0_11:
	subl	%r9d, %eax
	movl	%eax, 8(%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_convert_h264_to_annexb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_h264_to_annexb
_convert_h264_to_annexb:                ; @convert_h264_to_annexb
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_12
; %bb.1:
	sub	x8, x2, #3
	cmp	x8, #1
	b.hi	LBB0_12
; %bb.2:
	ldr	x10, [x3]
	mov	w8, #1
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	x10, x2
	b.hs	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x11, x12
	ldr	w12, [x3, #8]
	lsl	x13, x11, #2
	ldr	w14, [x0, x13]
	orr	w12, w14, w12, lsl #8
	str	w12, [x3, #8]
	str	wzr, [x0, x13]
	add	w12, w11, #1
	add	x10, x10, #1
	cmp	x10, x2
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x1, x12
	b.hi	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x10, [x3]
	cmp	x10, x2
	b.lo	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x0, x11, lsl #2]
	sub	x1, x1, x12
	add	x0, x0, x12, lsl #2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x11, [x3, #8]
	ldr	w10, [x9]
	cmp	w11, w10
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	subs	x12, x1, x11
	b.lo	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	add	x0, x0, x11, lsl #2
	str	wzr, [x3, #8]
	str	xzr, [x3]
	mov	x1, x12
	b.ne	LBB0_3
LBB0_12:
	ret
LBB0_13:
	sub	w8, w11, w1
	str	w8, [x3, #8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_convert_h264_to_annexb
.subsections_via_symbols
