	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BufFileDumpBuffer
_BufFileDumpBuffer:                     ## @BufFileDumpBuffer
	.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	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	xorl	%r14d, %r14d
	movq	_MAX_PHYSICAL_FILESIZE@GOTPCREL(%rip), %r15
	movq	_WAIT_EVENT_BUFFILE_WRITE@GOTPCREL(%rip), %r12
	movq	_pgBufferUsage@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r15), %rdi
	movq	16(%rbx), %rsi
	cmpq	%rdi, %rcx
	jl	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	24(%rbx), %rsi
	jl	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_extendBufFile
	movq	16(%rbx), %rsi
	incq	%rsi
	cmpq	24(%rbx), %rsi
	jge	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	movq	(%r15), %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, 16(%rbx)
	movq	$0, 8(%rbx)
	xorl	%ecx, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%r14d, %eax
	subq	%rcx, %rdi
	movslq	%eax, %rdx
	cmpq	%rdx, %rdi
	cmovll	%edi, %edx
	movq	56(%rbx), %rax
	movl	(%rax,%rsi,4), %edi
	movslq	%r14d, %rsi
	addq	48(%rbx), %rsi
	movl	(%r12), %r8d
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_FileWrite
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	addq	8(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	incl	(%r13)
	addl	%eax, %r14d
	movl	(%rbx), %eax
	cmpl	%eax, %r14d
	jl	LBB0_3
	jmp	LBB0_10
LBB0_1:
	movq	8(%rbx), %rcx
LBB0_10:
	movl	$0, 32(%rbx)
	cltq
	movq	40(%rbx), %rdx
	subq	%rax, %rdx
	addq	%rcx, %rdx
	movq	%rdx, 8(%rbx)
	jns	LBB0_12
## %bb.11:
	movq	16(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 16(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_Assert
	movq	_MAX_PHYSICAL_FILESIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, 8(%rbx)
LBB0_12:
	movq	$0, 40(%rbx)
	movl	$0, (%rbx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PHYSICAL_FILESIZE,8,3      ## @MAX_PHYSICAL_FILESIZE
	.comm	_WAIT_EVENT_BUFFILE_WRITE,4,2   ## @WAIT_EVENT_BUFFILE_WRITE
	.comm	_pgBufferUsage,4,2              ## @pgBufferUsage
	.no_dead_strip	_BufFileDumpBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BufFileDumpBuffer
_BufFileDumpBuffer:                     ; @BufFileDumpBuffer
	.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, x0
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.1:
	mov	w20, #0
	ldr	x3, [x19, #8]
Lloh0:
	adrp	x21, _MAX_PHYSICAL_FILESIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_PHYSICAL_FILESIZE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _WAIT_EVENT_BUFFILE_WRITE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WAIT_EVENT_BUFFILE_WRITE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _pgBufferUsage@GOTPAGE
Lloh5:
	ldr	x23, [x23, _pgBufferUsage@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x10, [x21]
	ldr	x9, [x19, #16]
	cmp	x3, x10
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	ldr	x11, [x19, #24]
	cmp	x9, x11
	b.lt	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_extendBufFile
	ldp	x8, x10, [x19, #16]
	add	x9, x8, #1
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	ldr	x10, [x21]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x3, #0
	stp	xzr, x9, [x19, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w8, w20
	sub	x10, x10, x3
	cmp	x10, w8, sxtw
	csel	w2, w10, w8, lt
	ldp	x10, x8, [x19, #48]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, x10, w20, sxtw
	ldr	w4, [x22]
	bl	_FileWrite
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	add	x3, x8, w0, uxtw
	str	x3, [x19, #8]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	w8, [x19]
	add	w20, w0, w20
	cmp	w20, w8
	b.lt	LBB0_2
	b	LBB0_10
LBB0_9:
	ldr	x3, [x19, #8]
LBB0_10:
	str	wzr, [x19, #32]
	ldr	x9, [x19, #40]
	sub	x8, x9, w8, sxtw
	adds	x8, x8, x3
	str	x8, [x19, #8]
	b.pl	LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	sub	x9, x8, #1
	str	x9, [x19, #16]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
Lloh6:
	adrp	x8, _MAX_PHYSICAL_FILESIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_PHYSICAL_FILESIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
LBB0_12:
	str	xzr, [x19, #40]
	str	wzr, [x19]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PHYSICAL_FILESIZE,8,3      ; @MAX_PHYSICAL_FILESIZE
	.comm	_WAIT_EVENT_BUFFILE_WRITE,4,2   ; @WAIT_EVENT_BUFFILE_WRITE
	.comm	_pgBufferUsage,4,2              ; @pgBufferUsage
	.no_dead_strip	_BufFileDumpBuffer
.subsections_via_symbols
