	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lpc_eth_init
___lpc_eth_init:                        ## @__lpc_eth_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	%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	(%rdi), %edi
	callq	_LPC_ENET_COMMAND
	movl	%eax, %edi
	callq	_readl
	movq	_LPC_COMMAND_RXENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	movq	_LPC_COMMAND_TXENABLE@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_COMMAND
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r15), %edi
	callq	_LPC_ENET_MAC1
	movl	%eax, %edi
	callq	_readl
	movq	_LPC_MAC1_RECV_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_MAC1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_LPC_MAC1_PASS_ALL_RX_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_MAC1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_LPC_MAC2_PAD_CRC_ENABLE@GOTPCREL(%rip), %rax
	movq	_LPC_MAC2_CRC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_MAC2
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_ENET_MAXF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_MAXF
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	$15, %edi
	callq	_LPC_CLRT_LOAD_RETRY_MAX
	movl	%eax, %ebx
	movl	$55, %edi
	callq	_LPC_CLRT_LOAD_COLLISION_WINDOW
	orl	%eax, %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_CLRT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	$18, %edi
	callq	_LPC_IPGR_LOAD_PART2
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_IPGR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	24(%r15), %rdi
	callq	_lpc_phy_interface_mode
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rcx
	movq	_LPC_COMMAND_PASSRUNTFRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_LPC_ENET_COMMAND
	movl	%r14d, %edi
	jmp	LBB0_3
LBB0_2:
	movq	_LPC_COMMAND_RMII@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_LPC_ENET_COMMAND
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_LPC_SUPP_RESET_RMII@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_SUPP
	movl	%ebx, %edi
LBB0_3:
	movl	%eax, %esi
	callq	_writel
	movq	%r15, %rdi
	callq	___lpc_params_setup
	movq	%r15, %rdi
	callq	___lpc_txrx_desc_setup
	movq	_LPC_RXFLTRW_ACCEPTUBROADCAST@GOTPCREL(%rip), %rax
	movq	_LPC_RXFLTRW_ACCEPTPERFECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_RXFILTER_CTRL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	$0, 16(%r15)
	movl	(%r15), %edi
	callq	_LPC_ENET_TXCONSUMEINDEX
	movl	%eax, %edi
	callq	_readl
	movq	%rax, 8(%r15)
	movl	(%r15), %edi
	callq	_LPC_ENET_INTCLEAR
	movl	$65535, %edi                    ## imm = 0xFFFF
	movl	%eax, %esi
	callq	_writel
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	(%r15), %edi
	callq	_lpc_eth_enable_int
	movl	(%r15), %edi
	callq	_LPC_ENET_COMMAND
	movl	%eax, %edi
	callq	_readl
	movl	(%r12), %ebx
	movq	_LPC_COMMAND_RXENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	orl	%eax, %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_COMMAND
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r15), %edi
	callq	_LPC_ENET_MAC1
	movl	%eax, %edi
	callq	_readl
	movq	%rax, %rbx
	orl	(%r13), %ebx
	movl	(%r15), %edi
	callq	_LPC_ENET_MAC1
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC_COMMAND_RXENABLE,4,2       ## @LPC_COMMAND_RXENABLE
	.comm	_LPC_COMMAND_TXENABLE,4,2       ## @LPC_COMMAND_TXENABLE
	.comm	_LPC_MAC1_RECV_ENABLE,4,2       ## @LPC_MAC1_RECV_ENABLE
	.comm	_LPC_MAC1_PASS_ALL_RX_FRAMES,4,2 ## @LPC_MAC1_PASS_ALL_RX_FRAMES
	.comm	_LPC_MAC2_PAD_CRC_ENABLE,4,2    ## @LPC_MAC2_PAD_CRC_ENABLE
	.comm	_LPC_MAC2_CRC_ENABLE,4,2        ## @LPC_MAC2_CRC_ENABLE
	.comm	_ENET_MAXF_SIZE,4,2             ## @ENET_MAXF_SIZE
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ## @PHY_INTERFACE_MODE_MII
	.comm	_LPC_COMMAND_PASSRUNTFRAME,4,2  ## @LPC_COMMAND_PASSRUNTFRAME
	.comm	_LPC_COMMAND_RMII,4,2           ## @LPC_COMMAND_RMII
	.comm	_LPC_SUPP_RESET_RMII,4,2        ## @LPC_SUPP_RESET_RMII
	.comm	_LPC_RXFLTRW_ACCEPTUBROADCAST,4,2 ## @LPC_RXFLTRW_ACCEPTUBROADCAST
	.comm	_LPC_RXFLTRW_ACCEPTPERFECT,4,2  ## @LPC_RXFLTRW_ACCEPTPERFECT
	.no_dead_strip	___lpc_eth_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lpc_eth_init
___lpc_eth_init:                        ; @__lpc_eth_init
	.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
	ldr	w0, [x0]
	bl	_LPC_ENET_COMMAND
	bl	_readl
Lloh0:
	adrp	x21, _LPC_COMMAND_RXENABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LPC_COMMAND_RXENABLE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _LPC_COMMAND_TXENABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LPC_COMMAND_TXENABLE@GOTPAGEOFF]
	ldr	w9, [x22]
	orn	w8, w9, w8
	and	w20, w8, w0
	ldr	w0, [x19]
	bl	_LPC_ENET_COMMAND
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19]
	bl	_LPC_ENET_MAC1
	bl	_readl
