	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_rom
_read_rom:                              ## @read_rom
	.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	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	8(%rbx), %edi
	movq	_TCODE_READ_QUADLET_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	movq	_CSR_CONFIG_ROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leal	(%rcx,%r14,4), %r9d
	movl	%r15d, %ecx
	pushq	$4
	pushq	%r12
	callq	_fw_run_transaction
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_be32_to_cpus
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCODE_READ_QUADLET_REQUEST,4,2 ## @TCODE_READ_QUADLET_REQUEST
	.comm	_CSR_REGISTER_BASE,4,2          ## @CSR_REGISTER_BASE
	.comm	_CSR_CONFIG_ROM,4,2             ## @CSR_CONFIG_ROM
	.no_dead_strip	_read_rom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_rom
_read_rom:                              ; @read_rom
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_smp_rmb
Lloh0:
	adrp	x8, _TCODE_READ_QUADLET_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCODE_READ_QUADLET_REQUEST@GOTPAGEOFF]
	ldp	w2, w0, [x22, #4]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x22]
Lloh3:
	adrp	x8, _CSR_REGISTER_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CSR_CONFIG_ROM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSR_CONFIG_ROM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	add	w5, w8, w20, lsl #2
	mov	x3, x21
	mov	x6, x19
	mov	w7, #4
	bl	_fw_run_transaction
	mov	x20, x0
	mov	x0, x19
	bl	_be32_to_cpus
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TCODE_READ_QUADLET_REQUEST,4,2 ; @TCODE_READ_QUADLET_REQUEST
	.comm	_CSR_REGISTER_BASE,4,2          ; @CSR_REGISTER_BASE
	.comm	_CSR_CONFIG_ROM,4,2             ; @CSR_CONFIG_ROM
	.no_dead_strip	_read_rom
.subsections_via_symbols
