	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcm_pass
_dcm_pass:                              ## @dcm_pass
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movq	%r14, %rdi
	callq	_fgetw
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	movq	_TRUE@GOTPCREL(%rip), %rax
	cmpl	$69, %ebx
	je	LBB0_34
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_7 Depth 3
	movl	(%r13), %esi
	cmpl	%esi, %r15d
	jl	LBB0_31
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_pad_till_sector
	testl	%eax, %eax
	je	LBB0_33
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_7 Depth 3
	movl	%ebx, -1076(%rbp)               ## 4-byte Spill
	movl	%ebx, %eax
	andl	$127, %eax
	addl	$-65, %eax
	cmpl	$6, %eax
	ja	LBB0_32
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_33
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movslq	%eax, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_33
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	movl	%eax, -1072(%rbp,%rbx,4)
	addq	$-1, %rbx
	jb	LBB0_7
	jmp	LBB0_26
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	-580(%rbp), %rdi
	movl	$5, %esi
	movq	%r14, %rdx
	callq	_fload
	testl	%eax, %eax
	je	LBB0_33
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-580(%rbp), %esi
	leaq	-1072(%rbp), %rdi
	movl	$123, %edx
	callq	_memset
	jmp	LBB0_26
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %r15d
	cmpl	%r12d, %eax
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=3
	testl	%r15d, %r15d
	movl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_33
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=3
	movl	%r15d, %esi
	subl	%r12d, %esi
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=3
	movslq	%r12d, %rax
	leaq	-1072(,%rax,4), %rdi
	addq	%rbp, %rdi
	movq	%r14, %rdx
	callq	_fload
	testl	%eax, %eax
	je	LBB0_33
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=3
	cmpl	4(%r13), %r15d
	jge	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %r12d
	cmpl	%r15d, %eax
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=3
	testl	%r12d, %r12d
	movl	$256, %r12d                     ## imm = 0x100
	jne	LBB0_33
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=3
	movq	%r14, %rdi
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_33
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=3
	movslq	%r15d, %rcx
	leaq	-1072(,%rcx,4), %rdi
	addq	%rbp, %rdi
	movl	%r12d, %edx
	subl	%r15d, %edx
	movl	%eax, %esi
	callq	_memset
	cmpl	4(%r13), %r12d
	jl	LBB0_12
	jmp	LBB0_26
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_33
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rcx
	movl	4(%r13), %esi
	subl	%eax, %esi
	jle	LBB0_33
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=2
	cltq
	leaq	-1072(,%rax,4), %rdi
	addq	%rbp, %rdi
	jmp	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	4(%r13), %esi
	leaq	-1072(%rbp), %rdi
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdx
	callq	_fload
	testl	%eax, %eax
	je	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	leaq	-1072(%rbp), %rsi
	callq	_write_atr_sector
	testl	%eax, %eax
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=2
	testb	$-128, -1076(%rbp)              ## 1-byte Folded Reload
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	cmpl	$69, %eax
	jne	LBB0_3
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_fgetw
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	cmpl	$69, %eax
	jne	LBB0_1
LBB0_30:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_31:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_Log_print
	jmp	LBB0_33
LBB0_32:
	leaq	L_.str.1(%rip), %rdi
	movl	-1076(%rbp), %esi               ## 4-byte Reload
	xorl	%eax, %eax
	callq	_Log_print
LBB0_33:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_36
## %bb.35:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_21
	.long	L0_0_set_32
	.long	L0_0_set_26
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: current sector is %d, next sector group at %d"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_EOF,4,2                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized sector coding type 0x%02X"

	.no_dead_strip	_dcm_pass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcm_pass
_dcm_pass:                              ; @dcm_pass
	.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
	sub	sp, sp, #1056
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x27, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
	mov	x0, x20
	bl	_fgetw
	mov	x23, x0
	mov	x0, x20
	bl	_fgetc
	cmp	w0, #69
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x25, _TRUE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	b	LBB0_38
LBB0_2:
	mov	x22, x0
	add	x21, x27, #492
Lloh5:
	adrp	x28, _EOF@GOTPAGE
Lloh6:
	ldr	x28, [x28, _EOF@GOTPAGEOFF]
Lloh7:
	adrp	x26, lJTI0_0@PAGE
Lloh8:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh9:
	adrp	x25, _TRUE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w1, [x19]
	cmp	w23, w1
	b.lt	LBB0_34
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_pad_till_sector
	cbz	w0, LBB0_37
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
	and	w8, w22, #0x7f
	sub	w8, w8, #65
	cmp	w8, #6
	b.hi	LBB0_35
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	adr	x9, LBB0_7
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	bl	_fgetc
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_37
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	sxtw	x23, w0
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	_fgetc
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_37
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	str	w0, [x27, x23, lsl #2]
	sub	x23, x23, #1
	cmn	x23, #1
	b.ne	LBB0_9
	b	LBB0_30
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x21
	mov	w1, #5
	mov	x2, x20
	bl	_fload
	cbz	w0, LBB0_37
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w1, [sp, #508]
	add	x0, sp, #16
	mov	w2, #123
	bl	_memset
	b	LBB0_30
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w23, #0
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	_fgetc
	mov	x24, x0
	cmp	w0, w23
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	cbnz	w24, LBB0_37
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	w24, #256
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=3
	subs	w1, w24, w23
	b.le	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=3
	add	x0, x27, w23, sxtw #2
	mov	x2, x20
	bl	_fload
	cbz	w0, LBB0_37
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=3
	ldr	w8, [x19, #4]
	cmp	w24, w8
	b.ge	LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x20
	bl	_fgetc
	mov	x23, x0
	cmp	w0, w24
	b.ge	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=3
	cbnz	w23, LBB0_37
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	w23, #256
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x20
	bl	_fgetc
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_37
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x1, x0
	add	x0, x27, w24, sxtw #2
	sub	w2, w23, w24
	bl	_memset
	ldr	w8, [x19, #4]
	cmp	w23, w8
	b.lt	LBB0_14
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	bl	_fgetc
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_37
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x19, #4]
	subs	w1, w8, w0
	b.le	LBB0_37
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x0, x27, w0, sxtw #2
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w1, [x19, #4]
	add	x0, sp, #16
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x2, x20
	bl	_fload
	cbz	w0, LBB0_37
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x1, sp, #16
	mov	x0, x19
	bl	_write_atr_sector
	cbz	w0, LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	tbz	w22, #7, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_5 Depth=2
	bl	_fgetc
	mov	x22, x0
	cmp	w0, #69
	b.ne	LBB0_5
	b	LBB0_38
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_fgetw
	mov	x23, x0
	mov	x0, x20
	bl	_fgetc
	mov	x22, x0
	cmp	w0, #69
	b.ne	LBB0_3
	b	LBB0_38
LBB0_34:
	str	x23, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_36
LBB0_35:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
LBB0_36:
	bl	_Log_print
LBB0_37:
Lloh15:
	adrp	x25, _FALSE@GOTPAGE
Lloh16:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
LBB0_38:
	ldr	w0, [x25]
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.39:
	add	sp, sp, #1056
	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_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_25-LBB0_7)>>2
	.byte	(LBB0_35-LBB0_7)>>2
	.byte	(LBB0_30-LBB0_7)>>2
	.byte	(LBB0_28-LBB0_7)>>2
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: current sector is %d, next sector group at %d"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_EOF,4,2                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized sector coding type 0x%02X"

	.no_dead_strip	_dcm_pass
.subsections_via_symbols
