	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_mux_iproc_config
_mdio_mux_iproc_config:                 ## @mdio_mux_iproc_config
	.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
	movq	_MDIO_SCAN_CTRL_OFFSET@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_clk_get_rate
	movq	_MDIO_OPERATING_FREQUENCY@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_MDIO_RATE_ADJ_DIVIDENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leal	1(%rbx), %ecx
	cltd
	idivl	%ecx
	movq	_MDIO_RATE_ADJ_DIVIDENT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	_MDIO_RATE_ADJ_EXT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_MDIO_RATE_ADJ_INT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_SCAN_CTRL_OFFSET,8,3      ## @MDIO_SCAN_CTRL_OFFSET
	.comm	_MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR,4,2 ## @MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR
	.comm	_MDIO_OPERATING_FREQUENCY,4,2   ## @MDIO_OPERATING_FREQUENCY
	.comm	_MDIO_RATE_ADJ_DIVIDENT,4,2     ## @MDIO_RATE_ADJ_DIVIDENT
	.comm	_MDIO_RATE_ADJ_DIVIDENT_SHIFT,4,2 ## @MDIO_RATE_ADJ_DIVIDENT_SHIFT
	.comm	_MDIO_RATE_ADJ_EXT_OFFSET,8,3   ## @MDIO_RATE_ADJ_EXT_OFFSET
	.comm	_MDIO_RATE_ADJ_INT_OFFSET,8,3   ## @MDIO_RATE_ADJ_INT_OFFSET
	.no_dead_strip	_mdio_mux_iproc_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_mux_iproc_config
_mdio_mux_iproc_config:                 ; @mdio_mux_iproc_config
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _MDIO_SCAN_CTRL_OFFSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_SCAN_CTRL_OFFSET@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh2:
	adrp	x8, _MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_BIT
	orr	w0, w0, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_clk_get_rate
Lloh5:
	adrp	x8, _MDIO_OPERATING_FREQUENCY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_OPERATING_FREQUENCY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sdiv	w8, w0, w8
Lloh8:
	adrp	x9, _MDIO_RATE_ADJ_DIVIDENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MDIO_RATE_ADJ_DIVIDENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w10, w9, #1
	sdiv	w8, w8, w10
Lloh11:
	adrp	x10, _MDIO_RATE_ADJ_DIVIDENT_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MDIO_RATE_ADJ_DIVIDENT_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w20, w9, w8
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _MDIO_RATE_ADJ_EXT_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MDIO_RATE_ADJ_EXT_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _MDIO_RATE_ADJ_INT_OFFSET@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MDIO_RATE_ADJ_INT_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	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	_writel
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_SCAN_CTRL_OFFSET,8,3      ; @MDIO_SCAN_CTRL_OFFSET
	.comm	_MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR,4,2 ; @MDIO_SCAN_CTRL_OVRIDE_EXT_MSTR
	.comm	_MDIO_OPERATING_FREQUENCY,4,2   ; @MDIO_OPERATING_FREQUENCY
	.comm	_MDIO_RATE_ADJ_DIVIDENT,4,2     ; @MDIO_RATE_ADJ_DIVIDENT
	.comm	_MDIO_RATE_ADJ_DIVIDENT_SHIFT,4,2 ; @MDIO_RATE_ADJ_DIVIDENT_SHIFT
	.comm	_MDIO_RATE_ADJ_EXT_OFFSET,8,3   ; @MDIO_RATE_ADJ_EXT_OFFSET
	.comm	_MDIO_RATE_ADJ_INT_OFFSET,8,3   ; @MDIO_RATE_ADJ_INT_OFFSET
	.no_dead_strip	_mdio_mux_iproc_config
.subsections_via_symbols
