	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_open                      ## -- Begin function _zip_open
	.p2align	4, 0x90
__zip_open:                             ## @_zip_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_fseeko
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_ftello
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	__zip_find_central_dir
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	__zip_allocate_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movups	(%r13), %xmm0
	movups	%xmm0, 16(%rax)
	movq	%r15, 8(%rax)
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	__zip_check_torrentzip
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_5:
	movq	_ZIP_ER_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_6:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	__zip_allocate_new
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	jmp	LBB0_11
LBB0_8:
	movq	%r13, %rdi
	callq	__zip_cdir_free
LBB0_9:
	movq	%r15, %rdi
	callq	_fclose
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_ZIP_ER_SEEK,4,2                ## @ZIP_ER_SEEK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_open                      ; -- Begin function _zip_open
	.p2align	2
__zip_open:                             ; @_zip_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #0
	bl	_fseeko
	tbnz	x0, #63, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ftello
	cbz	x0, LBB0_6
; %bb.2:
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	__zip_find_central_dir
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	__zip_allocate_new
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.4:
	ldr	q0, [x23]
	str	q0, [x21, #16]
	str	x19, [x21, #8]
	mov	x0, x21
	mov	x1, x23
	bl	__zip_check_torrentzip
	ldr	w8, [x21]
	str	w8, [x21, #4]
	mov	x0, x23
	bl	_free
	b	LBB0_11
LBB0_5:
	mov	x21, #0
Lloh3:
	adrp	x8, _ZIP_ER_SEEK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZIP_ER_SEEK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	__zip_allocate_new
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.7:
	str	x19, [x21, #8]
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_fclose
	mov	x21, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x23
	bl	__zip_cdir_free
LBB0_10:
	mov	x0, x19
	bl	_fclose
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_ZIP_ER_SEEK,4,2                ; @ZIP_ER_SEEK
.subsections_via_symbols
