	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function de4x5_switch_mac_port
_de4x5_switch_mac_port:                 ## @de4x5_switch_mac_port
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_DE4X5_OMR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_inl
	movq	_OMR_PS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_OMR_HBD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%ebx, %edx
	movq	_OMR_TTM@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_OMR_PCS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_OMR_SCR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_OMR_FDX@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	notl	%edx
	andl	%eax, %edx
	orl	(%r15), %edx
	andl	%edx, %ebx
	cmovnel	%ecx, %ebx
	orl	%edx, %ebx
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_outl
	movl	4(%r15), %eax
	movq	_DC21140@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	24(%r15), %edi
	movq	%r14, %rsi
	callq	_gep_wr
	movl	20(%r15), %edi
	movq	%r14, %rsi
	callq	_gep_wr
	jmp	LBB0_4
LBB0_2:
	andl	$-256, %eax
	movq	_DC2114x@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	16(%r15), %esi
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	movq	%r14, %rdi
	callq	_reset_init_sia
LBB0_4:
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_outl
	movq	_DE4X5_MFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inl
	movslq	%ebx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STOP_DE4X5,4,2                 ## @STOP_DE4X5
	.comm	_DE4X5_OMR,4,2                  ## @DE4X5_OMR
	.comm	_OMR_PS,4,2                     ## @OMR_PS
	.comm	_OMR_HBD,4,2                    ## @OMR_HBD
	.comm	_OMR_TTM,4,2                    ## @OMR_TTM
	.comm	_OMR_PCS,4,2                    ## @OMR_PCS
	.comm	_OMR_SCR,4,2                    ## @OMR_SCR
	.comm	_OMR_FDX,4,2                    ## @OMR_FDX
	.comm	_RESET_DE4X5,4,2                ## @RESET_DE4X5
	.comm	_DC21140,4,2                    ## @DC21140
	.comm	_DC2114x,4,2                    ## @DC2114x
	.comm	_DE4X5_MFC,4,2                  ## @DE4X5_MFC
	.no_dead_strip	_de4x5_switch_mac_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function de4x5_switch_mac_port
_de4x5_switch_mac_port:                 ; @de4x5_switch_mac_port
	.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, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _DE4X5_OMR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DE4X5_OMR@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_inl
Lloh2:
	adrp	x8, _OMR_PS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMR_PS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _OMR_HBD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OMR_HBD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
Lloh8:
	adrp	x11, _OMR_TTM@GOTPAGE
Lloh9:
	ldr	x11, [x11, _OMR_TTM@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	adrp	x12, _OMR_PCS@GOTPAGE
Lloh12:
	ldr	x12, [x12, _OMR_PCS@GOTPAGEOFF]
	orr	w10, w10, w11
Lloh13:
	ldr	w11, [x12]
	orr	w10, w10, w11
Lloh14:
	adrp	x11, _OMR_SCR@GOTPAGE
Lloh15:
	ldr	x11, [x11, _OMR_SCR@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh17:
	adrp	x11, _OMR_FDX@GOTPAGE
Lloh18:
	ldr	x11, [x11, _OMR_FDX@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w10, w11
	bic	w10, w0, w10
	ldr	w11, [x20]
	orr	w10, w10, w11
	tst	w10, w8
	csel	w8, wzr, w9, eq
	orr	w21, w8, w10
	ldr	w1, [x22]
	mov	x0, x21
	bl	_outl
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x9, _DC21140@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DC21140@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_gep_wr
	ldr	w0, [x20, #20]
	mov	x1, x19
	bl	_gep_wr
	b	LBB0_4
LBB0_2:
	and	w8, w8, #0xffffff00
Lloh23:
	adrp	x9, _DC2114x@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DC2114x@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldp	w2, w1, [x20, #12]
	ldr	w3, [x20, #8]
	mov	x0, x19
	bl	_reset_init_sia
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_outl
Lloh26:
	adrp	x8, _DE4X5_MFC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DE4X5_MFC@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_inl
	sxtw	x0, w21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_STOP_DE4X5,4,2                 ; @STOP_DE4X5
	.comm	_DE4X5_OMR,4,2                  ; @DE4X5_OMR
	.comm	_OMR_PS,4,2                     ; @OMR_PS
	.comm	_OMR_HBD,4,2                    ; @OMR_HBD
	.comm	_OMR_TTM,4,2                    ; @OMR_TTM
	.comm	_OMR_PCS,4,2                    ; @OMR_PCS
	.comm	_OMR_SCR,4,2                    ; @OMR_SCR
	.comm	_OMR_FDX,4,2                    ; @OMR_FDX
	.comm	_RESET_DE4X5,4,2                ; @RESET_DE4X5
	.comm	_DC21140,4,2                    ; @DC21140
	.comm	_DC2114x,4,2                    ; @DC2114x
	.comm	_DE4X5_MFC,4,2                  ; @DE4X5_MFC
	.no_dead_strip	_de4x5_switch_mac_port
.subsections_via_symbols
