	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dl_zout_write_impl
_dl_zout_write_impl:                    ## @dl_zout_write_impl
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	%edx, %r12
	movq	%r12, %rdx
	callq	_write
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	callq	_assert
	movq	_fpos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	addl	%r12d, (%rax,%rcx,4)
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_crc32_partial
	movl	%eax, 12(%rbx)
LBB0_2:
	addl	%r14d, 8(%rbx)
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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_zout_write_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dl_zout_write_impl
_dl_zout_write_impl:                    ; @dl_zout_write_impl
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
	sxtw	x2, w19
	bl	_write
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
Lloh3:
	adrp	x8, _fpos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fpos@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w19
	str	w10, [x8, x9]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x20, #12]
	mov	x0, x21
	mov	x1, x19
	bl	_crc32_partial
	str	w0, [x20, #12]
LBB0_2:
	ldr	w8, [x20, #8]
	add	w8, w8, w19
	str	w8, [x20, #8]
	mov	x0, x19
	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_zout_write_impl
.subsections_via_symbols
