	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_buffer
_write_buffer:                          ## @write_buffer
	.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	%rsi, %rbx
	movq	16(%rsi), %rax
	subq	8(%rsi), %rax
	movq	%rdx, %r14
	movq	%rdi, %r12
	shrq	$2, %rax
	movl	(%rsi), %ecx
	leal	(%rcx,%rax), %edi
	addl	$4, %edi
	callq	_xmalloc
	movq	%rax, %r15
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %r13
	movq	%r12, %rdi
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_bcopy_data
	movq	_bcopy_data@GOTPCREL(%rip), %r12
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	subq	%rdi, %rsi
	shrq	$2, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rdx
	callq	_bcopy_data
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_strtab_write
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	movq	%rax, (%r14)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_buffer
_write_buffer:                          ; @write_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x9, x8, [x1, #8]
	sub	x8, x8, x9
	lsr	x8, x8, #2
	ldr	w9, [x1]
	add	w8, w9, w8
	add	w0, w8, #4
	bl	_xmalloc
	mov	x22, x0
	str	x0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #4
	bl	_bcopy_data
Lloh0:
	adrp	x21, _bcopy_data@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bcopy_data@GOTPAGEOFF]
	ldp	x0, x8, [x20, #8]
	sub	x8, x8, x0
	lsr	x1, x8, #2
	add	x2, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_bcopy_data
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_strtab_write
	ldr	x8, [sp, #8]
	sub	x8, x8, x22
	str	x8, [x19]
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_buffer
.subsections_via_symbols
