	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tomoyo_normalize_line
_tomoyo_normalize_line:                 ## @tomoyo_normalize_line
	.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	%rdi, %r14
	leaq	-1(%rdi), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_tomoyo_is_invalid
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_11
## %bb.3:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	testb	$1, %cl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$32, (%r14)
	incq	%r14
	movb	(%rbx), %al
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%al, %edi
	callq	_tomoyo_is_valid
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%rbx), %r15
	movzbl	(%rbx), %eax
	movb	%al, (%r14)
	incq	%r14
	movzbl	1(%rbx), %edi
	callq	_tomoyo_is_valid
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%rbx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_tomoyo_is_invalid
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	(%rbx), %al
	movb	$1, %cl
	testb	%al, %al
	jne	LBB0_5
LBB0_11:
	movb	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tomoyo_normalize_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tomoyo_normalize_line
_tomoyo_normalize_line:                 ; @tomoyo_normalize_line
	.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	x19, x0
	sub	x20, x0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x20, #1]!
	bl	_tomoyo_is_invalid
	cbnz	x0, LBB0_1
; %bb.2:
	ldrb	w8, [x20]
	cbz	w8, LBB0_11
; %bb.3:
	mov	w9, #0
	mov	w21, #32
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	tbz	w9, #0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w21, [x19], #1
	ldrb	w8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w0, w8, #0xff
	bl	_tomoyo_is_valid
	cbz	x0, LBB0_8
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20]
	strb	w8, [x19], #1
	ldrb	w0, [x20, #1]!
	bl	_tomoyo_is_valid
	cbnz	x0, LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x20, x20, #1
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x20, #1]!
	bl	_tomoyo_is_invalid
	cbnz	x0, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20]
	mov	w9, #1
	cbnz	w8, LBB0_4
LBB0_11:
	strb	wzr, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tomoyo_normalize_line
.subsections_via_symbols
