	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_find_eof_header
_sn9c102_find_eof_header:               ## @sn9c102_find_eof_header
	.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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_V4L2_PIX_FMT_SN9C10X@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.1:
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.2:
	cmpq	$4, %rdx
	jb	LBB0_3
## %bb.4:
	addq	$-4, %rdx
	leaq	_sn9c102_find_eof_header.eof_header(%rip), %r15
	xorl	%r14d, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r14
	movl	$0, %ebx
	ja	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rbx
	movq	%r15, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%r12
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	addq	$64, %r13
	cmpq	%rax, %r12
	jb	LBB0_8
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @sn9c102_find_eof_header.eof_header
_sn9c102_find_eof_header.eof_header:
	.space	64
	.long	64                              ## 0x40
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	16
	.space	16
	.space	16
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	16
	.space	16
	.space	16
	.long	192                             ## 0xc0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	16
	.space	16
	.space	16

	.comm	_V4L2_PIX_FMT_SN9C10X,8,3       ## @V4L2_PIX_FMT_SN9C10X
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.no_dead_strip	_sn9c102_find_eof_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c102_find_eof_header
_sn9c102_find_eof_header:               ; @sn9c102_find_eof_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_SN9C10X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_SN9C10X@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.1:
	subs	x23, x2, #4
	b.lo	LBB0_3
; %bb.2:
	mov	x19, x1
	mov	x24, #0
Lloh6:
	adrp	x20, _sn9c102_find_eof_header.eof_header@PAGE
Lloh7:
	add	x20, x20, _sn9c102_find_eof_header.eof_header@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, #0
	add	x24, x24, #1
	cmp	x24, x23
	b.hi	LBB0_4
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, #0
	add	x21, x19, x24
	mov	x22, x20
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x25, x25, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x22, x22, #64
	cmp	x25, x0
	b.lo	LBB0_8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @sn9c102_find_eof_header.eof_header
_sn9c102_find_eof_header.eof_header:
	.space	64
	.long	64                              ; 0x40
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	16
	.space	16
	.space	16
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	16
	.space	16
	.space	16
	.long	192                             ; 0xc0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	16
	.space	16
	.space	16

	.comm	_V4L2_PIX_FMT_SN9C10X,8,3       ; @V4L2_PIX_FMT_SN9C10X
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.no_dead_strip	_sn9c102_find_eof_header
.subsections_via_symbols
