	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gxf_parse_mpeg_frame
_gxf_parse_mpeg_frame:                  ## @gxf_parse_mpeg_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	$1, %eax
	cmpl	$5, %edx
	jl	LBB0_8
## %bb.1:
	addl	$-4, %edx
	movl	$-1, %r8d
	movl	$4, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %r8d
	addl	-16(%rsi,%rax,4), %r8d
	cmpl	$440, %r8d                      ## imm = 0x1B8
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, (%rdi)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi,%rax,4), %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	movl	%ecx, (%rdi)
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-3(%rax), %rcx
	incq	%rax
	cmpq	%rdx, %rcx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$256, %r8d                      ## imm = 0x100
	jne	LBB0_2
LBB0_7:
	addl	$-3, %eax
LBB0_8:
	movl	(%rsi,%rax,4), %eax
	shrl	$3, %eax
	andl	$7, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gxf_parse_mpeg_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gxf_parse_mpeg_frame
_gxf_parse_mpeg_frame:                  ; @gxf_parse_mpeg_frame
	.cfi_startproc
; %bb.0:
	cmp	w2, #5
	b.lt	LBB0_8
; %bb.1:
	mov	x8, #0
	sub	w9, w2, #4
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1, x8, lsl #2]
	add	w10, w11, w10, lsl #8
	cmp	w10, #440
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x0]
	cmn	w11, #1
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x1, x8, lsl #2
	ldr	w11, [x11, #16]
	ubfx	w11, w11, #6, #1
	str	w11, [x0]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w10, #256
	b.ne	LBB0_2
LBB0_7:
	add	w8, w8, #1
	b	LBB0_9
LBB0_8:
	mov	w8, #1
LBB0_9:
	ldr	w8, [x1, x8, lsl #2]
	ubfx	w0, w8, #3, #3
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gxf_parse_mpeg_frame
.subsections_via_symbols
