	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_in_nway
_rtl8152_in_nway:                       ## @rtl8152_in_nway
	.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
	movq	%rdi, %rbx
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_OCP_GPHY_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_ocp_write_word
	movl	$8192, (%rbx)                   ## imm = 0x2000
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$45076, %edx                    ## imm = 0xB014
	movl	$76, %ecx
	callq	_ocp_write_byte
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$45082, %edx                    ## imm = 0xB01A
	callq	_ocp_read_word
	xorl	%ecx, %ecx
	testl	$49152, %eax                    ## imm = 0xC000
	sete	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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	_rtl8152_in_nway
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_in_nway
_rtl8152_in_nway:                       ; @rtl8152_in_nway
	.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, x0
Lloh0:
	adrp	x20, _MCU_TYPE_PLA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MCU_TYPE_PLA@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _PLA_OCP_GPHY_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PLA_OCP_GPHY_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w21, #8192
	mov	w3, #8192
	bl	_ocp_write_word
	str	w21, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #45076
	mov	w3, #76
	bl	_ocp_write_byte
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #45082
	bl	_ocp_read_word
	tst	w0, #0xc000
	cset	w0, eq
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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	_rtl8152_in_nway
.subsections_via_symbols
