	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8152b_init
_r8152b_init:                           ## @r8152b_init
	.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
	movq	%rdi, %rbx
	movq	_RTL8152_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_r8152_mdio_read
	movq	_BMCR_PDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_r8152_mdio_write
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_r8152_aldps_en
	movq	(%rbx), %rax
	movq	_RTL_VER_01@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_LED_FEATURE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_LED_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_r8152_power_cut_en
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_PHY_PWR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_TX_10M_IDLE_EN@GOTPCREL(%rip), %rcx
	movq	_PFM_PWM_SWITCH@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_ocp_write_word
	movl	(%r14), %esi
	movq	_PLA_MAC_PWR_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_dword
	movq	_MCU_CLK_RATIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_MCU_CLK_RATIO@GOTPCREL(%rip), %rax
	movq	_D3_CLK_GATED_EN@GOTPCREL(%rip), %rdx
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_dword
	movq	_GPHY_STS_MSK@GOTPCREL(%rip), %rax
	movq	_SPEED_DOWN_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SPDWN_RXDV_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SPDWN_LINKCHG_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r14), %esi
	movq	_PLA_GPHY_INTR_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	movq	%rbx, %rdi
	callq	_rtl_tally_reset
	movq	_MCU_TYPE_USB@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_USB_USB_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_RX_AGG_DISABLE@GOTPCREL(%rip), %rdx
	movq	_RX_ZERO_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocp_write_word                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8152_UNPLUG,4,2             ## @RTL8152_UNPLUG
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_PDOWN,4,2                 ## @BMCR_PDOWN
	.comm	_RTL_VER_01,8,3                 ## @RTL_VER_01
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_LED_FEATURE,4,2            ## @PLA_LED_FEATURE
	.comm	_LED_MODE_MASK,4,2              ## @LED_MODE_MASK
	.comm	_PLA_PHY_PWR,4,2                ## @PLA_PHY_PWR
	.comm	_TX_10M_IDLE_EN,4,2             ## @TX_10M_IDLE_EN
	.comm	_PFM_PWM_SWITCH,4,2             ## @PFM_PWM_SWITCH
	.comm	_PLA_MAC_PWR_CTRL,4,2           ## @PLA_MAC_PWR_CTRL
	.comm	_MCU_CLK_RATIO_MASK,4,2         ## @MCU_CLK_RATIO_MASK
	.comm	_MCU_CLK_RATIO,4,2              ## @MCU_CLK_RATIO
	.comm	_D3_CLK_GATED_EN,4,2            ## @D3_CLK_GATED_EN
	.comm	_GPHY_STS_MSK,4,2               ## @GPHY_STS_MSK
	.comm	_SPEED_DOWN_MSK,4,2             ## @SPEED_DOWN_MSK
	.comm	_SPDWN_RXDV_MSK,4,2             ## @SPDWN_RXDV_MSK
	.comm	_SPDWN_LINKCHG_MSK,4,2          ## @SPDWN_LINKCHG_MSK
	.comm	_PLA_GPHY_INTR_IMR,4,2          ## @PLA_GPHY_INTR_IMR
	.comm	_MCU_TYPE_USB,4,2               ## @MCU_TYPE_USB
	.comm	_USB_USB_CTRL,4,2               ## @USB_USB_CTRL
	.comm	_RX_AGG_DISABLE,4,2             ## @RX_AGG_DISABLE
	.comm	_RX_ZERO_EN,4,2                 ## @RX_ZERO_EN
	.no_dead_strip	_r8152b_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8152b_init
_r8152b_init:                           ; @r8152b_init
	.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	x8, _RTL8152_UNPLUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8152_UNPLUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh3:
	adrp	x20, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_r8152_mdio_read
Lloh5:
	adrp	x8, _BMCR_PDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BMCR_PDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_r8152_mdio_write
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_r8152_aldps_en
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _RTL_VER_01@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTL_VER_01@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x20, _MCU_TYPE_PLA@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MCU_TYPE_PLA@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x20]
Lloh13:
	adrp	x21, _PLA_LED_FEATURE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PLA_LED_FEATURE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_word
Lloh15:
	adrp	x8, _LED_MODE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LED_MODE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w3, w0, w8
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_word
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_r8152_power_cut_en
	ldr	w1, [x20]
Lloh18:
	adrp	x21, _PLA_PHY_PWR@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PLA_PHY_PWR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_word
