	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_netdev_get_ecmd
_smc_netdev_get_ecmd:                   ## @smc_netdev_get_ecmd
	.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	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_AUI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	%rsi, %r14
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%rdi), %ebx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movq	_CFG_AUI_SELECT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PORT_AUI@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_MGMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rbx, %rax
	movq	%rax, 16(%r14)
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_TCR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inw
	movq	_TCR_FDUPLX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	(%r14), %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ethtool_convert_legacy_u32_to_link_mode ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_AUI,4,2              ## @SUPPORTED_AUI
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_CONFIG,8,3                     ## @CONFIG
	.comm	_CFG_AUI_SELECT,4,2             ## @CFG_AUI_SELECT
	.comm	_PORT_AUI,4,2                   ## @PORT_AUI
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_MGMT,8,3                       ## @MGMT
	.comm	_TCR,8,3                        ## @TCR
	.comm	_TCR_FDUPLX,4,2                 ## @TCR_FDUPLX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_smc_netdev_get_ecmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_netdev_get_ecmd
_smc_netdev_get_ecmd:                   ; @smc_netdev_get_ecmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_AUI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_AUI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	w0, #1
	bl	_SMC_SELECT_BANK
Lloh12:
	adrp	x8, _CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x0, x8, x21
	bl	_inw
Lloh15:
	adrp	x8, _CFG_AUI_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFG_AUI_SELECT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PORT_AUI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PORT_AUI@GOTPAGEOFF]
Lloh20:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh25:
	adrp	x8, _MGMT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MGMT@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x8, x8, x21
	str	x8, [x19, #16]
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh28:
	adrp	x8, _TCR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x0, x8, x21
	bl	_inw
Lloh31:
	adrp	x8, _TCR_FDUPLX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TCR_FDUPLX@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh36:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh37:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ethtool_convert_legacy_u32_to_link_mode
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_AUI,4,2              ; @SUPPORTED_AUI
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_CONFIG,8,3                     ; @CONFIG
	.comm	_CFG_AUI_SELECT,4,2             ; @CFG_AUI_SELECT
	.comm	_PORT_AUI,4,2                   ; @PORT_AUI
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_MGMT,8,3                       ; @MGMT
	.comm	_TCR,8,3                        ; @TCR
	.comm	_TCR_FDUPLX,4,2                 ; @TCR_FDUPLX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_smc_netdev_get_ecmd
.subsections_via_symbols
