	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_charmap                 ## -- Begin function lookup_charmap
	.p2align	4, 0x90
_lookup_charmap:                        ## @lookup_charmap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdi, -24(%rbp)
	movq	_cmap_sym@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	leaq	-24(%rbp), %rdx
	callq	_RB_FIND
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	8(%rcx), %rcx
	cmpq	$-1, %rcx
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rcx, (%rbx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmap_sym,4,2                   ## @cmap_sym
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_charmap                 ; -- Begin function lookup_charmap
	.p2align	2
_lookup_charmap:                        ; @lookup_charmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	str	x0, [sp]
Lloh0:
	adrp	x1, _cmap_sym@GOTPAGE
Lloh1:
	ldr	x1, [x1, _cmap_sym@GOTPAGEOFF]
	ldr	w0, [x1]
	mov	x2, sp
	bl	_RB_FIND
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	cmn	x8, #1
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.3:
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cmap_sym,4,2                   ; @cmap_sym
.subsections_via_symbols
