	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd9660_level1_convert_filename
_cd9660_level1_convert_filename:        ## @cd9660_level1_convert_filename
	.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
	movq	%rdx, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_25
## %bb.1:
	movq	%rsi, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$46, %al
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$95, (%r13)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$44, %al
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$4, %eax
	je	LBB0_23
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, %r14d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_26
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %edi
	callq	_islower
	movzbl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_toupper
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_isupper
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_22
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, (%r13)
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$46, (%r13)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r15d
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movzbl	1(%rbx), %eax
	testb	%al, %al
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpl	$3, %r12d
	jl	LBB0_2
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$95, %al
	jmp	LBB0_15
LBB0_23:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.24:
	testl	%r15d, %r15d
	movl	$1, %r15d
	jne	LBB0_29
	jmp	LBB0_27
LBB0_25:
	xorl	%r14d, %r14d
	movl	$0, %r12d
	movl	$0, %r15d
	testl	%ecx, %ecx
	jne	LBB0_27
	jmp	LBB0_30
LBB0_26:
	movl	$8, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
LBB0_27:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_29
## %bb.28:
	movb	$46, (%r13)
	incq	%r13
LBB0_29:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_sprintf
LBB0_30:
	addl	%r12d, %r14d
	addl	%r15d, %r14d
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	xorl	%r15d, %r15d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	";%i"

	.no_dead_strip	_cd9660_level1_convert_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd9660_level1_convert_filename
_cd9660_level1_convert_filename:        ; @cd9660_level1_convert_filename
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldrb	w8, [x1]
	cbz	w8, LBB0_24
; %bb.1:
	mov	x22, x1
	mov	w25, #0
	mov	w23, #0
	mov	w24, #0
	mov	w26, #46
	mov	w27, #95
	mov	w28, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #46
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w25, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w27, [x19]
	add	w23, w23, #1
	b	LBB0_17
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #44
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_strlen
	cmp	w0, #4
	b.eq	LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, #8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w25, LBB0_25
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w0, [x22]
	bl	_islower
	mov	x8, x0
	ldrb	w0, [x22]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_toupper
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_isupper
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w0, [x22]
	bl	_isdigit
	cbz	x0, LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w0, [x22]
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w0, [x19]
	cmp	w25, #0
	csel	w25, wzr, w28, eq
	cinc	w24, w24, eq
	cinc	w23, w23, ne
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w26, [x19]
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	ldrb	w8, [x22, #1]!
	cbz	w8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #3
	b.lt	LBB0_2
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #95
	b	LBB0_15
LBB0_21:
	cbz	w21, LBB0_30
; %bb.22:
	cbz	w25, LBB0_26
; %bb.23:
	mov	w25, #1
	b	LBB0_29
LBB0_24:
	mov	w24, #0
	mov	w23, #0
	mov	w25, #0
	cbnz	w21, LBB0_26
	b	LBB0_30
LBB0_25:
	mov	w24, #8
	cbz	w21, LBB0_31
LBB0_26:
	ldr	w8, [x20]
	cbz	w8, LBB0_28
; %bb.27:
	mov	w25, #0
	b	LBB0_29
LBB0_28:
	mov	w25, #0
	mov	w8, #46
	strb	w8, [x19], #1
LBB0_29:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_sprintf
LBB0_30:
	add	w8, w23, w24
	add	w0, w8, w25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	w25, #0
	b	LBB0_30
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	";%i"

	.no_dead_strip	_cd9660_level1_convert_filename
.subsections_via_symbols
