	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blzero                         ## -- Begin function blzero
	.p2align	4, 0x90
_blzero:                                ## @blzero
	.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_14
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %r15d
	cmpq	$0, _blzero.zero(%rip)
	jne	LBB0_4
## %bb.2:
	movq	_ZEROBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, _blzero.zero(%rip)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_4:
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	imulq	%r14, %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_rwerror
LBB0_6:
	testq	%r13, %r13
	jle	LBB0_14
## %bb.7:
	movq	_ZEROBUFSIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_dev_bsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%rax, %r14
	subq	%rbx, %r13
	jle	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_MIN
	movq	%rax, %rbx
	movq	_blzero.zero(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	callq	_write
	cmpq	%rbx, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_rwerror
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_blzero.zero,8,3 ## @blzero.zero
	.comm	_ZEROBUFSIZE,4,2                ## @ZEROBUFSIZE
	.comm	_EEXIT,4,2                      ## @EEXIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate buffer pool"

	.comm	_dev_bsize,8,3                  ## @dev_bsize
L_.str.1:                               ## @.str.1
	.asciz	"SEEK BLK"

L_.str.2:                               ## @.str.2
	.asciz	"WRITE BLK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blzero                         ; -- Begin function blzero
	.p2align	2
_blzero:                                ; @blzero
	.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
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	adrp	x24, _blzero.zero@PAGE
	ldr	x8, [x24, _blzero.zero@PAGEOFF]
Lloh0:
	adrp	x25, _ZEROBUFSIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ZEROBUFSIZE@GOTPAGEOFF]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x25]
	mov	w1, #1
	bl	_calloc
	str	x0, [x24, _blzero.zero@PAGEOFF]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _EEXIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_4:
Lloh7:
	adrp	x26, _dev_bsize@GOTPAGE
Lloh8:
	ldr	x26, [x26, _dev_bsize@GOTPAGEOFF]
	ldr	x8, [x26]
	mul	x1, x8, x20
	mov	x0, x21
	mov	w2, #0
	bl	_lseek
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_rwerror
LBB0_6:
	cmp	x19, #1
	b.lt	LBB0_11
; %bb.7:
Lloh11:
	adrp	x22, l_.str.2@PAGE
Lloh12:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x26]
	sdiv	x8, x23, x8
	add	x20, x8, x20
	sub	x19, x19, x23
	cmp	x19, #0
	b.le	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	bl	_MIN
	mov	x23, x0
	ldr	x1, [x24, _blzero.zero@PAGEOFF]
	mov	x0, x21
	mov	x2, x23
	bl	_write
	cmp	x0, x23
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_rwerror
	b	LBB0_8
LBB0_11:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_blzero.zero,8,3 ; @blzero.zero
	.comm	_ZEROBUFSIZE,4,2                ; @ZEROBUFSIZE
	.comm	_EEXIT,4,2                      ; @EEXIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate buffer pool"

	.comm	_dev_bsize,8,3                  ; @dev_bsize
l_.str.1:                               ; @.str.1
	.asciz	"SEEK BLK"

l_.str.2:                               ; @.str.2
	.asciz	"WRITE BLK"

.subsections_via_symbols
