	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_blocks
_fill_blocks:                           ## @fill_blocks
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BLOCKSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_BLOCKS_FILENAME@GOTPCREL(%rip), %r12
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r12), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movl	(%r13), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bzero
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_write
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13), %rbx
	cmpq	%rbx, %rax
	je	LBB0_3
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_warnx
	movl	%r14d, %edi
	callq	_close
	movl	(%r12), %edi
	jmp	LBB0_14
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	movq	_NUMTRIES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_16
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_write
	testq	%rax, %rax
	jns	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	callq	_warn
	movl	%r14d, %edi
	callq	_close
	movq	_BLOCKS_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_14:
	callq	_unlink
	movl	$-1, %edi
	callq	_exit
LBB0_16:
	movl	%r14d, %edi
	callq	_close
	movq	_BLOCKS_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unlink                         ## TAILCALL
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCKSIZE,4,2                  ## @BLOCKSIZE
	.comm	_BLOCKS_FILENAME,4,2            ## @BLOCKS_FILENAME
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fill_blocks: open(%s)"

	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"fill_blocks: write(%d) returned %zd"

	.comm	_ENOSPC,8,3                     ## @ENOSPC
L_.str.2:                               ## @.str.2
	.asciz	"fill_blocks: write"

	.comm	_NUMTRIES,4,2                   ## @NUMTRIES
L_.str.3:                               ## @.str.3
	.asciz	"fill_blocks: write after ENOSPC"

	.no_dead_strip	_fill_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_blocks
_fill_blocks:                           ; @fill_blocks
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _BLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BLOCKSIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x22, _BLOCKS_FILENAME@GOTPAGE
Lloh8:
	ldr	x22, [x22, _BLOCKS_FILENAME@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #384
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w2, [x22]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	ldr	w21, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_bzero
Lloh20:
	adrp	x24, _errno@GOTPAGE
Lloh21:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_write
	tbnz	x0, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldrsw	x21, [x23]
	cmp	x0, x21
	b.eq	LBB0_3
; %bb.5:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_warnx
	b	LBB0_14
LBB0_6:
	ldr	x8, [x24]
Lloh24:
	adrp	x21, _ENOSPC@GOTPAGE
Lloh25:
	ldr	x21, [x21, _ENOSPC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.7:
Lloh26:
	adrp	x25, _NUMTRIES@GOTPAGE
Lloh27:
	ldr	x25, [x25, _NUMTRIES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.8:
	mov	w26, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w26, w26, #1
	ldr	w8, [x25]
	cmp	w26, w8
	b.ge	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_write
	tbz	x0, #63, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.12:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_13:
	bl	_warn
LBB0_14:
	mov	x0, x19
	bl	_close
	ldr	w0, [x22]
	bl	_unlink
	mov	w0, #-1
	bl	_exit
LBB0_15:
	mov	x0, x19
	bl	_close
	ldr	w0, [x22]
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_unlink
LBB0_17:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCKSIZE,4,2                  ; @BLOCKSIZE
	.comm	_BLOCKS_FILENAME,4,2            ; @BLOCKS_FILENAME
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fill_blocks: open(%s)"

	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"fill_blocks: write(%d) returned %zd"

	.comm	_ENOSPC,8,3                     ; @ENOSPC
l_.str.2:                               ; @.str.2
	.asciz	"fill_blocks: write"

	.comm	_NUMTRIES,4,2                   ; @NUMTRIES
l_.str.3:                               ; @.str.3
	.asciz	"fill_blocks: write after ENOSPC"

	.no_dead_strip	_fill_blocks
.subsections_via_symbols
