	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_port_disable
_gswip_port_disable:                    ## @gswip_port_disable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_dsa_is_user_port
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dsa_is_cpu_port
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_GSWIP_MDIO_PHY_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GSWIP_MDIO_PHY_LINK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_GSWIP_MDIO_PHYp
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_gswip_mdio_mask
	movl	%r15d, %edi
	callq	_BIT
	movq	_GSWIP_MDIO_MDC_CFG0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_gswip_mdio_mask
LBB0_3:
	movq	_GSWIP_FDMA_PCTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_GSWIP_FDMA_PCTRLp
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_gswip_switch_mask
	movq	_GSWIP_SDMA_PCTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_GSWIP_SDMA_PCTRLp
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gswip_switch_mask              ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSWIP_MDIO_PHY_LINK_DOWN,4,2   ## @GSWIP_MDIO_PHY_LINK_DOWN
	.comm	_GSWIP_MDIO_PHY_LINK_MASK,4,2   ## @GSWIP_MDIO_PHY_LINK_MASK
	.comm	_GSWIP_MDIO_MDC_CFG0,4,2        ## @GSWIP_MDIO_MDC_CFG0
	.comm	_GSWIP_FDMA_PCTRL_EN,4,2        ## @GSWIP_FDMA_PCTRL_EN
	.comm	_GSWIP_SDMA_PCTRL_EN,4,2        ## @GSWIP_SDMA_PCTRL_EN
	.no_dead_strip	_gswip_port_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_port_disable
_gswip_port_disable:                    ; @gswip_port_disable
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
	bl	_dsa_is_user_port
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_dsa_is_cpu_port
	cbnz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _GSWIP_MDIO_PHY_LINK_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSWIP_MDIO_PHY_LINK_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _GSWIP_MDIO_PHY_LINK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSWIP_MDIO_PHY_LINK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_GSWIP_MDIO_PHYp
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_gswip_mdio_mask
	mov	x0, x20
	bl	_BIT
	mov	x1, x0
Lloh6:
	adrp	x8, _GSWIP_MDIO_MDC_CFG0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSWIP_MDIO_MDC_CFG0@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gswip_mdio_mask
LBB0_3:
Lloh9:
	adrp	x8, _GSWIP_FDMA_PCTRL_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GSWIP_FDMA_PCTRL_EN@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_GSWIP_FDMA_PCTRLp
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_gswip_switch_mask
Lloh12:
	adrp	x8, _GSWIP_SDMA_PCTRL_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSWIP_SDMA_PCTRL_EN@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_GSWIP_SDMA_PCTRLp
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	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	_gswip_switch_mask
LBB0_4:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GSWIP_MDIO_PHY_LINK_DOWN,4,2   ; @GSWIP_MDIO_PHY_LINK_DOWN
	.comm	_GSWIP_MDIO_PHY_LINK_MASK,4,2   ; @GSWIP_MDIO_PHY_LINK_MASK
	.comm	_GSWIP_MDIO_MDC_CFG0,4,2        ; @GSWIP_MDIO_MDC_CFG0
	.comm	_GSWIP_FDMA_PCTRL_EN,4,2        ; @GSWIP_FDMA_PCTRL_EN
	.comm	_GSWIP_SDMA_PCTRL_EN,4,2        ; @GSWIP_SDMA_PCTRL_EN
	.no_dead_strip	_gswip_port_disable
.subsections_via_symbols
