	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exca_read_word
_exca_read_word:                        ## @exca_read_word
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CARD_SLOTB@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_CARD_SLOTB_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	leaq	(%rax,%rsi), %rdi
	leaq	(%rax,%rsi), %r14
	incq	%r14
	movq	_CARD_CONTROLLER_INDEX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_outb
	movq	_CARD_CONTROLLER_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_inb
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_outb
	movl	(%r12), %edi
	callq	_inb
	shll	$8, %eax
	orl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_SLOTB,4,2                 ## @CARD_SLOTB
	.comm	_CARD_SLOTB_OFFSET,8,3          ## @CARD_SLOTB_OFFSET
	.comm	_CARD_CONTROLLER_INDEX,4,2      ## @CARD_CONTROLLER_INDEX
	.comm	_CARD_CONTROLLER_DATA,4,2       ## @CARD_CONTROLLER_DATA
	.no_dead_strip	_exca_read_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exca_read_word
_exca_read_word:                        ; @exca_read_word
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _CARD_SLOTB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARD_SLOTB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CARD_SLOTB_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CARD_SLOTB_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, w0
	csel	x8, x9, xzr, eq
	add	x0, x8, x1
	add	x19, x0, #1
Lloh6:
	adrp	x21, _CARD_CONTROLLER_INDEX@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CARD_CONTROLLER_INDEX@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_outb
Lloh8:
	adrp	x22, _CARD_CONTROLLER_DATA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CARD_CONTROLLER_DATA@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_inb
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_outb
	ldr	w0, [x22]
	bl	_inb
	orr	w0, w20, w0, lsl #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_SLOTB,4,2                 ; @CARD_SLOTB
	.comm	_CARD_SLOTB_OFFSET,8,3          ; @CARD_SLOTB_OFFSET
	.comm	_CARD_CONTROLLER_INDEX,4,2      ; @CARD_CONTROLLER_INDEX
	.comm	_CARD_CONTROLLER_DATA,4,2       ; @CARD_CONTROLLER_DATA
	.no_dead_strip	_exca_read_word
.subsections_via_symbols
