	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printstatus                    ## -- Begin function printstatus
	.p2align	4, 0x90
_printstatus:                           ## @printstatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movzbl	(%rax), %edx
	movzbl	4(%rax), %ecx
	movzbl	8(%rax), %r8d
	movzbl	12(%rax), %r9d
	movzbl	16(%rax), %r10d
	movzbl	20(%rax), %r11d
	movzbl	24(%rax), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_fprintf
	addq	$32, %rsp
LBB0_2:
	movq	(%rbx), %rax
	movq	_NE7_ST0_IC_RC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	je	LBB0_3
## %bb.4:
	movq	_NE7_ST0_IC_AT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-128(%rbp), %rdi
	callq	_strcpy
	movq	(%rbx), %rcx
	movl	4(%rcx), %eax
	movq	_NE7_ST1_EN@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
LBB0_20:
	leaq	-128(%rbp), %rdi
	callq	_strcpy
	jmp	LBB0_21
LBB0_3:
	movabsq	$32780218601924980, %rax        ## imm = 0x74756F656D6974
	movq	%rax, -128(%rbp)
	jmp	LBB0_21
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-128(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdi
	callq	_fputs
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	addq	$120, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_NE7_ST1_DE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.9:
	movq	_NE7_ST2_DD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rcx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_12:
	movq	_NE7_ST1_MA@GOTPCREL(%rip), %rdx
	movl	8(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_16
## %bb.13:
	movq	_NE7_ST2_MD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	movq	_NE7_ST2_WC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	movq	_NE7_ST1_ND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.19:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nFDC status ST0=%#x ST1=%#x ST2=%#x C=%u H=%u R=%u N=%u:\n"

	.comm	_NE7_ST0_IC_RC,4,2              ## @NE7_ST0_IC_RC
	.comm	_NE7_ST0_IC_AT,4,2              ## @NE7_ST0_IC_AT
L_.str.2:                               ## @.str.2
	.asciz	"unexcpted interrupt code %#x"

L_.str.3:                               ## @.str.3
	.asciz	"unexpected error code in ST1/ST2"

	.comm	_NE7_ST1_EN,4,2                 ## @NE7_ST1_EN
L_.str.4:                               ## @.str.4
	.asciz	"end of cylinder (wrong format)"

	.comm	_NE7_ST1_DE,4,2                 ## @NE7_ST1_DE
	.comm	_NE7_ST2_DD,4,2                 ## @NE7_ST2_DD
L_.str.5:                               ## @.str.5
	.asciz	"CRC error in data field"

L_.str.6:                               ## @.str.6
	.asciz	"CRC error in ID field"

	.comm	_NE7_ST1_MA,4,2                 ## @NE7_ST1_MA
	.comm	_NE7_ST2_MD,4,2                 ## @NE7_ST2_MD
L_.str.7:                               ## @.str.7
	.asciz	"no address mark in data field"

L_.str.8:                               ## @.str.8
	.asciz	"no address mark in ID field"

	.comm	_NE7_ST2_WC,4,2                 ## @NE7_ST2_WC
L_.str.9:                               ## @.str.9
	.asciz	"wrong cylinder (format mismatch)"

	.comm	_NE7_ST1_ND,4,2                 ## @NE7_ST1_ND
L_.str.10:                              ## @.str.10
	.asciz	"no data (sector not found)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printstatus                    ; -- Begin function printstatus
	.p2align	2
_printstatus:                           ; @printstatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _stderr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldrb	w2, [x8]
	ldrb	w3, [x8, #4]
	ldrb	w4, [x8, #8]
	ldrb	w5, [x8, #12]
	ldrb	w6, [x8, #16]
	ldrb	w7, [x8, #20]
	ldrb	w8, [x8, #24]
	str	w8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _NE7_ST0_IC_RC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NE7_ST0_IC_RC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ands	w8, w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh10:
	adrp	x9, _NE7_ST0_IC_AT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NE7_ST0_IC_AT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #16
	bl	_strcpy
	ldr	x9, [x19]
	ldr	w8, [x9, #4]
Lloh15:
	adrp	x10, _NE7_ST1_EN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NE7_ST1_EN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_11
; %bb.5:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	add	x0, sp, #16
	bl	_strcpy
	b	LBB0_9
LBB0_7:
	mov	x8, #26996
	movk	x8, #25965, lsl #16
	movk	x8, #30063, lsl #32
	movk	x8, #116, lsl #48
	str	x8, [sp, #16]
	b	LBB0_9
LBB0_8:
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_sprintf
LBB0_9:
	ldr	w1, [x20]
	add	x0, sp, #16
	bl	_fputs
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
Lloh25:
	adrp	x10, _NE7_ST1_DE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _NE7_ST1_DE@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	w8, [x9, #8]
Lloh28:
	adrp	x9, _NE7_ST2_DD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NE7_ST2_DD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_14:
Lloh33:
	adrp	x10, _NE7_ST1_MA@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NE7_ST1_MA@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	ldr	w9, [x9, #8]
	tst	w10, w8
	b.eq	LBB0_18
; %bb.15:
Lloh36:
	adrp	x8, _NE7_ST2_MD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NE7_ST2_MD@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_20
; %bb.16:
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_17:
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_18:
Lloh43:
	adrp	x10, _NE7_ST2_WC@GOTPAGE
Lloh44:
	ldr	x10, [x10, _NE7_ST2_WC@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_21
; %bb.19:
Lloh46:
	adrp	x1, l_.str.9@PAGE
Lloh47:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_6
LBB0_20:
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_6
LBB0_21:
Lloh50:
	adrp	x9, _NE7_ST1_ND@GOTPAGE
Lloh51:
	ldr	x9, [x9, _NE7_ST1_ND@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.22:
Lloh53:
	adrp	x1, l_.str.10@PAGE
Lloh54:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_6
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nFDC status ST0=%#x ST1=%#x ST2=%#x C=%u H=%u R=%u N=%u:\n"

	.comm	_NE7_ST0_IC_RC,4,2              ; @NE7_ST0_IC_RC
	.comm	_NE7_ST0_IC_AT,4,2              ; @NE7_ST0_IC_AT
l_.str.2:                               ; @.str.2
	.asciz	"unexcpted interrupt code %#x"

l_.str.3:                               ; @.str.3
	.asciz	"unexpected error code in ST1/ST2"

	.comm	_NE7_ST1_EN,4,2                 ; @NE7_ST1_EN
l_.str.4:                               ; @.str.4
	.asciz	"end of cylinder (wrong format)"

	.comm	_NE7_ST1_DE,4,2                 ; @NE7_ST1_DE
	.comm	_NE7_ST2_DD,4,2                 ; @NE7_ST2_DD
l_.str.5:                               ; @.str.5
	.asciz	"CRC error in data field"

l_.str.6:                               ; @.str.6
	.asciz	"CRC error in ID field"

	.comm	_NE7_ST1_MA,4,2                 ; @NE7_ST1_MA
	.comm	_NE7_ST2_MD,4,2                 ; @NE7_ST2_MD
l_.str.7:                               ; @.str.7
	.asciz	"no address mark in data field"

l_.str.8:                               ; @.str.8
	.asciz	"no address mark in ID field"

	.comm	_NE7_ST2_WC,4,2                 ; @NE7_ST2_WC
l_.str.9:                               ; @.str.9
	.asciz	"wrong cylinder (format mismatch)"

	.comm	_NE7_ST1_ND,4,2                 ; @NE7_ST1_ND
l_.str.10:                              ; @.str.10
	.asciz	"no data (sector not found)"

.subsections_via_symbols