Lloh20:
	adrp	x8, _TX_10M_IDLE_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_10M_IDLE_EN@GOTPAGEOFF]
Lloh22:
	adrp	x9, _PFM_PWM_SWITCH@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PFM_PWM_SWITCH@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w3, w8, w9
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w1, [x20]
Lloh26:
	adrp	x21, _PLA_MAC_PWR_CTRL@GOTPAGE
Lloh27:
	ldr	x21, [x21, _PLA_MAC_PWR_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_dword
Lloh28:
	adrp	x8, _MCU_CLK_RATIO_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MCU_CLK_RATIO_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh31:
	adrp	x9, _MCU_CLK_RATIO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MCU_CLK_RATIO@GOTPAGEOFF]
Lloh33:
	adrp	x10, _D3_CLK_GATED_EN@GOTPAGE
Lloh34:
	ldr	x10, [x10, _D3_CLK_GATED_EN@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w3, w8, w10
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_dword
Lloh37:
	adrp	x8, _GPHY_STS_MSK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GPHY_STS_MSK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _SPEED_DOWN_MSK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SPEED_DOWN_MSK@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh43:
	adrp	x9, _SPDWN_RXDV_MSK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SPDWN_RXDV_MSK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _SPDWN_LINKCHG_MSK@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SPDWN_LINKCHG_MSK@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w1, [x20]
Lloh49:
	adrp	x8, _PLA_GPHY_INTR_IMR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PLA_GPHY_INTR_IMR@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ocp_write_word
	mov	x0, x19
	bl	_rtl_tally_reset
Lloh52:
	adrp	x20, _MCU_TYPE_USB@GOTPAGE
Lloh53:
	ldr	x20, [x20, _MCU_TYPE_USB@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh54:
	adrp	x21, _USB_USB_CTRL@GOTPAGE
Lloh55:
	ldr	x21, [x21, _USB_USB_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_word
Lloh56:
	adrp	x8, _RX_AGG_DISABLE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _RX_AGG_DISABLE@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _RX_ZERO_EN@GOTPAGE
Lloh60:
	ldr	x9, [x9, _RX_ZERO_EN@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w3, w0, w8
	ldr	w1, [x20]
	ldr	w2, [x21]
	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_write_word
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8152_UNPLUG,4,2             ; @RTL8152_UNPLUG
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_PDOWN,4,2                 ; @BMCR_PDOWN
	.comm	_RTL_VER_01,8,3                 ; @RTL_VER_01
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_LED_FEATURE,4,2            ; @PLA_LED_FEATURE
	.comm	_LED_MODE_MASK,4,2              ; @LED_MODE_MASK
	.comm	_PLA_PHY_PWR,4,2                ; @PLA_PHY_PWR
	.comm	_TX_10M_IDLE_EN,4,2             ; @TX_10M_IDLE_EN
	.comm	_PFM_PWM_SWITCH,4,2             ; @PFM_PWM_SWITCH
	.comm	_PLA_MAC_PWR_CTRL,4,2           ; @PLA_MAC_PWR_CTRL
	.comm	_MCU_CLK_RATIO_MASK,4,2         ; @MCU_CLK_RATIO_MASK
	.comm	_MCU_CLK_RATIO,4,2              ; @MCU_CLK_RATIO
	.comm	_D3_CLK_GATED_EN,4,2            ; @D3_CLK_GATED_EN
	.comm	_GPHY_STS_MSK,4,2               ; @GPHY_STS_MSK
	.comm	_SPEED_DOWN_MSK,4,2             ; @SPEED_DOWN_MSK
	.comm	_SPDWN_RXDV_MSK,4,2             ; @SPDWN_RXDV_MSK
	.comm	_SPDWN_LINKCHG_MSK,4,2          ; @SPDWN_LINKCHG_MSK
	.comm	_PLA_GPHY_INTR_IMR,4,2          ; @PLA_GPHY_INTR_IMR
	.comm	_MCU_TYPE_USB,4,2               ; @MCU_TYPE_USB
	.comm	_USB_USB_CTRL,4,2               ; @USB_USB_CTRL
	.comm	_RX_AGG_DISABLE,4,2             ; @RX_AGG_DISABLE
	.comm	_RX_ZERO_EN,4,2                 ; @RX_ZERO_EN
	.no_dead_strip	_r8152b_init
.subsections_via_symbols