Lloh4:
	adrp	x23, _LPC_MAC1_RECV_ENABLE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _LPC_MAC1_RECV_ENABLE@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w20, w0, w8
	ldr	w0, [x19]
	bl	_LPC_ENET_MAC1
	mov	x1, x0
	mov	x0, x20
	bl	_writel
Lloh6:
	adrp	x8, _LPC_MAC1_PASS_ALL_RX_FRAMES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LPC_MAC1_PASS_ALL_RX_FRAMES@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_LPC_ENET_MAC1
	mov	x1, x0
	mov	x0, x20
	bl	_writel
Lloh9:
	adrp	x8, _LPC_MAC2_PAD_CRC_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LPC_MAC2_PAD_CRC_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _LPC_MAC2_CRC_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LPC_MAC2_CRC_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w0, [x19]
	bl	_LPC_ENET_MAC2
	mov	x1, x0
	mov	x0, x20
	bl	_writel
Lloh15:
	adrp	x8, _ENET_MAXF_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENET_MAXF_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_LPC_ENET_MAXF
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	w0, #15
	bl	_LPC_CLRT_LOAD_RETRY_MAX
	mov	x20, x0
	mov	w0, #55
	bl	_LPC_CLRT_LOAD_COLLISION_WINDOW
	orr	w20, w0, w20
	ldr	w0, [x19]
	bl	_LPC_ENET_CLRT
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	w0, #18
	bl	_LPC_IPGR_LOAD_PART2
	mov	x20, x0
	ldr	w0, [x19]
	bl	_LPC_ENET_IPGR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	ldr	x0, [x19, #24]
	bl	_lpc_phy_interface_mode
Lloh18:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _LPC_COMMAND_PASSRUNTFRAME@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LPC_COMMAND_PASSRUNTFRAME@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x9]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_LPC_ENET_COMMAND
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _LPC_COMMAND_RMII@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LPC_COMMAND_RMII@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w0, [x19]
	bl	_LPC_ENET_COMMAND
	mov	x1, x0
	mov	x0, x20
	bl	_writel
Lloh27:
	adrp	x8, _LPC_SUPP_RESET_RMII@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LPC_SUPP_RESET_RMII@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_LPC_ENET_SUPP
LBB0_3:
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	bl	___lpc_params_setup
	mov	x0, x19
	bl	___lpc_txrx_desc_setup
Lloh30:
	adrp	x8, _LPC_RXFLTRW_ACCEPTUBROADCAST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LPC_RXFLTRW_ACCEPTUBROADCAST@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _LPC_RXFLTRW_ACCEPTPERFECT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LPC_RXFLTRW_ACCEPTPERFECT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w0, [x19]
	bl	_LPC_ENET_RXFILTER_CTRL
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	str	xzr, [x19, #16]
	ldr	w0, [x19]
	bl	_LPC_ENET_TXCONSUMEINDEX
	bl	_readl
	str	x0, [x19, #8]
	ldr	w0, [x19]
	bl	_LPC_ENET_INTCLEAR
	mov	x1, x0
	mov	w0, #65535
	bl	_writel
	bl	_smp_wmb
	ldr	w0, [x19]
	bl	_lpc_eth_enable_int
	ldr	w0, [x19]
	bl	_LPC_ENET_COMMAND
	bl	_readl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	orr	w20, w8, w0
	ldr	w0, [x19]
	bl	_LPC_ENET_COMMAND
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19]
	bl	_LPC_ENET_MAC1
	bl	_readl
	ldr	w8, [x23]
	orr	w20, w8, w0
	ldr	w0, [x19]
	bl	_LPC_ENET_MAC1
	mov	x1, x0
	mov	x0, x20
	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	_writel
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC_COMMAND_RXENABLE,4,2       ; @LPC_COMMAND_RXENABLE
	.comm	_LPC_COMMAND_TXENABLE,4,2       ; @LPC_COMMAND_TXENABLE
	.comm	_LPC_MAC1_RECV_ENABLE,4,2       ; @LPC_MAC1_RECV_ENABLE
	.comm	_LPC_MAC1_PASS_ALL_RX_FRAMES,4,2 ; @LPC_MAC1_PASS_ALL_RX_FRAMES
	.comm	_LPC_MAC2_PAD_CRC_ENABLE,4,2    ; @LPC_MAC2_PAD_CRC_ENABLE
	.comm	_LPC_MAC2_CRC_ENABLE,4,2        ; @LPC_MAC2_CRC_ENABLE
	.comm	_ENET_MAXF_SIZE,4,2             ; @ENET_MAXF_SIZE
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ; @PHY_INTERFACE_MODE_MII
	.comm	_LPC_COMMAND_PASSRUNTFRAME,4,2  ; @LPC_COMMAND_PASSRUNTFRAME
	.comm	_LPC_COMMAND_RMII,4,2           ; @LPC_COMMAND_RMII
	.comm	_LPC_SUPP_RESET_RMII,4,2        ; @LPC_SUPP_RESET_RMII
	.comm	_LPC_RXFLTRW_ACCEPTUBROADCAST,4,2 ; @LPC_RXFLTRW_ACCEPTUBROADCAST
	.comm	_LPC_RXFLTRW_ACCEPTPERFECT,4,2  ; @LPC_RXFLTRW_ACCEPTPERFECT
	.no_dead_strip	___lpc_eth_init
.subsections_via_symbols
