	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153_enter_oob
_r8153_enter_oob:                       ## @r8153_enter_oob
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$1, %esi
	callq	_r8153_mac_clk_spd
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_OOB_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_byte
	movq	_NOW_IS_OOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_write_byte
	movq	%r15, %rdi
	callq	_rtl_disable
	movq	%r15, %rdi
	callq	_rtl_reset_bmu
	movl	$1000, %r12d                    ## imm = 0x3E8
	movq	_LINK_LIST_READY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	_PLA_OOB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ocp_read_byte
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decl	%r12d
	jne	LBB0_1
LBB0_3:
	movl	(%r14), %esi
	movq	_PLA_SFF_STS_7@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_word
	movq	_RE_INIT_LL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_ocp_write_word
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	_PLA_OOB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ocp_read_byte
	testl	%eax, (%r13)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_4
LBB0_6:
	movq	8(%r15), %rax
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	movl	(%r14), %esi
	movq	_PLA_RMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ocp_write_word
	movl	(%r15), %eax
	leal	-130(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_7
## %bb.9:
	movl	(%r14), %esi
	movq	_PLA_TEREDO_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_word
	movq	_TEREDO_WAKE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_NOW_IS_OOB@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_7:
	addl	$-128, %eax
	cmpl	$2, %eax
	movq	_NOW_IS_OOB@GOTPCREL(%rip), %r12
	jae	LBB0_11
## %bb.8:
	movl	$255, %ecx
	movq	_PLA_TEREDO_WAKE_BASE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_write_word
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rtl_rx_vlan_en
	movl	(%r14), %esi
	movq	_PLA_BDC_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_word
	movq	_ALDPS_PROXY_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_ocp_write_word
	movl	(%r14), %esi
	movq	_PLA_OOB_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_byte
	movq	_DIS_MCU_CLROOB@GOTPCREL(%rip), %rcx
	orl	(%r12), %eax
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_ocp_write_byte
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_rxdy_gated_en
	movl	(%r14), %esi
	movq	_PLA_RCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_dword
	movq	_RCR_APM@GOTPCREL(%rip), %rcx
	movq	_RCR_AM@GOTPCREL(%rip), %rdx
	movq	_RCR_AB@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocp_write_dword                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_OOB_CTRL,4,2               ## @PLA_OOB_CTRL
	.comm	_NOW_IS_OOB,4,2                 ## @NOW_IS_OOB
	.comm	_LINK_LIST_READY,4,2            ## @LINK_LIST_READY
	.comm	_PLA_SFF_STS_7,4,2              ## @PLA_SFF_STS_7
	.comm	_RE_INIT_LL,4,2                 ## @RE_INIT_LL
	.comm	_VLAN_ETH_HLEN,4,2              ## @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_PLA_RMS,4,2                    ## @PLA_RMS
	.comm	_PLA_TEREDO_CFG,4,2             ## @PLA_TEREDO_CFG
	.comm	_TEREDO_WAKE_MASK,4,2           ## @TEREDO_WAKE_MASK
	.comm	_PLA_TEREDO_WAKE_BASE,4,2       ## @PLA_TEREDO_WAKE_BASE
	.comm	_PLA_BDC_CR,4,2                 ## @PLA_BDC_CR
	.comm	_ALDPS_PROXY_MODE,4,2           ## @ALDPS_PROXY_MODE
	.comm	_DIS_MCU_CLROOB,4,2             ## @DIS_MCU_CLROOB
	.comm	_PLA_RCR,4,2                    ## @PLA_RCR
	.comm	_RCR_APM,4,2                    ## @RCR_APM
	.comm	_RCR_AM,4,2                     ## @RCR_AM
	.comm	_RCR_AB,4,2                     ## @RCR_AB
	.no_dead_strip	_r8153_enter_oob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153_enter_oob
_r8153_enter_oob:                       ; @r8153_enter_oob
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #1
	bl	_r8153_mac_clk_spd
Lloh0:
	adrp	x20, _MCU_TYPE_PLA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MCU_TYPE_PLA@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _PLA_OOB_CTRL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PLA_OOB_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_byte
Lloh4:
	adrp	x22, _NOW_IS_OOB@GOTPAGE
Lloh5:
	ldr	x22, [x22, _NOW_IS_OOB@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w3, w0, w8
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_byte
	mov	x0, x19
	bl	_rtl_disable
	mov	x0, x19
	bl	_rtl_reset_bmu
	mov	w24, #1000
Lloh6:
	adrp	x23, _LINK_LIST_READY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _LINK_LIST_READY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_byte
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	w24, w24, #1
	b.ne	LBB0_1
LBB0_3:
	ldr	w1, [x20]
Lloh8:
	adrp	x24, _PLA_SFF_STS_7@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PLA_SFF_STS_7@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_ocp_read_word
Lloh10:
	adrp	x8, _RE_INIT_LL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RE_INIT_LL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	w1, [x20]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_ocp_write_word
	mov	w24, #1000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_byte
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	w24, w24, #1
	b.ne	LBB0_4
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w3, w8, w10
	ldr	w1, [x20]
Lloh19:
	adrp	x8, _PLA_RMS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PLA_RMS@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w8, [x19]
	sub	w9, w8, #130
	cmp	w9, #4
	b.hs	LBB0_8
; %bb.7:
	ldr	w1, [x20]
Lloh22:
	adrp	x23, _PLA_TEREDO_CFG@GOTPAGE
Lloh23:
	ldr	x23, [x23, _PLA_TEREDO_CFG@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_read_word
Lloh24:
	adrp	x8, _TEREDO_WAKE_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TEREDO_WAKE_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w3, w0, w8
	b	LBB0_10
LBB0_8:
	sub	w8, w8, #128
	cmp	w8, #2
	b.hs	LBB0_11
; %bb.9:
	mov	w3, #255
Lloh27:
	adrp	x23, _PLA_TEREDO_WAKE_BASE@GOTPAGE
Lloh28:
	ldr	x23, [x23, _PLA_TEREDO_WAKE_BASE@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x20]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_write_word
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_rtl_rx_vlan_en
	ldr	w1, [x20]
Lloh29:
	adrp	x23, _PLA_BDC_CR@GOTPAGE
Lloh30:
	ldr	x23, [x23, _PLA_BDC_CR@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_read_word
Lloh31:
	adrp	x8, _ALDPS_PROXY_MODE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ALDPS_PROXY_MODE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	w1, [x20]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_byte
Lloh34:
	adrp	x8, _DIS_MCU_CLROOB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DIS_MCU_CLROOB@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh36:
	ldr	w8, [x8]
	orr	w9, w9, w0
	orr	w3, w9, w8
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_byte
	mov	x0, x19
	mov	w1, #0
	bl	_rxdy_gated_en
	ldr	w1, [x20]
Lloh37:
	adrp	x21, _PLA_RCR@GOTPAGE
Lloh38:
	ldr	x21, [x21, _PLA_RCR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_dword
Lloh39:
	adrp	x8, _RCR_APM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RCR_APM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _RCR_AM@GOTPAGE
Lloh43:
	ldr	x9, [x9, _RCR_AM@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _RCR_AB@GOTPAGE
Lloh46:
	ldr	x10, [x10, _RCR_AB@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w3, w8, w10
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ocp_write_dword
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_OOB_CTRL,4,2               ; @PLA_OOB_CTRL
	.comm	_NOW_IS_OOB,4,2                 ; @NOW_IS_OOB
	.comm	_LINK_LIST_READY,4,2            ; @LINK_LIST_READY
	.comm	_PLA_SFF_STS_7,4,2              ; @PLA_SFF_STS_7
	.comm	_RE_INIT_LL,4,2                 ; @RE_INIT_LL
	.comm	_VLAN_ETH_HLEN,4,2              ; @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_PLA_RMS,4,2                    ; @PLA_RMS
	.comm	_PLA_TEREDO_CFG,4,2             ; @PLA_TEREDO_CFG
	.comm	_TEREDO_WAKE_MASK,4,2           ; @TEREDO_WAKE_MASK
	.comm	_PLA_TEREDO_WAKE_BASE,4,2       ; @PLA_TEREDO_WAKE_BASE
	.comm	_PLA_BDC_CR,4,2                 ; @PLA_BDC_CR
	.comm	_ALDPS_PROXY_MODE,4,2           ; @ALDPS_PROXY_MODE
	.comm	_DIS_MCU_CLROOB,4,2             ; @DIS_MCU_CLROOB
	.comm	_PLA_RCR,4,2                    ; @PLA_RCR
	.comm	_RCR_APM,4,2                    ; @RCR_APM
	.comm	_RCR_AM,4,2                     ; @RCR_AM
	.comm	_RCR_AB,4,2                     ; @RCR_AB
	.no_dead_strip	_r8153_enter_oob
.subsections_via_symbols
