	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_msg_extend                 ## -- Begin function uni_msg_extend
	.p2align	4, 0x90
_uni_msg_extend:                        ## @uni_msg_extend
	.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	%rdi, %r14
	callq	_uni_msg_leading
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_uni_msg_len
	movq	%rax, %r15
	movq	_EXTRA@GOTPCREL(%rip), %rax
	addq	%r12, %rbx
	addq	%r15, %rbx
	addq	(%rax), %rbx
	movq	_M_UNIMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	16(%r14), %rsi
	leaq	(%rax,%r12,4), %r12
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_memmove
	movq	(%r14), %rdi
	movq	_M_UNIMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	%r13, (%r14)
	movq	%r12, 16(%r14)
	leaq	(%r12,%r15,4), %rax
	movq	%rax, 24(%r14)
	leaq	(,%rbx,4), %rax
	addq	%r13, %rax
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_uni_msg_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTRA,8,3                      ## @EXTRA
	.comm	_M_UNIMSG,4,2                   ## @M_UNIMSG
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_msg_extend                 ; -- Begin function uni_msg_extend
	.p2align	2
_uni_msg_extend:                        ; @uni_msg_extend
	.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	x21, x1
	mov	x19, x0
	bl	_uni_msg_leading
	mov	x22, x0
	mov	x0, x19
	bl	_uni_msg_len
	mov	x20, x0
Lloh0:
	adrp	x8, _EXTRA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXTRA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x22, x21
	add	x9, x9, x0
	add	x21, x9, x8
Lloh3:
	adrp	x24, _M_UNIMSG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _M_UNIMSG@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	x1, [x19, #16]
	add	x22, x0, x22, lsl #2
	mov	x0, x22
	mov	x2, x20
	bl	_memmove
	ldr	x0, [x19]
	ldr	w1, [x24]
	bl	_free
	mov	w0, #0
	add	x8, x22, x20, lsl #2
	stp	x22, x8, [x19, #16]
	add	x8, x23, x21, lsl #2
	stp	x23, x8, [x19]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_uni_msg_destroy
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTRA,8,3                      ; @EXTRA
	.comm	_M_UNIMSG,4,2                   ; @M_UNIMSG
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
