	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_AUI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%rdi), %ebx
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rsi)
	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, 24(%r14)
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_MGMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rbx, %rax
	movq	%rax, 8(%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, 4(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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	_XCVR_INTERNAL,4,2              ## @XCVR_INTERNAL
	.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	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	x19, x1
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SUPPORTED_AUI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SUPPORTED_AUI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
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	w8, w8, w9
	str	w8, [x1]
	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, x20
	bl	_inw
Lloh15:
	adrp	x8, _CFG_AUI_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFG_AUI_SELECT@GOTPAGEOFF]
Lloh17:
	adrp	x9, _PORT_AUI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PORT_AUI@GOTPAGEOFF]
Lloh19:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh20:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _XCVR_INTERNAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _XCVR_INTERNAL@GOTPAGEOFF]
	str	w8, [x19, #24]
Lloh24:
	ldr	w8, [x9]
Lloh25:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh28:
	adrp	x8, _MGMT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MGMT@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x8, x8, x20
	str	x8, [x19, #8]
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh31:
	adrp	x8, _TCR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_inw
Lloh34:
	adrp	x8, _TCR_FDUPLX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TCR_FDUPLX@GOTPAGEOFF]
Lloh36:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh38:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh39:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh40
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.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	_XCVR_INTERNAL,4,2              ; @XCVR_INTERNAL
	.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
