	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocp_reg_read
_ocp_reg_read:                          ## @ocp_reg_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %r15d
	andl	$61440, %r15d                   ## imm = 0xF000
	cmpl	(%rdi), %r15d
	je	LBB0_2
## %bb.1:
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLA_OCP_GPHY_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_ocp_write_word
	movl	%r15d, (%r14)
LBB0_2:
	andl	$4095, %ebx                     ## imm = 0xFFF
	orl	$45056, %ebx                    ## imm = 0xB000
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocp_read_word                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_OCP_GPHY_BASE,4,2          ## @PLA_OCP_GPHY_BASE
	.no_dead_strip	_ocp_reg_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocp_reg_read
_ocp_reg_read:                          ; @ocp_reg_read
	.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	x20, x1
	mov	x19, x0
	and	w21, w1, #0xf000
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _MCU_TYPE_PLA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MCU_TYPE_PLA@GOTPAGEOFF]
	cmp	w21, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _PLA_OCP_GPHY_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PLA_OCP_GPHY_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_ocp_write_word
	str	w21, [x19]
LBB0_2:
	mov	w2, #45056
	bfxil	w2, w20, #0, #12
	ldr	w1, [x22]
	mov	x0, x19
	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
	b	_ocp_read_word
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_OCP_GPHY_BASE,4,2          ; @PLA_OCP_GPHY_BASE
	.no_dead_strip	_ocp_reg_read
.subsections_via_symbols
