	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _zip_check_torrentzip
__zip_check_torrentzip:                 ## @_zip_check_torrentzip
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_11
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	__zip_string_length
	movq	_TORRENT_SIG_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	leaq	8(%rdx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	_TORRENT_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	leaq	-49(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movb	$0, -41(%rbp)
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_strtoul
	movq	%rax, %r15
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%r12)
	jne	LBB0_11
LBB0_6:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpb	$0, (%rax)
	jne	LBB0_11
LBB0_8:
	movq	8(%r14), %rdi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	-72(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	__zip_filerange_crc
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	cmpq	%r15, -72(%rbp)
	jne	LBB0_11
## %bb.10:
	movq	_ZIP_AFL_TORRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TORRENT_SIG_LEN,8,3            ## @TORRENT_SIG_LEN
	.comm	_TORRENT_SIG,4,2                ## @TORRENT_SIG
	.comm	_errno,8,3                      ## @errno
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_ZIP_AFL_TORRENT,4,2            ## @ZIP_AFL_TORRENT
	.no_dead_strip	__zip_check_torrentzip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _zip_check_torrentzip
__zip_check_torrentzip:                 ; @_zip_check_torrentzip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x20, x1
	ldr	x0, [x1, #8]
	bl	__zip_string_length
Lloh3:
	adrp	x21, _TORRENT_SIG_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TORRENT_SIG_LEN@GOTPAGEOFF]
	ldr	x2, [x21]
	add	x8, x2, #8
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
Lloh5:
	adrp	x8, _TORRENT_SIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TORRENT_SIG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_strncmp
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x1, x9, x8
	add	x0, sp, #31
	mov	w2, #8
	bl	_memcpy
	strb	wzr, [sp, #39]
Lloh8:
	adrp	x22, _errno@GOTPAGE
Lloh9:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	add	x0, sp, #31
	add	x1, sp, #8
	mov	w2, #16
	bl	_strtoul
Lloh10:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_10
LBB0_7:
	ldr	x0, [x19, #8]
	ldp	w2, w1, [x20]
	add	x3, sp, #16
	mov	x4, #0
	bl	__zip_filerange_crc
	tbnz	x0, #63, LBB0_10
; %bb.8:
	ldr	x8, [sp, #16]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _ZIP_AFL_TORRENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZIP_AFL_TORRENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TORRENT_SIG_LEN,8,3            ; @TORRENT_SIG_LEN
	.comm	_TORRENT_SIG,4,2                ; @TORRENT_SIG
	.comm	_errno,8,3                      ; @errno
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_ZIP_AFL_TORRENT,4,2            ; @ZIP_AFL_TORRENT
	.no_dead_strip	__zip_check_torrentzip
.subsections_via_symbols
