	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FindSignature
_FindSignature:                         ## @FindSignature
	.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, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_kBufferSize@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	$0, (%r15)
	movq	_kSignatureSearchLimit@GOTPCREL(%rip), %rax
	movq	_False@GOTPCREL(%rip), %r13
	cmpq	$0, (%rax)
	js	LBB0_17
## %bb.1:
	movslq	%r12d, %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_File_Read
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_k7zStartHeaderSize@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-56(%rbp), %rax
	addq	%r13, %rax
	movq	(%r14), %rcx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	jb	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_16
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -56(%rbp)
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, %r12
	ja	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$55, (%rbx,%r12)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r12
	jmp	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rbx,%r12), %rdi
	movq	_k7zSignature@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_k7zSignatureSize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rbx,%r12), %rdi
	addq	$12, %rdi
	movl	$20, %esi
	callq	_CrcCalc
	movq	%rax, %r13
	leaq	(%rbx,%r12), %rdi
	addq	$8, %rdi
	callq	_GetUi32
	cmpq	%rax, %r13
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r12
	movq	-56(%rbp), %rsi
	cmpq	%rsi, %r12
	jbe	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rsi, (%r15)
	movq	(%r14), %r13
	addq	%rbx, %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_memmove
	movq	(%r15), %rax
	movq	_kSignatureSearchLimit@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_kBufferSize@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%r13, %rax
	movq	%rax, -56(%rbp)
	leaq	(%rbx,%r13), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rdx
	callq	_File_Read
	testq	%rax, %rax
	je	LBB0_3
LBB0_16:
	movq	_False@GOTPCREL(%rip), %r13
LBB0_17:
	movl	(%r13), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	addq	%r12, (%r15)
	movq	_True@GOTPCREL(%rip), %r13
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kBufferSize,4,2                ## @kBufferSize
	.comm	_kSignatureSearchLimit,8,3      ## @kSignatureSearchLimit
	.comm	_False,4,2                      ## @False
	.comm	_k7zStartHeaderSize,8,3         ## @k7zStartHeaderSize
	.comm	_k7zSignature,4,2               ## @k7zSignature
	.comm	_k7zSignatureSize,4,2           ## @k7zSignatureSize
	.comm	_True,4,2                       ## @True
	.no_dead_strip	_FindSignature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FindSignature
_FindSignature:                         ; @FindSignature
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _kBufferSize@GOTPAGE
Lloh4:
	ldr	x24, [x24, _kBufferSize@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	str	xzr, [x1]
Lloh7:
	adrp	x26, _kSignatureSearchLimit@GOTPAGE
Lloh8:
	ldr	x26, [x26, _kSignatureSearchLimit@GOTPAGEOFF]
	ldr	x9, [x26]
	tbnz	x9, #63, LBB0_2
; %bb.1:
	sxtw	x8, w8
	stur	x8, [x29, #-96]
	sub	x2, x29, #96
	mov	x0, x20
	mov	x1, x21
	bl	_File_Read
	cbz	x0, LBB0_5
LBB0_2:
Lloh9:
	adrp	x8, _False@GOTPAGE
Lloh10:
	ldr	x8, [x8, _False@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.4:
	sub	sp, x29, #80
	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_5:
	mov	x22, #0
Lloh14:
	adrp	x27, _k7zStartHeaderSize@GOTPAGE
Lloh15:
	ldr	x27, [x27, _k7zStartHeaderSize@GOTPAGEOFF]
Lloh16:
	adrp	x23, _k7zSignature@GOTPAGE
Lloh17:
	ldr	x23, [x23, _k7zSignature@GOTPAGEOFF]
Lloh18:
	adrp	x25, _k7zSignatureSize@GOTPAGE
Lloh19:
	ldr	x25, [x25, _k7zSignatureSize@GOTPAGEOFF]
	stur	x20, [x29, #-104]               ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldur	x8, [x29, #-96]
	ldr	x9, [x27]
	add	x10, x8, x22
	subs	x8, x10, x9
	b.lo	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x22, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x10, x9
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	stur	x8, [x29, #-96]
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x28, x8
	b.hi	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w9, [x21, x28]
	cmp	w9, #55
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x28, x28, #1
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x21, x28
	ldr	w1, [x23]
	ldr	w2, [x25]
	mov	x0, x22
	bl	_memcmp
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, x22, #12
	mov	w1, #20
	bl	_CrcCalc
	mov	x20, x27
	mov	x27, x25
	mov	x25, x26
	mov	x26, x24
	mov	x24, x23
	mov	x23, x0
	add	x0, x22, #8
	bl	_GetUi32
	cmp	x23, x0
	mov	x23, x24
	mov	x24, x26
	mov	x26, x25
	mov	x25, x27
	mov	x27, x20
	ldur	x20, [x29, #-104]               ; 8-byte Folded Reload
	b.eq	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x28, x28, #1
	ldur	x8, [x29, #-96]
	cmp	x28, x8
	b.ls	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19]
	add	x9, x9, x8
	str	x9, [x19]
	ldr	x22, [x27]
	add	x1, x21, x8
	mov	x0, x21
	mov	x2, x22
	bl	_memmove
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.gt	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x24]
	sub	x8, x8, x22
	stur	x8, [x29, #-96]
	add	x1, x21, x22
	sub	x2, x29, #96
	mov	x0, x20
	bl	_File_Read
	cbz	x0, LBB0_6
	b	LBB0_2
LBB0_18:
	ldr	x8, [x19]
	add	x8, x8, x28
	str	x8, [x19]
Lloh20:
	adrp	x8, _True@GOTPAGE
Lloh21:
	ldr	x8, [x8, _True@GOTPAGEOFF]
	b	LBB0_3
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_kBufferSize,4,2                ; @kBufferSize
	.comm	_kSignatureSearchLimit,8,3      ; @kSignatureSearchLimit
	.comm	_False,4,2                      ; @False
	.comm	_k7zStartHeaderSize,8,3         ; @k7zStartHeaderSize
	.comm	_k7zSignature,4,2               ; @k7zSignature
	.comm	_k7zSignatureSize,4,2           ; @k7zSignatureSize
	.comm	_True,4,2                       ; @True
	.no_dead_strip	_FindSignature
.subsections_via_symbols
