	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_ag_char_map_spanners
_calc_ag_char_map_spanners:             ## @calc_ag_char_map_spanners
	.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
	movq	_ag_char_map_masks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %r14d
	movl	(%rax,%r14,4), %ebx
	movl	$256, %edi                      ## imm = 0x100
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movl	$2, %eax
	movq	_ag_char_map_table@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rax
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	testl	%ebx, -4(%rdx,%rax,4)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, -1(%r15,%rax)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$128, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rdx
	testl	%ebx, (%rdx,%rax,4)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, (%r15,%rax)
	jmp	LBB0_7
LBB0_8:
	movq	_ag_char_map_spanners@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, (%rcx,%r14,8)
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_fputs
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ag_char_map_masks,8,3          ## @ag_char_map_masks
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory for char-mapper span map\n"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_ag_char_map_table,8,3          ## @ag_char_map_table
	.comm	_ag_char_map_spanners,8,3       ## @ag_char_map_spanners
	.comm	_ag_char_map_mutex,4,2          ## @ag_char_map_mutex
	.no_dead_strip	_calc_ag_char_map_spanners
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_ag_char_map_spanners
_calc_ag_char_map_spanners:             ; @calc_ag_char_map_spanners
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _ag_char_map_masks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ag_char_map_masks@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w21, [x8, w0, uxtw #2]
	mov	w0, #256
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w20, w20
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	mov	w8, #1
Lloh3:
	adrp	x9, _ag_char_map_table@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ag_char_map_table@GOTPAGEOFF]
	mov	w10, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, #128
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	w11, [x11, x10, lsl #2]
	tst	w11, w21
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w8, [x19, x10]
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _ag_char_map_spanners@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ag_char_map_spanners@GOTPAGEOFF]
	ldr	x9, [x8]
	lsl	x10, x20, #3
	str	x19, [x9, x10]
	ldr	x8, [x8]
	ldr	x0, [x8, x10]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_fputs
Lloh12:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ag_char_map_masks,8,3          ; @ag_char_map_masks
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory for char-mapper span map\n"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_ag_char_map_table,8,3          ; @ag_char_map_table
	.comm	_ag_char_map_spanners,8,3       ; @ag_char_map_spanners
	.comm	_ag_char_map_mutex,4,2          ; @ag_char_map_mutex
	.no_dead_strip	_calc_ag_char_map_spanners
.subsections_via_symbols
