	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_tobuffer
_mem_tobuffer:                          ## @mem_tobuffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	callq	_isc_buffer_availableregion
	cmpl	%ebx, -32(%rbp)
	jae	LBB0_2
## %bb.1:
	movq	_ISC_R_NOSPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	-28(%rbp), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_isc_buffer_add
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOSPACE,4,2              ## @ISC_R_NOSPACE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.no_dead_strip	_mem_tobuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_tobuffer
_mem_tobuffer:                          ; @mem_tobuffer
	.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	x21, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_isc_buffer_availableregion
	ldr	w8, [sp, #8]
	cmp	w8, w19
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ISC_R_NOSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_R_NOSPACE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #12]
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	bl	_isc_buffer_add
Lloh2:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOSPACE,4,2              ; @ISC_R_NOSPACE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.no_dead_strip	_mem_tobuffer
.subsections_via_symbols
