	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_config_rom
_read_config_rom:                       ## @read_config_rom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CSR1212_REGISTER_SPACE_BASE@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	movl	(%rdi), %edi
	movq	%rcx, %rsi
	movq	%r8, %rcx
	callq	_csr1212_read
	movq	_CSR1212_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_RCODE_ADDRESS_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_REGISTER_SPACE_BASE,8,3 ## @CSR1212_REGISTER_SPACE_BASE
	.comm	_CSR1212_SUCCESS,8,3            ## @CSR1212_SUCCESS
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.comm	_RCODE_ADDRESS_ERROR,4,2        ## @RCODE_ADDRESS_ERROR
	.no_dead_strip	_read_config_rom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_config_rom
_read_config_rom:                       ; @read_config_rom
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _CSR1212_REGISTER_SPACE_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR1212_REGISTER_SPACE_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x3, x8
	ldr	w0, [x0]
	mov	x3, x4
	bl	_csr1212_read
Lloh3:
	adrp	x8, _CSR1212_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR1212_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _RCODE_COMPLETE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RCODE_COMPLETE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _RCODE_ADDRESS_ERROR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RCODE_ADDRESS_ERROR@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 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	_CSR1212_REGISTER_SPACE_BASE,8,3 ; @CSR1212_REGISTER_SPACE_BASE
	.comm	_CSR1212_SUCCESS,8,3            ; @CSR1212_SUCCESS
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.comm	_RCODE_ADDRESS_ERROR,4,2        ; @RCODE_ADDRESS_ERROR
	.no_dead_strip	_read_config_rom
.subsections_via_symbols
