	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufinit                        ## -- Begin function bufinit
	.p2align	4, 0x90
_bufinit:                               ## @bufinit
	.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	_pdirbp@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pbp@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_sblock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_2:
	movq	_cgblk@GOTPCREL(%rip), %rdi
	movq	%rbx, (%rdi)
	movq	_BT_CYLGRP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_initbarea
	movq	_bufhead@GOTPCREL(%rip), %rdi
	callq	_TAILQ_INIT
	movq	_MAXBUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MINBUFS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %rax
	cmovgq	%rax, %r13
	xorl	%r14d, %r14d
	testq	%r13, %r13
	jle	LBB0_10
## %bb.3:
	movq	_BT_UNKNOWN@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_MINBUFS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, (%rbx)
	movq	_b_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bufhead@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_initbarea
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$8, %edi
	callq	_Malloc
	movq	%rax, %rbx
	movq	_sblock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Malloc
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	jne	LBB0_8
	jmp	LBB0_6
LBB0_9:
	movq	%r13, %r14
LBB0_10:
	movq	_numbufs@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_BT_NUMBUFTYPES@GOTPCREL(%rip), %r8
	cmpq	$0, (%r8)
	jle	LBB0_13
## %bb.11:
	movq	_totalreadtime@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_readtime@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_totalreadcnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_readcnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, 8(%rdx,%rbx)
	movups	%xmm0, (%rcx,%rbx)
	movq	$0, (%rdx,%rbx)
	movq	$0, (%rsi,%rax,8)
	movq	$0, (%rdi,%rax,8)
	incq	%rax
	addq	$16, %rbx
	cmpq	(%r8), %rax
	jl	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pdirbp,8,3                     ## @pdirbp
	.comm	_pbp,8,3                        ## @pbp
	.comm	_sblock,8,3                     ## @sblock
	.comm	_EEXIT,4,2                      ## @EEXIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate buffer pool"

	.comm	_cgblk,8,3                      ## @cgblk
	.comm	_BT_CYLGRP,4,2                  ## @BT_CYLGRP
	.comm	_bufhead,4,2                    ## @bufhead
	.comm	_MAXBUFS,8,3                    ## @MAXBUFS
	.comm	_MINBUFS,8,3                    ## @MINBUFS
	.comm	_b_list,4,2                     ## @b_list
	.comm	_BT_UNKNOWN,4,2                 ## @BT_UNKNOWN
	.comm	_numbufs,8,3                    ## @numbufs
	.comm	_BT_NUMBUFTYPES,8,3             ## @BT_NUMBUFTYPES
	.comm	_totalreadtime,8,3              ## @totalreadtime
	.comm	_readtime,8,3                   ## @readtime
	.comm	_totalreadcnt,8,3               ## @totalreadcnt
	.comm	_readcnt,8,3                    ## @readcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufinit                        ; -- Begin function bufinit
	.p2align	2
_bufinit:                               ; @bufinit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _pdirbp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pdirbp@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _pbp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pbp@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x23, _sblock@GOTPAGE
Lloh7:
	ldr	x23, [x23, _sblock@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_Malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EEXIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_2:
Lloh13:
	adrp	x0, _cgblk@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cgblk@GOTPAGEOFF]
	str	x19, [x0]
Lloh15:
	adrp	x8, _BT_CYLGRP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BT_CYLGRP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_initbarea
Lloh18:
	adrp	x0, _bufhead@GOTPAGE
Lloh19:
	ldr	x0, [x0, _bufhead@GOTPAGEOFF]
	bl	_TAILQ_INIT
Lloh20:
	adrp	x8, _MAXBUFS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAXBUFS@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x26, _MINBUFS@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MINBUFS@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	csel	x27, x8, x9, gt
	cmp	x27, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x25, #0
Lloh25:
	adrp	x28, _b_list@GOTPAGE
Lloh26:
	ldr	x28, [x28, _b_list@GOTPAGEOFF]
