	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_set_port_disable
_esw_set_port_disable:                  ## @esw_set_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, %r15d
	movq	%rdi, %r14
	callq	_esw_get_port_disable
	movl	%eax, %r12d
	andl	%r15d, %eax
	movq	_RT305X_ESW_REG_POC0@GOTPCREL(%rip), %rsi
	movq	_RT305X_ESW_POC0_DIS_PORT_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RT305X_ESW_POC0_DIS_PORT_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	(%rsi), %esi
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_esw_rmw
	movq	_RT305X_ESW_NUM_LEDS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.1:
	xorl	%r15d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rt305x_mii_write
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	btl	%ebx, %r12d
	jae	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BMCR_PDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_6
LBB0_8:
	movq	_RT305X_ESW_POC0_DIS_PORT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RT305X_ESW_POC0_DIS_PORT_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_RT305X_ESW_REG_POC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	%cl, %r15d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_esw_rmw                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RT305X_ESW_REG_POC0,4,2        ## @RT305X_ESW_REG_POC0
	.comm	_RT305X_ESW_POC0_DIS_PORT_M,4,2 ## @RT305X_ESW_POC0_DIS_PORT_M
	.comm	_RT305X_ESW_POC0_DIS_PORT_S,4,2 ## @RT305X_ESW_POC0_DIS_PORT_S
	.comm	_RT305X_ESW_NUM_LEDS,4,2        ## @RT305X_ESW_NUM_LEDS
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_PDOWN,4,2                 ## @BMCR_PDOWN
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.no_dead_strip	_esw_set_port_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_set_port_disable
_esw_set_port_disable:                  ; @esw_set_port_disable
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_esw_get_port_disable
	mov	x22, x0
	and	w8, w0, w20
Lloh0:
	adrp	x9, _RT305X_ESW_REG_POC0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RT305X_ESW_REG_POC0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _RT305X_ESW_POC0_DIS_PORT_M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RT305X_ESW_POC0_DIS_PORT_M@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _RT305X_ESW_POC0_DIS_PORT_S@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RT305X_ESW_POC0_DIS_PORT_S@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w2, w9, w10
	lsl	w3, w8, w10
	mov	x0, x19
	bl	_esw_rmw
Lloh9:
	adrp	x26, _RT305X_ESW_NUM_LEDS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _RT305X_ESW_NUM_LEDS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w21, #0
	eor	w22, w22, w20
	mov	w27, #1
Lloh11:
	adrp	x28, _MII_BMCR@GOTPAGE
Lloh12:
	ldr	x28, [x28, _MII_BMCR@GOTPAGEOFF]
Lloh13:
	adrp	x25, _BMCR_ANRESTART@GOTPAGE
Lloh14:
	ldr	x25, [x25, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh15:
	adrp	x23, _BMCR_SPEED100@GOTPAGE
Lloh16:
	ldr	x23, [x23, _BMCR_SPEED100@GOTPAGEOFF]
Lloh17:
	adrp	x24, _BMCR_PDOWN@GOTPAGE
Lloh18:
	ldr	x24, [x24, _BMCR_PDOWN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w3, w8, w9
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x21
	bl	_rt305x_mii_write
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	w8, [x26]
	cmp	w21, w8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w27, w21
	tst	w8, w22
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w8, w20
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x24]
	b	LBB0_3
LBB0_8:
Lloh25:
	adrp	x8, _RT305X_ESW_REG_POC0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RT305X_ESW_REG_POC0@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _RT305X_ESW_POC0_DIS_PORT_M@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RT305X_ESW_POC0_DIS_PORT_M@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _RT305X_ESW_POC0_DIS_PORT_S@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RT305X_ESW_POC0_DIS_PORT_S@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	lsl	w3, w20, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_esw_rmw
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RT305X_ESW_REG_POC0,4,2        ; @RT305X_ESW_REG_POC0
	.comm	_RT305X_ESW_POC0_DIS_PORT_M,4,2 ; @RT305X_ESW_POC0_DIS_PORT_M
	.comm	_RT305X_ESW_POC0_DIS_PORT_S,4,2 ; @RT305X_ESW_POC0_DIS_PORT_S
	.comm	_RT305X_ESW_NUM_LEDS,4,2        ; @RT305X_ESW_NUM_LEDS
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_PDOWN,4,2                 ; @BMCR_PDOWN
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.no_dead_strip	_esw_set_port_disable
.subsections_via_symbols
