	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blwrite                        ## -- Begin function blwrite
	.p2align	4, 0x90
_blwrite:                               ## @blwrite
	.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
	testl	%edi, %edi
	js	LBB0_3
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	%edx, %r12d
	movl	%ecx, %edx
	movl	%r12d, %ecx
	callq	_pwrite
	cmpl	%r14d, %eax
	jne	LBB0_4
## %bb.2:
	movq	_fsmodified@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_resolved@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_rwerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.5:
	movslq	%r13d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%eax, %r13d
	movslq	%eax, %rcx
	addq	%rcx, %rbx
	cmpl	%r14d, %r13d
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %ecx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pwrite
	movq	_dev_bsize@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movslq	%eax, %rsi
	addq	-48(%rbp), %rsi                 ## 8-byte Folded Reload
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_9:
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putchar                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_bsize,4,2                  ## @dev_bsize
	.comm	_fsmodified,4,2                 ## @fsmodified
	.comm	_resolved,8,3                   ## @resolved
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRITE BLK"

L_.str.1:                               ## @.str.1
	.asciz	"THE FOLLOWING SECTORS COULD NOT BE WRITTEN:"

L_.str.2:                               ## @.str.2
	.asciz	" %jd,"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blwrite                        ; -- Begin function blwrite
	.p2align	2
_blwrite:                               ; @blwrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _dev_bsize@GOTPAGE
Lloh1:
	ldr	x24, [x24, _dev_bsize@GOTPAGEOFF]
	ldr	w8, [x24]
	mul	w22, w8, w2
	mov	x2, x3
	mov	x3, x22
	bl	_pwrite
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _fsmodified@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fsmodified@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh5:
	adrp	x8, _resolved@GOTPAGE
Lloh6:
	ldr	x8, [x8, _resolved@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_rwerror
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w25, #0
	sxtw	x26, w23
	ldr	w2, [x24]
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, w2, sxtw
	add	w25, w2, w25
	cmp	w25, w19
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w3, w25, w22
	mov	x0, x21
	mov	x1, x20
	bl	_pwrite
	mov	x2, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sdiv	w8, w25, w8
	add	x8, x26, w8, sxtw
	str	x8, [sp]
	mov	x0, x23
	bl	_printf
	ldr	w2, [x24]
	b	LBB0_6
LBB0_9:
	mov	w0, #10
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_putchar
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_bsize,4,2                  ; @dev_bsize
	.comm	_fsmodified,4,2                 ; @fsmodified
	.comm	_resolved,8,3                   ; @resolved
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRITE BLK"

l_.str.1:                               ; @.str.1
	.asciz	"THE FOLLOWING SECTORS COULD NOT BE WRITTEN:"

l_.str.2:                               ; @.str.2
	.asciz	" %jd,"

.subsections_via_symbols
