	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dl_zin_flush
_dl_zin_flush:                          ## @dl_zin_flush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_assert
	movl	8(%rbx), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_min
	movq	%rax, %r14
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	24(%rbx), %esi
	movslq	%r14d, %r15
	movq	%r15, %rdx
	callq	_read
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
	movq	_fpos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	addl	%r15d, (%rax,%rcx,4)
	subl	%r15d, 8(%rbx)
	movq	%r15, (%rbx)
	movl	24(%rbx), %eax
	movl	%eax, 28(%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd,8,3                         ## @fd
	.comm	_fpos,8,3                       ## @fpos
	.no_dead_strip	_dl_zin_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dl_zin_flush
_dl_zin_flush:                          ; @dl_zin_flush
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #8]
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #8]
	bl	_min
	mov	x20, x0
Lloh0:
	adrp	x8, _fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x19, #24]
	sxtw	x21, w20
	mov	x2, x21
	bl	_read
	cmp	w0, w20
	cset	w0, eq
	bl	_assert
Lloh3:
	adrp	x8, _fpos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fpos@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w20
	str	w10, [x8, x9]
	ldr	w8, [x19, #8]
	sub	w8, w8, w20
	str	w8, [x19, #8]
	str	x21, [x19]
	ldr	w8, [x19, #24]
	str	w8, [x19, #28]
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fd,8,3                         ; @fd
	.comm	_fpos,8,3                       ; @fpos
	.no_dead_strip	_dl_zin_flush
.subsections_via_symbols
