	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unexpected_hd_interrupt
_unexpected_hd_interrupt:               ## @unexpected_hd_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	movq	_BUSY_STAT@GOTPCREL(%rip), %rcx
	movq	_DRQ_STAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ECC_STAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ERR_STAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbp
	jmp	_dump_status                    ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HD_STATUS,4,2                  ## @HD_STATUS
	.comm	_BUSY_STAT,4,2                  ## @BUSY_STAT
	.comm	_DRQ_STAT,4,2                   ## @DRQ_STAT
	.comm	_ECC_STAT,4,2                   ## @ECC_STAT
	.comm	_ERR_STAT,4,2                   ## @ERR_STAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected interrupt"

	.comm	_SET_TIMER,4,2                  ## @SET_TIMER
	.no_dead_strip	_unexpected_hd_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unexpected_hd_interrupt
_unexpected_hd_interrupt:               ; @unexpected_hd_interrupt
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _HD_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HD_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_inb_p
Lloh3:
	adrp	x8, _BUSY_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUSY_STAT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DRQ_STAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRQ_STAT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ECC_STAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ECC_STAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _ERR_STAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ERR_STAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_dump_status
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HD_STATUS,4,2                  ; @HD_STATUS
	.comm	_BUSY_STAT,4,2                  ; @BUSY_STAT
	.comm	_DRQ_STAT,4,2                   ; @DRQ_STAT
	.comm	_ECC_STAT,4,2                   ; @ECC_STAT
	.comm	_ERR_STAT,4,2                   ; @ERR_STAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected interrupt"

	.comm	_SET_TIMER,4,2                  ; @SET_TIMER
	.no_dead_strip	_unexpected_hd_interrupt
.subsections_via_symbols
