	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_port_disable
_bcm_sf2_port_disable:                  ## @bcm_sf2_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	%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
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_bcm_sf2_to_priv
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	btl	%r13d, %eax
	jae	LBB0_2
## %bb.1:
	movq	_CORE_DIS_LEARN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_core_readl
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_BIT
	jmp	LBB0_8
LBB0_2:
	cmpl	%r13d, 4(%r14)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_bcm_sf2_port_intr_disable
LBB0_4:
	testl	%ebx, 8(%r14)
	je	LBB0_7
## %bb.5:
	cmpl	$1, 12(%r14)
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bcm_sf2_gphy_enable_set
LBB0_7:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_b53_disable_port
	movq	_CORE_MEM_PSM_VDD_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_core_readl
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_P_TXQ_PSM_VDD
LBB0_8:
	movl	%eax, %esi
	orl	%r15d, %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_core_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CORE_DIS_LEARN,4,2             ## @CORE_DIS_LEARN
	.comm	_CORE_MEM_PSM_VDD_CTRL,4,2      ## @CORE_MEM_PSM_VDD_CTRL
	.no_dead_strip	_bcm_sf2_port_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_port_disable
_bcm_sf2_port_disable:                  ; @bcm_sf2_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
	bl	_bcm_sf2_to_priv
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w22, w9, w20
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _CORE_DIS_LEARN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CORE_DIS_LEARN@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_core_readl
	mov	x21, x0
	mov	x0, x20
	bl	_BIT
	b	LBB0_8
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_bcm_sf2_port_intr_disable
LBB0_4:
	ldr	w8, [x19, #8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	w1, #0
	bl	_bcm_sf2_gphy_enable_set
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_b53_disable_port
Lloh2:
	adrp	x22, _CORE_MEM_PSM_VDD_CTRL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CORE_MEM_PSM_VDD_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_core_readl
	mov	x21, x0
	mov	x0, x20
	bl	_P_TXQ_PSM_VDD
LBB0_8:
	orr	w1, w0, w21
	ldr	w2, [x22]
	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	_core_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CORE_DIS_LEARN,4,2             ; @CORE_DIS_LEARN
	.comm	_CORE_MEM_PSM_VDD_CTRL,4,2      ; @CORE_MEM_PSM_VDD_CTRL
	.no_dead_strip	_bcm_sf2_port_disable
.subsections_via_symbols