Lloh27:
	adrp	x19, _bufhead@GOTPAGE
Lloh28:
	ldr	x19, [x19, _bufhead@GOTPAGEOFF]
Lloh29:
	adrp	x20, l_.str@PAGE
Lloh30:
	add	x20, x20, l_.str@PAGEOFF
Lloh31:
	adrp	x24, _BT_UNKNOWN@GOTPAGE
Lloh32:
	ldr	x24, [x24, _BT_UNKNOWN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26]
	cmp	x25, x8
	b.ge	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh33:
	adrp	x8, _EEXIT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_errx
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x22, [x21]
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x21
	bl	_TAILQ_INSERT_HEAD
	ldr	w1, [x24]
	mov	x0, x21
	bl	_initbarea
	add	x25, x25, #1
	cmp	x27, x25
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #8
	bl	_Malloc
	mov	x21, x0
	ldr	w0, [x23]
	bl	_Malloc
	mov	x22, x0
	cbz	x21, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x22, LBB0_6
	b	LBB0_4
LBB0_9:
	mov	x25, #0
	b	LBB0_11
LBB0_10:
	mov	x25, x27
LBB0_11:
Lloh36:
	adrp	x8, _numbufs@GOTPAGE
Lloh37:
	ldr	x8, [x8, _numbufs@GOTPAGEOFF]
Lloh38:
	str	x25, [x8]
Lloh39:
	adrp	x8, _BT_NUMBUFTYPES@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BT_NUMBUFTYPES@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x9, #0
Lloh41:
	adrp	x10, _totalreadtime@GOTPAGE
Lloh42:
	ldr	x10, [x10, _totalreadtime@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
Lloh44:
	adrp	x11, _readtime@GOTPAGE
Lloh45:
	ldr	x11, [x11, _readtime@GOTPAGEOFF]
Lloh46:
	adrp	x12, _totalreadcnt@GOTPAGE
Lloh47:
	ldr	x12, [x12, _totalreadcnt@GOTPAGEOFF]
Lloh48:
	ldr	x13, [x11]
Lloh49:
	ldr	x11, [x12]
Lloh50:
	adrp	x12, _readcnt@GOTPAGE
Lloh51:
	ldr	x12, [x12, _readcnt@GOTPAGEOFF]
Lloh52:
	ldr	x12, [x12]
	add	x13, x13, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x13]
	add	x14, x10, x9, lsl #4
	stp	xzr, xzr, [x14]
	stur	xzr, [x13, #-8]
	lsl	x14, x9, #3
	str	xzr, [x11, x14]
	str	xzr, [x12, x14]
	add	x9, x9, #1
	ldr	x14, [x8]
	add	x13, x13, #16
	cmp	x9, x14
	b.lt	LBB0_13
LBB0_14:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_pdirbp,8,3                     ; @pdirbp
	.comm	_pbp,8,3                        ; @pbp
	.comm	_sblock,8,3                     ; @sblock
	.comm	_EEXIT,4,2                      ; @EEXIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate buffer pool"

	.comm	_cgblk,8,3                      ; @cgblk
	.comm	_BT_CYLGRP,4,2                  ; @BT_CYLGRP
	.comm	_bufhead,4,2                    ; @bufhead
	.comm	_MAXBUFS,8,3                    ; @MAXBUFS
	.comm	_MINBUFS,8,3                    ; @MINBUFS
	.comm	_b_list,4,2                     ; @b_list
	.comm	_BT_UNKNOWN,4,2                 ; @BT_UNKNOWN
	.comm	_numbufs,8,3                    ; @numbufs
	.comm	_BT_NUMBUFTYPES,8,3             ; @BT_NUMBUFTYPES
	.comm	_totalreadtime,8,3              ; @totalreadtime
	.comm	_readtime,8,3                   ; @readtime
	.comm	_totalreadcnt,8,3               ; @totalreadcnt
	.comm	_readcnt,8,3                    ; @readcnt
.subsections_via_symbols
