	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_port_disable
_mt7530_port_disable:                   ## @mt7530_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	callq	_dsa_is_user_port
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movl	$0, (%rax,%rcx,4)
	movl	%r14d, %edi
	callq	_MT7530_PCR_P
	movq	_PCR_MATRIX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCR_MATRIX_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt7530_rmw
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_mt7530_port_set_status
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCR_MATRIX_MASK,4,2            ## @PCR_MATRIX_MASK
	.comm	_PCR_MATRIX_CLR,4,2             ## @PCR_MATRIX_CLR
	.no_dead_strip	_mt7530_port_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7530_port_disable
_mt7530_port_disable:                   ; @mt7530_port_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0]
	bl	_dsa_is_user_port
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	str	wzr, [x8, w20, sxtw #2]
	mov	x0, x20
	bl	_MT7530_PCR_P
	mov	x1, x0
Lloh0:
	adrp	x8, _PCR_MATRIX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCR_MATRIX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _PCR_MATRIX_CLR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCR_MATRIX_CLR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_mt7530_rmw
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_mt7530_port_set_status
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCR_MATRIX_MASK,4,2            ; @PCR_MATRIX_MASK
	.comm	_PCR_MATRIX_CLR,4,2             ; @PCR_MATRIX_CLR
	.no_dead_strip	_mt7530_port_disable
.subsections_via_symbols
