	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_rdreg8
_ks_rdreg8:                             ## @ks_rdreg8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	_BE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%esi, %ecx
	andb	$3, %cl
	shll	%cl, %edi
	leal	(,%rsi,8), %ebx
	orl	%esi, %edi
	movl	%edi, (%r14)
	movl	8(%r14), %esi
	callq	_iowrite16
	movl	4(%r14), %edi
	callq	_ioread16
	andb	$8, %bl
	movl	%ebx, %ecx
	sarl	%cl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BE0,4,2                        ## @BE0
	.no_dead_strip	_ks_rdreg8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_rdreg8
_ks_rdreg8:                             ; @ks_rdreg8
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	and	w8, w1, #0x3
Lloh0:
	adrp	x9, _BE0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BE0@GOTPAGEOFF]
	ubfiz	w20, w1, #3, #1
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w9, w8
	orr	w0, w8, w1
	str	w0, [x19]
	ldr	w1, [x19, #8]
	bl	_iowrite16
	ldr	w0, [x19, #4]
	bl	_ioread16
	asr	w0, w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BE0,4,2                        ; @BE0
	.no_dead_strip	_ks_rdreg8
.subsections_via_symbols
