	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_1g_ports
_count_1g_ports:                        ## @count_1g_ports
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$32, (%rsi)
	movq	(%rdi), %rax
	movq	_PHY_TYPE_MII@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %rdx
	movq	(%rdx,%rcx,8), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rsi)
	movl	(%rax,%rcx,4), %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_MII,8,3               ## @PHY_TYPE_MII
	.no_dead_strip	_count_1g_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_1g_ports
_count_1g_ports:                        ; @count_1g_ports
	.cfi_startproc
; %bb.0:
	mov	w8, #32
	str	w8, [x1]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_TYPE_MII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TYPE_MII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w10, [x8, x9, lsl #2]
	cbz	w10, LBB0_2
; %bb.1:
	ldr	x10, [x0, #8]
	ldr	x10, [x10, x9, lsl #3]
	ldr	w10, [x10]
	str	w10, [x1]
	ldr	w0, [x8, x9, lsl #2]
	ret
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_MII,8,3               ; @PHY_TYPE_MII
	.no_dead_strip	_count_1g_ports
.subsections_via_symbols
