	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hip04_config_port
_hip04_config_port:                     ## @hip04_config_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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movq	%r14, 16(%rax)
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.2:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_SGMII_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	_MII_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_warn
LBB0_10:
	movq	_MII_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_SGMII_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_SGMII_SPEED_10@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rdi
	movq	_GE_PORT_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel_relaxed
	testq	%r14, %r14
	jne	LBB0_12
## %bb.13:
	movq	_GE_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_GE_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rdi
	movq	_GE_DUPLEX_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel_relaxed
	movq	_GE_MODE_CHANGE_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_GE_MODE_CHANGE_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SGMII_SPEED_1000,8,3           ## @SGMII_SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SGMII_SPEED_100,8,3            ## @SGMII_SPEED_100
	.comm	_SGMII_SPEED_10,8,3             ## @SGMII_SPEED_10
	.comm	_MII_SPEED_100,8,3              ## @MII_SPEED_100
	.comm	_MII_SPEED_10,8,3               ## @MII_SPEED_10
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not supported mode\n"

	.comm	_GE_PORT_MODE,8,3               ## @GE_PORT_MODE
	.comm	_GE_DUPLEX_FULL,8,3             ## @GE_DUPLEX_FULL
	.comm	_GE_DUPLEX_HALF,8,3             ## @GE_DUPLEX_HALF
	.comm	_GE_DUPLEX_TYPE,8,3             ## @GE_DUPLEX_TYPE
	.comm	_GE_MODE_CHANGE_EN,8,3          ## @GE_MODE_CHANGE_EN
	.comm	_GE_MODE_CHANGE_REG,8,3         ## @GE_MODE_CHANGE_REG
	.no_dead_strip	_hip04_config_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hip04_config_port
_hip04_config_port:                     ; @hip04_config_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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	stp	x20, x21, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SGMII_SPEED_10@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SGMII_SPEED_10@GOTPAGEOFF]
Lloh8:
	adrp	x10, _SGMII_SPEED_100@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SGMII_SPEED_100@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _MII_SPEED_10@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MII_SPEED_10@GOTPAGEOFF]
Lloh15:
	adrp	x10, _MII_SPEED_100@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MII_SPEED_100@GOTPAGEOFF]
LBB0_5:
	cmp	x8, x21
	csel	x8, x10, x9, eq
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_warn
Lloh19:
	adrp	x8, _MII_SPEED_10@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MII_SPEED_10@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _SGMII_SPEED_1000@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SGMII_SPEED_1000@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _GE_PORT_MODE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GE_PORT_MODE@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh26:
	adrp	x8, _GE_DUPLEX_FULL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GE_DUPLEX_FULL@GOTPAGEOFF]
Lloh28:
	adrp	x9, _GE_DUPLEX_HALF@GOTPAGE
Lloh29:
	ldr	x9, [x9, _GE_DUPLEX_HALF@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh30:
	adrp	x9, _GE_DUPLEX_TYPE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GE_DUPLEX_TYPE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh33:
	adrp	x8, _GE_MODE_CHANGE_EN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GE_MODE_CHANGE_EN@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, _GE_MODE_CHANGE_REG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GE_MODE_CHANGE_REG@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SGMII_SPEED_1000,8,3           ; @SGMII_SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SGMII_SPEED_100,8,3            ; @SGMII_SPEED_100
	.comm	_SGMII_SPEED_10,8,3             ; @SGMII_SPEED_10
	.comm	_MII_SPEED_100,8,3              ; @MII_SPEED_100
	.comm	_MII_SPEED_10,8,3               ; @MII_SPEED_10
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not supported mode\n"

	.comm	_GE_PORT_MODE,8,3               ; @GE_PORT_MODE
	.comm	_GE_DUPLEX_FULL,8,3             ; @GE_DUPLEX_FULL
	.comm	_GE_DUPLEX_HALF,8,3             ; @GE_DUPLEX_HALF
	.comm	_GE_DUPLEX_TYPE,8,3             ; @GE_DUPLEX_TYPE
	.comm	_GE_MODE_CHANGE_EN,8,3          ; @GE_MODE_CHANGE_EN
	.comm	_GE_MODE_CHANGE_REG,8,3         ; @GE_MODE_CHANGE_REG
	.no_dead_strip	_hip04_config_port
.subsections_via_symbols
