	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_write_buf
_prepare_write_buf:                     ## @prepare_write_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_prepare_write_buf.buf.1(%rip), %rdx
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_write_block_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_h2o_mem_alloc
	movq	%rax, _prepare_write_buf.buf.1(%rip)
	movl	(%rbx), %edx
	movl	%edx, _prepare_write_buf.buf.0(%rip)
	movq	%rax, %rdi
	movl	$48, %esi
	callq	_memset
	movq	_prepare_write_buf.buf.1(%rip), %rdx
LBB0_2:
	movl	_prepare_write_buf.buf.0(%rip), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_prepare_write_buf.buf.0,4,3 ## @prepare_write_buf.buf.0
.zerofill __DATA,__bss,_prepare_write_buf.buf.1,8,3 ## @prepare_write_buf.buf.1
	.comm	_write_block_size,4,2           ## @write_block_size
	.no_dead_strip	_prepare_write_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_write_buf
_prepare_write_buf:                     ; @prepare_write_buf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _prepare_write_buf.buf@PAGE+8
Lloh1:
	ldr	x1, [x8, _prepare_write_buf.buf@PAGEOFF+8]
	cbnz	x1, LBB0_2
; %bb.1:
Lloh2:
	adrp	x19, _write_block_size@GOTPAGE
Lloh3:
	ldr	x19, [x19, _write_block_size@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_h2o_mem_alloc
Lloh4:
	adrp	x20, _prepare_write_buf.buf@PAGE
Lloh5:
	add	x20, x20, _prepare_write_buf.buf@PAGEOFF
	str	x0, [x20, #8]
	ldr	w2, [x19]
	str	w2, [x20]
	mov	w1, #48
	bl	_memset
	ldr	x1, [x20, #8]
LBB0_2:
Lloh6:
	adrp	x8, _prepare_write_buf.buf@PAGE
Lloh7:
	ldr	x0, [x8, _prepare_write_buf.buf@PAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_prepare_write_buf.buf,16,3 ; @prepare_write_buf.buf
	.comm	_write_block_size,4,2           ; @write_block_size
	.no_dead_strip	_prepare_write_buf
.subsections_via_symbols
