	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extendBufFile
_extendBufFile:                         ## @extendBufFile
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movl	32(%rdi), %eax
	movl	%eax, (%r15)
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_MakeNewSharedSegment
	jmp	LBB0_3
LBB0_1:
	movl	16(%rbx), %edi
	callq	_OpenTemporaryFile
LBB0_3:
	movq	%rax, %r14
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movl	%r12d, (%r15)
	movq	8(%rbx), %rdi
	movl	(%rbx), %eax
	leal	8(,%rax,8), %esi
	callq	_repalloc
	movq	%rax, 8(%rbx)
	movslq	(%rbx), %rcx
	movq	%r14, (%rax,%rcx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.no_dead_strip	_extendBufFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extendBufFile
_extendBufFile:                         ; @extendBufFile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _CurrentResourceOwner@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	w8, [x0, #32]
	str	w8, [x21]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_MakeNewSharedSegment
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_OpenTemporaryFile
LBB0_3:
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_Assert
	str	w22, [x21]
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_repalloc
	str	x0, [x19, #8]
	ldrsw	x8, [x19]
	str	x20, [x0, x8, lsl #3]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.no_dead_strip	_extendBufFile
.subsections_via_symbols
