	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_byte_mode2
_read_byte_mode2:                       ## @read_byte_mode2
	.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	_Ctrl_LNibRead@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%edi, %rbx
	movq	_PAR_CONTROL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outb
	movq	_PAR_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inbyte
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inbyte
	movl	%eax, %r14d
	shrl	$3, %r14d
	andl	$15, %r14d
	movq	_Ctrl_HNibRead@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inbyte
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_inbyte
                                        ## kill: def $eax killed $eax def $rax
	andl	$120, %eax
	leal	(%r14,%rax,2), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Ctrl_LNibRead,4,2              ## @Ctrl_LNibRead
	.comm	_PAR_CONTROL,8,3                ## @PAR_CONTROL
	.comm	_PAR_STATUS,8,3                 ## @PAR_STATUS
	.comm	_Ctrl_HNibRead,4,2              ## @Ctrl_HNibRead
	.no_dead_strip	_read_byte_mode2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_byte_mode2
_read_byte_mode2:                       ; @read_byte_mode2
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _Ctrl_LNibRead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Ctrl_LNibRead@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sxtw	x20, w0
Lloh3:
	adrp	x21, _PAR_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PAR_CONTROL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x20
	mov	x0, x8
	bl	_outb
Lloh5:
	adrp	x22, _PAR_STATUS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PAR_STATUS@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_inbyte
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_inbyte
	mov	x19, x0
Lloh7:
	adrp	x8, _Ctrl_HNibRead@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Ctrl_HNibRead@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x21]
	add	x1, x8, x20
	bl	_outb
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_inbyte
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_inbyte
	lsl	w8, w0, #1
	and	w0, w8, #0xf0
	bfxil	w0, w19, #3, #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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Ctrl_LNibRead,4,2              ; @Ctrl_LNibRead
	.comm	_PAR_CONTROL,8,3                ; @PAR_CONTROL
	.comm	_PAR_STATUS,8,3                 ; @PAR_STATUS
	.comm	_Ctrl_HNibRead,4,2              ; @Ctrl_HNibRead
	.no_dead_strip	_read_byte_mode2
.subsections_via_symbols
