	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixp2400_pll_init
_ixp2400_pll_init:                      ## @ixp2400_pll_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, %r14
	movq	_IXP2400_RX_MODE_WIDTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	andl	(%rdi), %eax
	setne	%r12b
	movq	_IXP2400_TX_MODE_WIDTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	andl	4(%rdi), %eax
	setne	%r15b
	movq	_IXP2000_MSF_CLK_CNTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ixp2000_reg_read
	movl	%eax, %ebx
	orl	$61680, %ebx                    ## imm = 0xF0F0
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_ixp2000_reg_write
	andl	$-67043329, %ebx                ## imm = 0xFC00FFFF
	movl	%r12d, %eax
	shll	$24, %eax
	movl	%r15d, %ecx
	shll	$25, %ecx
	orl	%eax, %ecx
	orl	%ebx, %ecx
	movl	8(%r14), %eax
	movl	12(%r14), %edx
	shll	$16, %eax
	shll	$18, %edx
	orl	%eax, %edx
	movl	16(%r14), %eax
	shll	$20, %eax
	orl	%edx, %eax
	movl	20(%r14), %r14d
	shll	$22, %r14d
	orl	%eax, %r14d
	orl	%ecx, %r14d
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_ixp2000_reg_write
	movl	%r12d, %eax
	shll	$13, %eax
	movl	%r15d, %ebx
	shll	$15, %ebx
	orl	%eax, %ebx
	notl	%ebx
	andl	%r14d, %ebx
	movl	%ebx, %esi
	andl	$-20481, %esi                   ## imm = 0xAFFF
	movl	(%r13), %edi
	callq	_ixp2000_reg_write
	shll	$5, %r12d
	shll	$7, %r15d
	orl	%r12d, %r15d
	notl	%r15d
	andl	%ebx, %r15d
	andl	$-20561, %r15d                  ## imm = 0xAFAF
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_ixp2000_reg_write
	movl	$100, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IXP2400_RX_MODE_WIDTH_MASK,4,2 ## @IXP2400_RX_MODE_WIDTH_MASK
	.comm	_IXP2400_TX_MODE_WIDTH_MASK,4,2 ## @IXP2400_TX_MODE_WIDTH_MASK
	.comm	_IXP2000_MSF_CLK_CNTRL,4,2      ## @IXP2000_MSF_CLK_CNTRL
	.no_dead_strip	_ixp2400_pll_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixp2400_pll_init
_ixp2400_pll_init:                      ; @ixp2400_pll_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
Lloh0:
	adrp	x8, _IXP2400_RX_MODE_WIDTH_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXP2400_RX_MODE_WIDTH_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldp	w22, w8, [x0]
Lloh3:
	adrp	x9, _IXP2400_TX_MODE_WIDTH_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IXP2400_TX_MODE_WIDTH_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w23, ne
Lloh6:
	adrp	x24, _IXP2000_MSF_CLK_CNTRL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IXP2000_MSF_CLK_CNTRL@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_ixp2000_reg_read
	mov	w8, #61680
	orr	w20, w0, w8
	ldr	w0, [x24]
	mov	x1, x20
	bl	_ixp2000_reg_write
	tst	w21, w22
	cset	w8, ne
	and	w9, w20, #0xfc00ffff
	lsl	w8, w8, #24
	bfi	w8, w23, #25, #1
	orr	w8, w8, w9
	ldp	w9, w10, [x19, #8]
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, w10, lsl #18
	ldp	w9, w10, [x19, #16]
	orr	w8, w8, w9, lsl #20
	orr	w19, w8, w10, lsl #22
	ldr	w0, [x24]
	mov	w8, #28672
	mov	w9, #20480
	csel	w20, w9, w8, eq
	mov	w8, #112
	mov	w9, #80
	csel	w21, w9, w8, eq
	mov	x1, x19
	bl	_ixp2000_reg_write
	bfi	w20, w23, #15, #1
	bic	w19, w19, w20
	ldr	w0, [x24]
	mov	x1, x19
	bl	_ixp2000_reg_write
	bfi	w21, w23, #7, #1
	bic	w1, w19, w21
	ldr	w0, [x24]
	bl	_ixp2000_reg_write
	mov	w0, #100
	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	_udelay
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IXP2400_RX_MODE_WIDTH_MASK,4,2 ; @IXP2400_RX_MODE_WIDTH_MASK
	.comm	_IXP2400_TX_MODE_WIDTH_MASK,4,2 ; @IXP2400_TX_MODE_WIDTH_MASK
	.comm	_IXP2000_MSF_CLK_CNTRL,4,2      ; @IXP2000_MSF_CLK_CNTRL
	.no_dead_strip	_ixp2400_pll_init
.subsections_via_symbols
