	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixp2400_msf_init               ## -- Begin function ixp2400_msf_init
	.p2align	4, 0x90
_ixp2400_msf_init:                      ## @ixp2400_msf_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, %r14
	callq	_ixp2400_pll_init
	movq	_IXP2000_RESET0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ixp2000_reg_read
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	%eax, %esi
	orl	$128, %esi
	callq	_ixp2000_reg_write
	movq	(%r15), %rdi
	andl	$-129, %ebx
	movl	%ebx, %esi
	callq	_ixp2000_reg_write
	movq	_IXP2000_MSF_RX_MPHY_POLL_LIMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	decl	%esi
	callq	_ixp2000_reg_write
	movq	_IXP2000_MSF_RX_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	4(%r14), %esi
	callq	_ixp2000_reg_write
	movq	_IXP2000_MSF_RX_UP_CONTROL_0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	callq	_ixp2000_reg_write
	movq	(%rbx), %rdi
	incq	%rdi
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	callq	_ixp2000_reg_write
	movq	(%rbx), %rdi
	addq	$2, %rdi
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	callq	_ixp2000_reg_write
	movq	(%rbx), %rdi
	addq	$3, %rdi
	movq	8(%r14), %rax
	movl	12(%rax), %esi
	callq	_ixp2000_reg_write
	movq	%r14, %rdi
	callq	_ixp2400_msf_free_rbuf_entries
	movq	%r14, %rdi
	callq	_ixp2400_msf_enable_rx
	movq	_IXP2000_MSF_TX_MPHY_POLL_LIMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	16(%r14), %esi
	decl	%esi
	callq	_ixp2000_reg_write
	movq	_IXP2000_MSF_TX_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	20(%r14), %esi
	callq	_ixp2000_reg_write
	movq	_IXP2000_MSF_TX_UP_CONTROL_0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	24(%r14), %rax
	movl	(%rax), %esi
	callq	_ixp2000_reg_write
	movq	(%rbx), %rdi
	incq	%rdi
	movq	24(%r14), %rax
	movl	4(%rax), %esi
	callq	_ixp2000_reg_write
	movq	(%rbx), %rdi
	addq	$2, %rdi
	movq	24(%r14), %rax
	movl	8(%rax), %esi
	callq	_ixp2000_reg_write
	movq	(%rbx), %rdi
	addq	$3, %rdi
	movq	24(%r14), %rax
	movl	12(%rax), %esi
	callq	_ixp2000_reg_write
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ixp2400_msf_enable_tx          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IXP2000_RESET0,8,3             ## @IXP2000_RESET0
	.comm	_IXP2000_MSF_RX_MPHY_POLL_LIMIT,8,3 ## @IXP2000_MSF_RX_MPHY_POLL_LIMIT
	.comm	_IXP2000_MSF_RX_CONTROL,8,3     ## @IXP2000_MSF_RX_CONTROL
	.comm	_IXP2000_MSF_RX_UP_CONTROL_0,8,3 ## @IXP2000_MSF_RX_UP_CONTROL_0
	.comm	_IXP2000_MSF_TX_MPHY_POLL_LIMIT,8,3 ## @IXP2000_MSF_TX_MPHY_POLL_LIMIT
	.comm	_IXP2000_MSF_TX_CONTROL,8,3     ## @IXP2000_MSF_TX_CONTROL
	.comm	_IXP2000_MSF_TX_UP_CONTROL_0,8,3 ## @IXP2000_MSF_TX_UP_CONTROL_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixp2400_msf_init               ; -- Begin function ixp2400_msf_init
	.p2align	2
_ixp2400_msf_init:                      ; @ixp2400_msf_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
	bl	_ixp2400_pll_init
Lloh0:
	adrp	x21, _IXP2000_RESET0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IXP2000_RESET0@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ixp2000_reg_read
	mov	x20, x0
	ldr	x0, [x21]
	orr	w1, w20, #0x80
	bl	_ixp2000_reg_write
	ldr	x0, [x21]
	and	w1, w20, #0xffffff7f
	bl	_ixp2000_reg_write
Lloh2:
	adrp	x8, _IXP2000_MSF_RX_MPHY_POLL_LIMIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXP2000_MSF_RX_MPHY_POLL_LIMIT@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	ldr	w8, [x19]
	sub	w1, w8, #1
	bl	_ixp2000_reg_write
Lloh5:
	adrp	x8, _IXP2000_MSF_RX_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXP2000_MSF_RX_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	ldr	w1, [x19, #4]
	bl	_ixp2000_reg_write
Lloh8:
	adrp	x20, _IXP2000_MSF_RX_UP_CONTROL_0@GOTPAGE
Lloh9:
	ldr	x20, [x20, _IXP2000_MSF_RX_UP_CONTROL_0@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_ixp2000_reg_write
	ldr	x8, [x20]
	add	x0, x8, #1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	bl	_ixp2000_reg_write
	ldr	x8, [x20]
	add	x0, x8, #2
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	_ixp2000_reg_write
	ldr	x8, [x20]
	add	x0, x8, #3
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #12]
	bl	_ixp2000_reg_write
	mov	x0, x19
	bl	_ixp2400_msf_free_rbuf_entries
	mov	x0, x19
	bl	_ixp2400_msf_enable_rx
Lloh10:
	adrp	x8, _IXP2000_MSF_TX_MPHY_POLL_LIMIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXP2000_MSF_TX_MPHY_POLL_LIMIT@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	ldr	w8, [x19, #16]
	sub	w1, w8, #1
	bl	_ixp2000_reg_write
Lloh13:
	adrp	x8, _IXP2000_MSF_TX_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IXP2000_MSF_TX_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	ldr	w1, [x19, #20]
	bl	_ixp2000_reg_write
Lloh16:
	adrp	x20, _IXP2000_MSF_TX_UP_CONTROL_0@GOTPAGE
Lloh17:
	ldr	x20, [x20, _IXP2000_MSF_TX_UP_CONTROL_0@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	bl	_ixp2000_reg_write
	ldr	x8, [x20]
	add	x0, x8, #1
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	bl	_ixp2000_reg_write
	ldr	x8, [x20]
	add	x0, x8, #2
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #8]
	bl	_ixp2000_reg_write
	ldr	x8, [x20]
	add	x0, x8, #3
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #12]
	bl	_ixp2000_reg_write
	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	_ixp2400_msf_enable_tx
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IXP2000_RESET0,8,3             ; @IXP2000_RESET0
	.comm	_IXP2000_MSF_RX_MPHY_POLL_LIMIT,8,3 ; @IXP2000_MSF_RX_MPHY_POLL_LIMIT
	.comm	_IXP2000_MSF_RX_CONTROL,8,3     ; @IXP2000_MSF_RX_CONTROL
	.comm	_IXP2000_MSF_RX_UP_CONTROL_0,8,3 ; @IXP2000_MSF_RX_UP_CONTROL_0
	.comm	_IXP2000_MSF_TX_MPHY_POLL_LIMIT,8,3 ; @IXP2000_MSF_TX_MPHY_POLL_LIMIT
	.comm	_IXP2000_MSF_TX_CONTROL,8,3     ; @IXP2000_MSF_TX_CONTROL
	.comm	_IXP2000_MSF_TX_UP_CONTROL_0,8,3 ; @IXP2000_MSF_TX_UP_CONTROL_0
.subsections_via_symbols
