	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_charmap_impl
_add_charmap_impl:                      ## @add_charmap_impl
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)
	movq	%rdi, -56(%rbp)
	cmpq	$-1, %rsi
	je	LBB0_3
## %bb.1:
	movq	_cmap_wc@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rsi
	callq	_RB_FIND
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_14
LBB0_6:
	movq	_cmap_sym@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rsi
	callq	_RB_FIND
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_4:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	movl	(%r13), %edi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_RB_INSERT
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_14
LBB0_9:
	testq	%r12, %r12
	jne	LBB0_11
## %bb.10:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	%rbx, 8(%r12)
	movq	%r14, (%r12)
	movl	(%r13), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_RB_INSERT
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str(%rip), %rdi
LBB0_13:
	callq	_errf
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmap_wc,4,2                    ## @cmap_wc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_cmap_sym,4,2                   ## @cmap_sym
L_.str.1:                               ## @.str.1
	.asciz	"duplicate character definition"

	.no_dead_strip	_add_charmap_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_charmap_impl
_add_charmap_impl:                      ; @add_charmap_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	mov	x19, x0
	stp	x0, x1, [sp]
	cmn	x1, #1
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x23, _cmap_wc@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cmap_wc@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x2, sp
	mov	x1, x23
	bl	_RB_FIND
	cbz	x0, LBB0_6
LBB0_2:
	mov	x22, #0
	cbz	x19, LBB0_13
LBB0_3:
Lloh2:
	adrp	x23, _cmap_sym@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cmap_sym@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x2, sp
	mov	x1, x23
	bl	_RB_FIND
	cbz	x0, LBB0_8
; %bb.4:
	cbz	w21, LBB0_13
; %bb.5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x22, x0
	str	x20, [x0, #8]
	ldr	w0, [x23]
	mov	x1, x23
	mov	x2, x22
	bl	_RB_INSERT
	cbnz	x19, LBB0_3
	b	LBB0_13
LBB0_8:
	cbnz	x22, LBB0_10
; %bb.9:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_10:
	stp	x19, x20, [x22]
	ldr	w0, [x23]
	mov	x1, x23
	mov	x2, x22
	bl	_RB_INSERT
	b	LBB0_13
LBB0_11:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_errf
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cmap_wc,4,2                    ; @cmap_wc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_cmap_sym,4,2                   ; @cmap_sym
l_.str.1:                               ; @.str.1
	.asciz	"duplicate character definition"

	.no_dead_strip	_add_charmap_impl
.subsections_via_symbols
