	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_mux_iproc_switch_fn
_mdio_mux_iproc_switch_fn:              ## @mdio_mux_iproc_switch_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EXT_BUS_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	cmpl	%esi, %eax
	setg	%dil
	cmovgl	%ecx, %eax
	movq	_MDIO_PARAM_INTERNAL_SEL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	subl	%eax, %esi
	movq	_MDIO_PARAM_BUS_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%esi, %edi
	movq	_MDIO_PARAM_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdx), %rsi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_BUS_START_ADDR,4,2         ## @EXT_BUS_START_ADDR
	.comm	_MDIO_PARAM_INTERNAL_SEL,4,2    ## @MDIO_PARAM_INTERNAL_SEL
	.comm	_MDIO_PARAM_BUS_ID,4,2          ## @MDIO_PARAM_BUS_ID
	.comm	_MDIO_PARAM_OFFSET,8,3          ## @MDIO_PARAM_OFFSET
	.no_dead_strip	_mdio_mux_iproc_switch_fn
.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_switch_fn
_mdio_mux_iproc_switch_fn:              ; @mdio_mux_iproc_switch_fn
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _EXT_BUS_START_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_BUS_START_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	csel	w8, wzr, w8, gt
	cset	w9, gt
	sub	w8, w1, w8
Lloh3:
	adrp	x10, _MDIO_PARAM_INTERNAL_SEL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MDIO_PARAM_INTERNAL_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh6:
	adrp	x10, _MDIO_PARAM_BUS_ID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MDIO_PARAM_BUS_ID@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w0, w8, w9
	ldr	x8, [x2]
Lloh9:
	adrp	x9, _MDIO_PARAM_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MDIO_PARAM_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_BUS_START_ADDR,4,2         ; @EXT_BUS_START_ADDR
	.comm	_MDIO_PARAM_INTERNAL_SEL,4,2    ; @MDIO_PARAM_INTERNAL_SEL
	.comm	_MDIO_PARAM_BUS_ID,4,2          ; @MDIO_PARAM_BUS_ID
	.comm	_MDIO_PARAM_OFFSET,8,3          ; @MDIO_PARAM_OFFSET
	.no_dead_strip	_mdio_mux_iproc_switch_fn
.subsections_via_symbols
