	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_io_zip_flush_file            ## -- Begin function r_io_zip_flush_file
	.p2align	4, 0x90
_r_io_zip_flush_file:                   ## @r_io_zip_flush_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	movl	28(%rbx), %esi
	movl	20(%rbx), %ecx
	movl	24(%rbx), %edx
	callq	_r_io_zip_open_archive
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r14
	movl	16(%rbx), %edi
	leaq	-36(%rbp), %rsi
	callq	_r_buf_data
	movl	-36(%rbp), %edx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_zip_source_buffer
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r12
	movl	(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_zip_replace
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
LBB0_8:
	movq	%r14, %rdi
	callq	_zip_close
	movq	%r12, %rdi
	callq	_zip_source_free
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_zip_close
LBB0_9:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rsi
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_zip_add
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_zip_name_locate
	movl	%eax, (%rbx)
	movl	$1, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_io_zip_flush_file            ; -- Begin function r_io_zip_flush_file
	.p2align	2
_r_io_zip_flush_file:                   ; @r_io_zip_flush_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldp	w1, w0, [x21, #28]
	ldp	w3, w2, [x21, #20]
	bl	_r_io_zip_open_archive
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	w0, [x21, #16]
	add	x1, sp, #12
	bl	_r_buf_data
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w3, #0
	bl	_zip_source_buffer
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w1, [x21]
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x2, x20
	bl	_zip_replace
	cmp	x0, #0
	cset	w21, eq
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_zip_close
LBB0_6:
	mov	w21, #0
	b	LBB0_12
LBB0_7:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x2, x20
	bl	_zip_add
	cbz	x0, LBB0_10
LBB0_9:
	mov	w21, #0
	b	LBB0_11
LBB0_10:
	ldr	x1, [x21, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_zip_name_locate
	str	w0, [x21]
	mov	w21, #1
LBB0_11:
	mov	x0, x19
	bl	_zip_close
	mov	x0, x20
	bl	_zip_source_free
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
