	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_find_sof_header
_sn9c102_find_sof_header:               ## @sn9c102_find_sof_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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_sn9c102_sof_length
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	testq	%r13, %r13
	je	LBB0_18
## %bb.1:
	movq	%r13, %rax
	negq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rbx)
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r13
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	%r13, %r14
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	jae	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	xorl	%edi, %edi
	cmpl	$6, (%rbx)
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	(%r12,%r14), %al
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	movb	%al, (%rcx,%rdx)
	movslq	(%rbx), %rax
	incq	%rax
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	cmovel	%r15d, %eax
	movl	%eax, (%rbx)
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rbx), %r15
	cmpq	$5, %r15
	ja	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r14), %r13
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	xorl	%edi, %edi
	cmpq	$1, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	-1(%r12,%r13), %eax
	movslq	(%rbx), %rcx
	leaq	_sn9c102_find_sof_header.marker(%rip), %rdx
	cmpb	(%rcx,%rdx), %al
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rdx
	movb	%al, (%rdx,%rcx)
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	cmpl	$6, %eax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	incq	%r15
	cmpq	$6, %r15
	jb	LBB0_7
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_PDBGG
	jmp	LBB0_15
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_17:
	addq	%r14, %r12
	movq	%r12, %r15
LBB0_18:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_sn9c102_find_sof_header.marker:        ## @sn9c102_find_sof_header.marker
	.ascii	"\377\377\000\304\304\226"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bytes to analyze: %zd. SOF starts at byte #%zd"

	.no_dead_strip	_sn9c102_find_sof_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_sof_header
_sn9c102_find_sof_header:               ; @sn9c102_find_sof_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_sn9c102_sof_length
	cbz	x20, LBB0_13
; %bb.1:
	mov	x22, x0
	mov	x23, #0
Lloh0:
	adrp	x25, _sn9c102_find_sof_header.marker@PAGE
Lloh1:
	add	x25, x25, _sn9c102_find_sof_header.marker@PAGEOFF
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x19, x23]
	ldr	x9, [x21, #8]
	ldrsw	x10, [x21]
	strb	w8, [x9, x10]
	ldrsw	x8, [x21]
	add	x8, x8, #1
	cmp	x22, x8
	csel	w8, wzr, w8, eq
	str	w8, [x21]
	b.eq	LBB0_15
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, x20
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x21]
	cmp	w8, #5
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x27, [x21]
	cmp	w27, #5
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x23
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x20, x26
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w8, [x19, x26]
	ldrsw	x9, [x21]
	ldrb	w10, [x25, x9]
	cmp	w8, w10
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x21, #8]
	strb	w8, [x10, x9]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	cmp	w8, #6
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	add	x27, x27, #1
	cmp	x27, #6
	b.lo	LBB0_7
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x21]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x20
	mov	x2, x23
	bl	_PDBGG
	add	x23, x26, #1
	b	LBB0_3
LBB0_13:
	mov	x0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	add	x0, x19, x23
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_sn9c102_find_sof_header.marker:        ; @sn9c102_find_sof_header.marker
	.ascii	"\377\377\000\304\304\226"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bytes to analyze: %zd. SOF starts at byte #%zd"

	.no_dead_strip	_sn9c102_find_sof_header
.subsections_via_symbols
