	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readreg
_readreg:                               ## @readreg
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r15d
	leal	2(%r15), %r14d
	movl	$28, %edi
	movl	%r14d, %esi
	callq	_outb_p
	movl	$20, %edi
	movl	%r14d, %esi
	callq	_outb_p
	addl	%r12d, %ebx
	orl	$128, %ebx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_outb_p
	movl	$22, %edi
	movl	%r14d, %esi
	callq	_outb_p
	movl	$23, %edi
	movl	%r14d, %esi
	callq	_outb_p
	incl	%r15d
	movl	%r15d, %edi
	callq	_inb_p
	movl	%eax, %r12d
	shrl	$3, %r12d
	andl	$23, %r12d
	movl	$22, %edi
	movl	%r14d, %esi
	callq	_outb_p
	movl	%r15d, %edi
	callq	_inb_p
	movl	%eax, %ebx
	shrl	$3, %ebx
	andl	$23, %ebx
	movl	$20, %edi
	movl	%r14d, %esi
	callq	_outb_p
	movl	$28, %edi
	movl	%r14d, %esi
	callq	_outb_p
	movq	_nibtab@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx,%rbx,4), %eax
	shll	$4, %eax
	orl	(%rcx,%r12,4), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nibtab,8,3                     ## @nibtab
	.no_dead_strip	_readreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readreg
_readreg:                               ; @readreg
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	w22, w0, #2
	mov	w0, #28
	mov	x1, x22
	bl	_outb_p
	mov	w0, #20
	mov	x1, x22
	bl	_outb_p
	add	w8, w19, w20
	orr	w0, w8, #0x80
	mov	x1, x21
	bl	_outb_p
	mov	w0, #22
	mov	x1, x22
	bl	_outb_p
	mov	w20, #23
	mov	w0, #23
	mov	x1, x22
	bl	_outb_p
	add	w19, w21, #1
	mov	x0, x19
	bl	_inb_p
	and	w21, w20, w0, lsr #3
	mov	w0, #22
	mov	x1, x22
	bl	_outb_p
	mov	x0, x19
	bl	_inb_p
	and	w19, w20, w0, lsr #3
	mov	w0, #20
	mov	x1, x22
	bl	_outb_p
	mov	w0, #28
	mov	x1, x22
	bl	_outb_p
Lloh0:
	adrp	x8, _nibtab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nibtab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8, w21, uxtw #2]
	ldr	w8, [x8, w19, uxtw #2]
	orr	w0, w9, w8, lsl #4
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nibtab,8,3                     ; @nibtab
	.no_dead_strip	_readreg
.subsections_via_symbols
