	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucl_fd_append_character
_ucl_fd_append_character:               ## @ucl_fd_append_character
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movb	%r12b, -33(%rbp)
	movl	(%rdx), %r14d
	cmpq	$1, %rsi
	jne	LBB0_2
## %bb.1:
	leaq	-33(%rbp), %rsi
	movl	$1, %edx
	movl	%r14d, %edi
	callq	_write
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %r15
	movzbl	%r12b, %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_memset
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_write
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	sete	%bl
	movq	%r15, %rdi
	callq	_free
	negl	%ebx
	jmp	LBB0_9
LBB0_3:
	incq	%rbx
	leaq	-33(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.7:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ucl_fd_append_character
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucl_fd_append_character
_ucl_fd_append_character:               ; @ucl_fd_append_character
	.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
	strb	w0, [sp, #15]
	ldr	w19, [x2]
	cmp	x1, #1
	b.ne	LBB0_2
; %bb.1:
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_write
	b	LBB0_8
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_memset
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_write
	mov	x19, x0
	mov	x0, x22
	bl	_free
	cmn	w19, #1
	csetm	w0, eq
	b	LBB0_8
LBB0_4:
	add	x20, x20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	x20, x20, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ucl_fd_append_character
.subsections_via_symbols
