	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repair_acsc                    ## -- Begin function repair_acsc
	.p2align	4, 0x90
_repair_acsc:                           ## @repair_acsc
	.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	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_acs_chars@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %rax
	movb	(%rax), %cl
	testb	%cl, %cl
	je	LBB0_6
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %edi
	callq	_UChar
	cmpl	%eax, %r12d
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rcx
	leaq	1(%rbx), %rdx
	cmpb	$0, 1(%rcx,%rbx)
	cmoveq	%rbx, %rdx
	movzbl	1(%rcx,%rdx), %ecx
	incq	%rdx
	movl	%eax, %r12d
	movq	%rdx, %rbx
	testb	%cl, %cl
	jne	LBB0_3
LBB0_6:
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_17
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_7:
	leaq	-304(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	(%r14), %rax
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_10
## %bb.8:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_UChar
	movl	%eax, %r15d
	movq	(%r14), %rax
	movzbl	-1(%rax,%rbx), %ecx
	testb	%cl, %cl
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, %edx
	movb	%cl, -304(%rbp,%rdx)
	movzbl	(%rax,%rbx), %eax
	addq	$2, %rbx
	testb	%al, %al
	jne	LBB0_9
## %bb.20:
	xorl	%r15d, %r15d
LBB0_10:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rcx
	cmpq	$256, %rcx                      ## imm = 0x100
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -304(%rbp,%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rdx
	movb	%cl, (%rdx,%rax)
	movzbl	-304(%rbp,%rcx), %edx
	movq	(%r14), %rsi
	movb	%dl, 1(%rax,%rsi)
	addq	$2, %rax
	jmp	LBB0_13
LBB0_14:
	testb	%r15b, %r15b
	je	LBB0_16
## %bb.15:
	movq	(%r14), %rcx
	movb	%r15b, (%rcx,%rax)
	incq	%rax
LBB0_16:
	movq	(%r14), %rcx
	movb	$0, (%rcx,%rax)
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.21:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_acs_chars,8,3                  ## @acs_chars
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repair_acsc                    ; -- Begin function repair_acsc
	.p2align	2
_repair_acsc:                           ; @repair_acsc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x19, _acs_chars@GOTPAGE
Lloh4:
	ldr	x19, [x19, _acs_chars@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_VALID_STRING
	cbz	x0, LBB0_19
; %bb.1:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	w22, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_UChar
	cmp	w22, w0
	b.hs	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x9, x21, #1
	ldrb	w9, [x8, x9]
	cmp	w9, #0
	cinc	x9, x21, ne
	add	x21, x9, #1
	ldrb	w8, [x8, x21]
	mov	x22, x0
	cbnz	w8, LBB0_3
LBB0_5:
	cbnz	w20, LBB0_7
	b	LBB0_19
LBB0_6:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	cbz	w20, LBB0_19
LBB0_7:
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cbz	w8, LBB0_12
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_UChar
	ldr	x8, [x19]
	add	x8, x8, x21
	ldrb	w9, [x8, #1]
	cbz	w9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w9, [x20, w0, uxtw]
	add	x21, x21, #2
	ldrb	w8, [x8, #2]
	cbnz	w8, LBB0_9
	b	LBB0_12
LBB0_11:
	and	w8, w0, #0xff
LBB0_12:
	mov	x9, #0
	mov	x10, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	cmp	x10, #256
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x20, x10]
	cbz	w11, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x19]
	strb	w10, [x11, x9]
	ldr	x11, [x19]
	add	x11, x9, x11
	ldrb	w12, [x20, x10]
	add	x9, x9, #2
	strb	w12, [x11, #1]
	b	LBB0_13
LBB0_16:
	cbz	w8, LBB0_18
; %bb.17:
	ldr	x10, [x19]
	strb	w8, [x10, x9]
	add	x9, x9, #1
LBB0_18:
	ldr	x8, [x19]
	strb	wzr, [x8, x9]
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_acs_chars,8,3                  ; @acs_chars
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
