	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_cost
_port_cost:                             ## @port_cost
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	$0, -16(%rbp)
	movq	_ETHTOOL_GSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -12(%rbp)
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-16(%rbp), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.4:
	cltq
	leaq	L_switch.table.port_cost(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_8
LBB0_5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	movl	$2500, %ecx                     ## imm = 0x9C4
	movl	$100, %eax
	cmovel	%ecx, %eax
	jmp	LBB0_8
LBB0_6:
	movl	$7, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GSET,4,2               ## @ETHTOOL_GSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lec"

L_.str.1:                               ## @.str.1
	.asciz	"plip"

	.no_dead_strip	_port_cost
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.port_cost
L_switch.table.port_cost:
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	19                              ## 0x13
	.long	100                             ## 0x64

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_cost
_port_cost:                             ; @port_cost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _ETHTOOL_GSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETHTOOL_GSET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	wzr, w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w8, [sp, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, l_switch.table.port_cost@PAGE
Lloh4:
	add	x9, x9, l_switch.table.port_cost@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	mov	w8, #100
	mov	w9, #2500
	cmp	w0, #0
	csel	w0, w9, w8, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #7
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GSET,4,2               ; @ETHTOOL_GSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lec"

l_.str.1:                               ; @.str.1
	.asciz	"plip"

	.no_dead_strip	_port_cost
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.port_cost
l_switch.table.port_cost:
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	19                              ; 0x13
	.long	100                             ; 0x64

.subsections_via_symbols
