	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s9k_config
_s9k_config:                            ## @s9k_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movslq	(%rbx), %rcx
	xorl	%r14d, %r14d
	cmpq	$-1, %rcx
	je	LBB0_8
## %bb.1:
	cmpl	(%r15), %ecx
	je	LBB0_8
## %bb.2:
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	cmpl	$3, %ecx
	jl	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ecx, (%r15)
	movq	_if_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
	movq	%r15, %rdi
	callq	_smc_reset
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_MII_SELECT,4,2             ## @CFG_MII_SELECT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"switched to %s port\n"

	.comm	_if_names,8,3                   ## @if_names
	.no_dead_strip	_s9k_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s9k_config
_s9k_config:                            ; @s9k_config
	.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
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _CFG_MII_SELECT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CFG_MII_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	sxtw	x9, w8
	str	w8, [x19]
Lloh7:
	adrp	x8, _if_names@GOTPAGE
Lloh8:
	ldr	x8, [x8, _if_names@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w2, [x8, x9, lsl #2]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_smc_reset
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_MII_SELECT,4,2             ; @CFG_MII_SELECT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"switched to %s port\n"

	.comm	_if_names,8,3                   ; @if_names
	.no_dead_strip	_s9k_config
.subsections_via_symbols
