	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gbe_init_host_port
_gbe_init_host_port:                    ## @gbe_init_host_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IS_SS_ID_NU
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_SS_ID_XGBE
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_HOST_TX_PRI_MAP_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_host_port_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tx_pri_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_GBE_REG_ADDR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
LBB0_3:
	movq	_NETCP_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_host_port_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rx_maxlen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_GBE_REG_ADDR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
	movl	8(%rbx), %edi
	callq	_cpsw_ale_start
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rbx)
	sete	%cl
	movl	8(%rbx), %edi
	movq	_ALE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_cpsw_ale_control_set
	movl	8(%rbx), %edi
	movq	_ALE_NO_PORT_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_cpsw_ale_control_set
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	movq	_ALE_PORT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_PORT_STATE_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_cpsw_ale_control_set
	movl	8(%rbx), %r14d
	movq	_ALE_PORT_UNKNOWN_VLAN_MEMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_GBE_PORT_MASK
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_cpsw_ale_control_set
	movl	8(%rbx), %r14d
	movq	_ALE_PORT_UNKNOWN_MCAST_FLOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	decq	%rdi
	callq	_GBE_PORT_MASK
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_cpsw_ale_control_set
	movl	8(%rbx), %r14d
	movq	_ALE_PORT_UNKNOWN_REG_MCAST_FLOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_GBE_PORT_MASK
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_cpsw_ale_control_set
	movl	8(%rbx), %r14d
	movq	_ALE_PORT_UNTAGGED_EGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_GBE_PORT_MASK
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpsw_ale_control_set           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_TX_PRI_MAP_DEFAULT,4,2    ## @HOST_TX_PRI_MAP_DEFAULT
	.comm	_host_port_regs,4,2             ## @host_port_regs
	.comm	_tx_pri_map,4,2                 ## @tx_pri_map
	.comm	_NETCP_MAX_FRAME_SIZE,4,2       ## @NETCP_MAX_FRAME_SIZE
	.comm	_rx_maxlen,4,2                  ## @rx_maxlen
	.comm	_ALE_BYPASS,4,2                 ## @ALE_BYPASS
	.comm	_ALE_NO_PORT_VLAN,4,2           ## @ALE_NO_PORT_VLAN
	.comm	_ALE_PORT_STATE,4,2             ## @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ## @ALE_PORT_STATE_FORWARD
	.comm	_ALE_PORT_UNKNOWN_VLAN_MEMBER,4,2 ## @ALE_PORT_UNKNOWN_VLAN_MEMBER
	.comm	_ALE_PORT_UNKNOWN_MCAST_FLOOD,4,2 ## @ALE_PORT_UNKNOWN_MCAST_FLOOD
	.comm	_ALE_PORT_UNKNOWN_REG_MCAST_FLOOD,4,2 ## @ALE_PORT_UNKNOWN_REG_MCAST_FLOOD
	.comm	_ALE_PORT_UNTAGGED_EGRESS,4,2   ## @ALE_PORT_UNTAGGED_EGRESS
	.no_dead_strip	_gbe_init_host_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gbe_init_host_port
_gbe_init_host_port:                    ; @gbe_init_host_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	_IS_SS_ID_NU
Lloh0:
	adrp	x21, _host_port_regs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _host_port_regs@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IS_SS_ID_XGBE
	cbz	x0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _HOST_TX_PRI_MAP_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HOST_TX_PRI_MAP_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _tx_pri_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tx_pri_map@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_REG_ADDR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
LBB0_3:
Lloh8:
	adrp	x8, _NETCP_MAX_FRAME_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETCP_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _rx_maxlen@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rx_maxlen@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_REG_ADDR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19, #8]
	bl	_cpsw_ale_start
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w3, eq
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x8, _ALE_BYPASS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALE_BYPASS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_cpsw_ale_control_set
	ldr	w0, [x19, #8]
Lloh17:
	adrp	x8, _ALE_NO_PORT_VLAN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ALE_NO_PORT_VLAN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #1
	bl	_cpsw_ale_control_set
	ldp	w0, w1, [x19, #8]
Lloh20:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _ALE_PORT_STATE_FORWARD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ALE_PORT_STATE_FORWARD@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	bl	_cpsw_ale_control_set
	ldr	w20, [x19, #8]
Lloh26:
	adrp	x8, _ALE_PORT_UNKNOWN_VLAN_MEMBER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ALE_PORT_UNKNOWN_VLAN_MEMBER@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
	ldr	x0, [x19]
	bl	_GBE_PORT_MASK
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_cpsw_ale_control_set
	ldr	w20, [x19, #8]
Lloh29:
	adrp	x8, _ALE_PORT_UNKNOWN_MCAST_FLOOD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ALE_PORT_UNKNOWN_MCAST_FLOOD@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	ldr	x8, [x19]
	sub	x0, x8, #1
	bl	_GBE_PORT_MASK
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_cpsw_ale_control_set
	ldr	w20, [x19, #8]
Lloh32:
	adrp	x8, _ALE_PORT_UNKNOWN_REG_MCAST_FLOOD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ALE_PORT_UNKNOWN_REG_MCAST_FLOOD@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
	ldr	x0, [x19]
	bl	_GBE_PORT_MASK
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_cpsw_ale_control_set
	ldr	w20, [x19, #8]
Lloh35:
	adrp	x8, _ALE_PORT_UNTAGGED_EGRESS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ALE_PORT_UNTAGGED_EGRESS@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	ldr	x0, [x19]
	bl	_GBE_PORT_MASK
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	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	_cpsw_ale_control_set
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_TX_PRI_MAP_DEFAULT,4,2    ; @HOST_TX_PRI_MAP_DEFAULT
	.comm	_host_port_regs,4,2             ; @host_port_regs
	.comm	_tx_pri_map,4,2                 ; @tx_pri_map
	.comm	_NETCP_MAX_FRAME_SIZE,4,2       ; @NETCP_MAX_FRAME_SIZE
	.comm	_rx_maxlen,4,2                  ; @rx_maxlen
	.comm	_ALE_BYPASS,4,2                 ; @ALE_BYPASS
	.comm	_ALE_NO_PORT_VLAN,4,2           ; @ALE_NO_PORT_VLAN
	.comm	_ALE_PORT_STATE,4,2             ; @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ; @ALE_PORT_STATE_FORWARD
	.comm	_ALE_PORT_UNKNOWN_VLAN_MEMBER,4,2 ; @ALE_PORT_UNKNOWN_VLAN_MEMBER
	.comm	_ALE_PORT_UNKNOWN_MCAST_FLOOD,4,2 ; @ALE_PORT_UNKNOWN_MCAST_FLOOD
	.comm	_ALE_PORT_UNKNOWN_REG_MCAST_FLOOD,4,2 ; @ALE_PORT_UNKNOWN_REG_MCAST_FLOOD
	.comm	_ALE_PORT_UNTAGGED_EGRESS,4,2   ; @ALE_PORT_UNTAGGED_EGRESS
	.no_dead_strip	_gbe_init_host_port
.subsections_via_symbols
