	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_headers_search
_find_headers_search:                   ## @find_headers_search
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %edi
	leal	2(%rdx), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-4, %eax
	negl	%eax
	leal	(%rdx,%rax), %r14d
	decl	%r14d
	testl	%r14d, %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.15:
	movl	%r14d, %r15d
	xorl	%r12d, %r12d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movl	%ecx, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r13d
	addq	$4, %rbx
	decq	%r15
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65528, %eax                    ## imm = 0xFFF8
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_find_headers_search_validate
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_19:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%edi, %r14d
	jl	LBB0_3
	jmp	LBB0_14
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	cmpl	%edi, %r14d
	jge	LBB0_14
LBB0_3:
	movl	%r14d, %eax
	leaq	(%rsi,%rax,4), %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$4, %r14d
	addq	$16, %rbx
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_AV_RN32
	movl	$-16843010, %ecx                ## imm = 0xFEFEFEFE
	subl	%eax, %ecx
	andl	%eax, %ecx
	testl	$-2139062144, %ecx              ## imm = 0x80808080
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65528, %eax                    ## imm = 0xFFF8
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r15,%r14), %esi
	movq	%r13, %rdi
	callq	_find_headers_search_validate
	movl	%eax, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	4(%rbx), %rdi
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65528, %eax                    ## imm = 0xFFF8
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r15,%r14), %esi
	incl	%esi
	movq	%r13, %rdi
	callq	_find_headers_search_validate
	movl	%eax, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	8(%rbx), %rdi
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65528, %eax                    ## imm = 0xFFF8
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r15,%r14), %esi
	addl	$2, %esi
	movq	%r13, %rdi
	callq	_find_headers_search_validate
	movl	%eax, %r12d
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	12(%rbx), %rdi
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65528, %eax                    ## imm = 0xFFF8
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r15,%r14), %esi
	addl	$3, %esi
	movq	%r13, %rdi
	callq	_find_headers_search_validate
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_14:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_headers_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_headers_search
_find_headers_search:                   ; @find_headers_search
	.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
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
	sub	w23, w2, #1
	negs	w8, w23
	and	w8, w8, #0x3
	and	w9, w23, #0x3
	csneg	w24, w9, w8, mi
	cmp	w24, #0
	b.le	LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	mov	w9, #65528
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_find_headers_search_validate
	mov	x21, x0
	cmp	w24, #1
	b.ne	LBB0_5
	b	LBB0_10
LBB0_3:
	mov	w24, #0
	mov	w21, #0
	b	LBB0_10
LBB0_4:
	mov	w21, #0
	cmp	w24, #1
	b.eq	LBB0_10
LBB0_5:
	add	x0, x22, #4
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	mov	w9, #65528
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	add	w1, w19, #1
	mov	x0, x20
	bl	_find_headers_search_validate
	mov	x21, x0
LBB0_7:
	cmp	w24, #2
	b.eq	LBB0_10
; %bb.8:
	add	x0, x22, #8
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	mov	w9, #65528
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	add	w1, w19, #2
	mov	x0, x20
	bl	_find_headers_search_validate
	mov	x21, x0
LBB0_10:
	cmp	w24, w23
	b.ge	LBB0_22
; %bb.11:
	add	x22, x22, w24, uxtw #2
	mov	w25, #-16843010
	mov	w26, #65528
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w24, w24, #4
	add	x22, x22, #16
	cmp	w23, w24
	b.le	LBB0_22
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_AV_RN32
	sub	w8, w25, w0
	and	w8, w0, w8
	tst	w8, #0x80808080
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	cmp	w8, w26
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w1, w19, w24
	mov	x0, x20
	bl	_find_headers_search_validate
	mov	x21, x0
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x22, #4
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	cmp	w8, w26
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w19, w24
	add	w1, w8, #1
	mov	x0, x20
	bl	_find_headers_search_validate
	mov	x21, x0
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x22, #8
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	cmp	w8, w26
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w19, w24
	add	w1, w8, #2
	mov	x0, x20
	bl	_find_headers_search_validate
	mov	x21, x0
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x22, #12
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	cmp	w8, w26
	b.ne	LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w19, w24
	add	w1, w8, #3
	mov	x0, x20
	bl	_find_headers_search_validate
	mov	x21, x0
	b	LBB0_12
LBB0_22:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_headers_search
.subsections_via_symbols
