	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_io_zip_slurp_file
_r_io_zip_slurp_file:                   ## @r_io_zip_slurp_file
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	movl	24(%rbx), %esi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	callq	_r_io_zip_open_archive
	movq	%rax, %r14
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_12
## %bb.4:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zip_fopen_index
	movq	%rax, %r12
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_r_buf_new
	movq	%rax, 8(%rbx)
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_zip_stat_init
	testq	%r12, %r12
	je	LBB0_11
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.8:
	movl	(%rbx), %esi
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zip_stat_index
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movl	-48(%rbp), %esi
	movl	$1, %edi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_zip_fread
	movq	8(%rbx), %rdi
	movl	-48(%rbp), %edx
	movq	%r13, %rsi
	callq	_r_buf_set_bytes
	movl	$1, 4(%rbx)
	movq	%r13, %rdi
	callq	_free
	movl	$1, %r15d
LBB0_11:
	movq	%r12, %rdi
	callq	_zip_fclose
LBB0_12:
	movq	%r14, %rdi
	callq	_zip_close
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_r_io_zip_slurp_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_io_zip_slurp_file
_r_io_zip_slurp_file:                   ; @r_io_zip_slurp_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #28]
	ldp	w2, w1, [x20, #20]
	ldr	w3, [x20, #16]
	bl	_r_io_zip_open_archive
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w1, [x20]
	cmn	w1, #1
	b.eq	LBB0_10
; %bb.3:
	mov	x0, x19
	mov	w2, #0
	bl	_zip_fopen_index
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	bl	_r_buf_new
	str	x0, [x20, #8]
LBB0_5:
	add	x0, sp, #8
	bl	_zip_stat_init
	cbz	x21, LBB0_12
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_zip_stat_index
	mov	w22, #0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	w24, [sp, #8]
	mov	w22, #1
	mov	w0, #1
	mov	x1, x24
	bl	_calloc
	cbz	x0, LBB0_12
; %bb.9:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_zip_fread
	ldr	x0, [x20, #8]
	ldr	w2, [sp, #8]
	mov	x1, x23
	bl	_r_buf_set_bytes
	str	w22, [x20, #4]
	mov	x0, x23
	bl	_free
	b	LBB0_13
LBB0_10:
	mov	w22, #0
	b	LBB0_14
LBB0_11:
	mov	w22, #0
	b	LBB0_15
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	x0, x21
	bl	_zip_fclose
LBB0_14:
	mov	x0, x19
	bl	_zip_close
LBB0_15:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_r_io_zip_slurp_file
.subsections_via_symbols
