	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, -20(%rbp)
	movl	$1, -16(%rbp)
	leaq	-16(%rbp), %rsi
	movl	$1, %edx
	callq	_b1dma_tolink
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_b1dma_tolink
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_b1dma_fromlink
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	$255, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	-12(%rbp), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w8, #1
	stp	w8, w1, [sp, #8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_b1dma_tolink
	cbnz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_b1dma_tolink
	cbnz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #4
	bl	_b1dma_fromlink
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #255
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w0, [sp, #4]
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ReadReg
.subsections_via_symbols
