	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_intr
_read_intr:                             ## @read_intr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$100001, %ebx                   ## imm = 0x186A1
	movq	_HD_STATUS@GOTPCREL(%rip), %r14
	movq	_BUSY_STAT@GOTPCREL(%rip), %r12
	movq	_DRQ_STAT@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	cmpl	$1, %ebx
	jbe	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_inb_p
	movq	%rax, %r15
	testl	%r15d, (%r12)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	_OK_STATUS
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, (%r13)
	je	LBB0_4
## %bb.6:
	movq	_hd_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HD_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_insw
	xorl	%edi, %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_hd_end_request
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	leaq	_read_intr(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SET_HANDLER                    ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_dump_status
	xorl	%eax, %eax
	callq	_bad_rw_intr
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hd_request                     ## TAILCALL
LBB0_7:
	movl	(%r14), %edi
	callq	_inb_p
	jmp	LBB0_8
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read_intr"

	.comm	_hd_req,8,3                     ## @hd_req
	.comm	_HD_DATA,4,2                    ## @HD_DATA
	.comm	_last_req,4,2                   ## @last_req
	.no_dead_strip	_read_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_intr
_read_intr:                             ; @read_intr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w21, #34465
	movk	w21, #1, lsl #16
Lloh0:
	adrp	x20, _HD_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HD_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x22, _BUSY_STAT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BUSY_STAT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _DRQ_STAT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DRQ_STAT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w21, w21, #1
	cmp	w21, #1
	b.ls	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_inb_p
	mov	x19, x0
	ldr	w8, [x22]
	tst	w8, w19
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_OK_STATUS
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_1
; %bb.5:
Lloh6:
	adrp	x8, _hd_req@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hd_req@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _HD_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HD_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	x1, [x8]
	mov	w2, #256
	bl	_insw
	mov	w0, #0
	mov	w1, #512
	bl	_hd_end_request
	cbz	x0, LBB0_9
; %bb.6:
Lloh12:
	adrp	x0, _read_intr@PAGE
Lloh13:
	add	x0, x0, _read_intr@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SET_HANDLER
LBB0_7:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dump_status
	bl	_bad_rw_intr
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hd_request
LBB0_9:
	ldr	w0, [x20]
	bl	_inb_p
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read_intr"

	.comm	_hd_req,8,3                     ; @hd_req
	.comm	_HD_DATA,4,2                    ; @HD_DATA
	.comm	_last_req,4,2                   ; @last_req
	.no_dead_strip	_read_intr
.subsections_via_symbols
