	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_write_blocked
_do_write_blocked:                      ## @do_write_blocked
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_offset@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_BLOCKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	subq	%rdi, %r15
	cmpq	%r14, %r15
	cmovaeq	%r14, %r15
	movq	_block@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	subq	%r15, %r14
	addq	%r15, (%r12)
	addq	%r15, %rbx
	xorl	%eax, %eax
	callq	_write_if_needed
LBB0_2:
	movq	_BLOCKSIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	cmpq	%rdx, %r14
	jb	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_write_or_die
	movq	(%r15), %rdx
	subq	%rdx, %r14
	addq	%rdx, %rbx
	cmpq	%rdx, %r14
	jae	LBB0_3
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_block@GOTPCREL(%rip), %rax
	movq	(%r12), %rdi
	addq	(%rax), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	addq	%r14, (%r12)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_offset,8,3                     ## @offset
	.comm	_BLOCKSIZE,8,3                  ## @BLOCKSIZE
	.comm	_block,8,3                      ## @block
	.no_dead_strip	_do_write_blocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_write_blocked
_do_write_blocked:                      ; @do_write_blocked
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _offset@GOTPAGE
Lloh1:
	ldr	x22, [x22, _offset@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x24, _BLOCKSIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BLOCKSIZE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _block@GOTPAGE
Lloh5:
	ldr	x23, [x23, _block@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x24]
	sub	x9, x9, x8
	cmp	x9, x19
	csel	x21, x9, x19, lo
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	sub	x19, x19, x21
	ldr	x8, [x22]
	add	x8, x8, x21
	str	x8, [x22]
	add	x20, x20, x21
	bl	_write_if_needed
LBB0_2:
	ldr	x2, [x24]
	cmp	x19, x2
	b.lo	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_write_or_die
	ldr	x2, [x24]
	add	x20, x20, x2
	sub	x19, x19, x2
	cmp	x19, x2
	b.hs	LBB0_3
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x8, [x23]
	ldr	x9, [x22]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x22]
	add	x8, x8, x19
	str	x8, [x22]
LBB0_6:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_offset,8,3                     ; @offset
	.comm	_BLOCKSIZE,8,3                  ; @BLOCKSIZE
	.comm	_block,8,3                      ; @block
	.no_dead_strip	_do_write_blocked
.subsections_via_symbols
