	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CompFile_DCMtoATR              ## -- Begin function CompFile_DCMtoATR
	.p2align	4, 0x90
_CompFile_DCMtoATR:                     ## @CompFile_DCMtoATR
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_fgetc
	movl	%eax, %r15d
	leal	-251(%r15), %eax
	cmpl	$-3, %eax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_fgetc
	movl	%eax, %r13d
	andl	$31, %eax
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.7:
	movq	%r14, -48(%rbp)
	movl	$1, -64(%rbp)
	movl	%r13d, %eax
	shrl	$5, %eax
	andl	$3, %eax
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_Log_print
	cmpl	$249, %r15d
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	callq	_Log_print
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %eax
	leaq	l_switch.table.CompFile_DCMtoATR(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.CompFile_DCMtoATR.7(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	movl	%ecx, -60(%rbp)
	movl	%eax, -56(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_write_atr_header
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movl	%r13d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_dcm_pass
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	$-128, %r12b
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_fgetc
	cmpl	%r15d, %eax
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_fgetc
	movl	%eax, %r12d
	xorl	%r13d, %eax
	testb	$96, %al
	je	LBB0_11
## %bb.18:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_5
LBB0_19:
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %esi
	decl	%eax
	cmpl	%esi, %eax
	jle	LBB0_20
## %bb.21:
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	callq	_Util_rewind
	leaq	-64(%rbp), %rdi
	callq	_write_atr_header
	jmp	LBB0_22
LBB0_14:
	cmpl	$249, %r15d
	jne	LBB0_6
## %bb.15:
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.16:
	leaq	L_.str.4(%rip), %rdi
	callq	_Log_print
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_5
LBB0_20:
	incl	%esi
	leaq	-64(%rbp), %rdi
	callq	_pad_till_sector
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This is not a DCM image"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Expected pass one first"

L_.str.2:                               ## @.str.2
	.asciz	"It seems that DCMs of a multi-file archive have been combined in wrong order"

L_.str.3:                               ## @.str.3
	.asciz	"Unrecognized density"

	.comm	_EOF,4,2                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"Multi-part archive error."

L_.str.5:                               ## @.str.5
	.asciz	"To process these files, you must first combine the files into a single file."

L_.str.6:                               ## @.str.6
	.asciz	"Density changed inside DCM archive?"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.CompFile_DCMtoATR
l_switch.table.CompFile_DCMtoATR:
	.long	720                             ## 0x2d0
	.long	720                             ## 0x2d0
	.long	1040                            ## 0x410

	.p2align	2                               ## @switch.table.CompFile_DCMtoATR.7
l_switch.table.CompFile_DCMtoATR.7:
	.long	128                             ## 0x80
	.long	256                             ## 0x100
	.long	128                             ## 0x80

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CompFile_DCMtoATR              ; -- Begin function CompFile_DCMtoATR
	.p2align	2
_CompFile_DCMtoATR:                     ; @CompFile_DCMtoATR
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x21, x0
	bl	_fgetc
	sub	w8, w0, #251
	cmn	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	mov	x0, x21
	bl	_fgetc
	and	w8, w0, #0x1f
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x22, x0
	str	x19, [sp, #24]
	str	w8, [sp, #8]
	ubfx	w8, w0, #5, #2
	cmp	w8, #3
	b.ne	LBB0_10
; %bb.4:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_print
	cmp	w20, #249
	b.ne	LBB0_8
; %bb.6:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_Log_print
LBB0_8:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_9:
	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
	add	sp, sp, #96
	ret
LBB0_10:
	lsl	x8, x8, #2
Lloh11:
	adrp	x9, l_switch.table.CompFile_DCMtoATR@PAGE
Lloh12:
	add	x9, x9, l_switch.table.CompFile_DCMtoATR@PAGEOFF
	ldr	w9, [x9, x8]
Lloh13:
	adrp	x10, l_switch.table.CompFile_DCMtoATR.7@PAGE
Lloh14:
	add	x10, x10, l_switch.table.CompFile_DCMtoATR.7@PAGEOFF
	ldr	w8, [x10, x8]
	stp	w9, w8, [sp, #12]
	add	x0, sp, #8
	bl	_write_atr_header
	cbz	w0, LBB0_8
; %bb.11:
	mov	x23, x22
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_dcm_pass
	cbz	w0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	tbnz	w23, #7, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_fgetc
	cmp	w0, w20
	b.ne	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_fgetc
	mov	x23, x0
	eor	w8, w0, w22
	tst	w8, #0x60
	b.eq	LBB0_12
; %bb.16:
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_7
LBB0_17:
	ldp	w8, w9, [sp, #8]
	sub	w8, w8, #1
	cmp	w8, w9
	b.le	LBB0_22
; %bb.18:
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_Util_rewind
	add	x0, sp, #8
	bl	_write_atr_header
	b	LBB0_9
LBB0_19:
	cmp	w20, #249
	b.ne	LBB0_8
; %bb.20:
Lloh17:
	adrp	x8, _EOF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.21:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Log_print
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_22:
	add	w1, w9, #1
	add	x0, sp, #8
	bl	_pad_till_sector
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This is not a DCM image"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Expected pass one first"

l_.str.2:                               ; @.str.2
	.asciz	"It seems that DCMs of a multi-file archive have been combined in wrong order"

l_.str.3:                               ; @.str.3
	.asciz	"Unrecognized density"

	.comm	_EOF,4,2                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"Multi-part archive error."

l_.str.5:                               ; @.str.5
	.asciz	"To process these files, you must first combine the files into a single file."

l_.str.6:                               ; @.str.6
	.asciz	"Density changed inside DCM archive?"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.CompFile_DCMtoATR
l_switch.table.CompFile_DCMtoATR:
	.long	720                             ; 0x2d0
	.long	720                             ; 0x2d0
	.long	1040                            ; 0x410

	.p2align	2                               ; @switch.table.CompFile_DCMtoATR.7
l_switch.table.CompFile_DCMtoATR.7:
	.long	128                             ; 0x80
	.long	256                             ; 0x100
	.long	128                             ; 0x80

.subsections_via_symbols
