	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_init_host_port
_cpsw_init_host_port:                   ## @cpsw_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, %r14
	movq	16(%rdi), %rbx
	movq	24(%rbx), %rsi
	addq	$4, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_soft_reset
	movl	(%rbx), %edi
	callq	_cpsw_ale_start
	movl	(%rbx), %edi
	movq	_HOST_PORT_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ALE_VLAN_AWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CPSW_ALE_VLAN_AWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_cpsw_ale_control_set
	movq	24(%rbx), %rdi
	callq	_readl
	movq	_CPSW_VLAN_AWARE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CPSW_RX_VLAN_ENCAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	24(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	cmpq	$0, 8(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_CPSW_FIFO_NORMAL_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CPSW_FIFO_DUAL_MAC_MODE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	callq	_writel
	movq	_CPDMA_TX_PRIORITY_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	callq	_writel_relaxed
	movq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movl	(%rbx), %edi
	movl	(%r15), %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
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edi
	movl	8(%r14), %esi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_cpsw_ale_add_ucast
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_ALE_PORT_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_MCAST_FWD_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpsw_ale_add_mcast             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpsw"

	.comm	_HOST_PORT_NUM,4,2              ## @HOST_PORT_NUM
	.comm	_ALE_VLAN_AWARE,4,2             ## @ALE_VLAN_AWARE
	.comm	_CPSW_ALE_VLAN_AWARE,4,2        ## @CPSW_ALE_VLAN_AWARE
	.comm	_CPSW_VLAN_AWARE,4,2            ## @CPSW_VLAN_AWARE
	.comm	_CPSW_RX_VLAN_ENCAP,4,2         ## @CPSW_RX_VLAN_ENCAP
	.comm	_CPSW_FIFO_DUAL_MAC_MODE,4,2    ## @CPSW_FIFO_DUAL_MAC_MODE
	.comm	_CPSW_FIFO_NORMAL_MODE,4,2      ## @CPSW_FIFO_NORMAL_MODE
	.comm	_CPDMA_TX_PRIORITY_MAP,4,2      ## @CPDMA_TX_PRIORITY_MAP
	.comm	_ALE_PORT_STATE,4,2             ## @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ## @ALE_PORT_STATE_FORWARD
	.comm	_ALE_PORT_HOST,4,2              ## @ALE_PORT_HOST
	.comm	_ALE_MCAST_FWD_2,4,2            ## @ALE_MCAST_FWD_2
	.no_dead_strip	_cpsw_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 cpsw_init_host_port
_cpsw_init_host_port:                   ; @cpsw_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
	ldr	x20, [x0, #16]
	ldr	x8, [x20, #24]
	add	x1, x8, #4
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_soft_reset
	ldr	w0, [x20]
	bl	_cpsw_ale_start
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _HOST_PORT_NUM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HOST_PORT_NUM@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _ALE_VLAN_AWARE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ALE_VLAN_AWARE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _CPSW_ALE_VLAN_AWARE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CPSW_ALE_VLAN_AWARE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	bl	_cpsw_ale_control_set
	ldr	x0, [x20, #24]
	bl	_readl
Lloh10:
	adrp	x8, _CPSW_VLAN_AWARE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CPSW_VLAN_AWARE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _CPSW_RX_VLAN_ENCAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CPSW_RX_VLAN_ENCAP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x1, [x20, #24]
	bl	_writel
Lloh16:
	adrp	x8, _CPSW_FIFO_DUAL_MAC_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CPSW_FIFO_DUAL_MAC_MODE@GOTPAGEOFF]
Lloh18:
	adrp	x9, _CPSW_FIFO_NORMAL_MODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CPSW_FIFO_NORMAL_MODE@GOTPAGEOFF]
	ldp	x10, x11, [x20, #8]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	add	x1, x11, #8
	bl	_writel
Lloh20:
	adrp	x8, _CPDMA_TX_PRIORITY_MAP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CPDMA_TX_PRIORITY_MAP@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	add	x1, x8, #4
	bl	_writel_relaxed
	ldr	x1, [x20, #16]
	mov	w0, #0
	bl	_writel_relaxed
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh23:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _ALE_PORT_STATE_FORWARD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ALE_PORT_STATE_FORWARD@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	bl	_cpsw_ale_control_set
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	ldr	w2, [x21]
	mov	w3, #0
	mov	w4, #0
	bl	_cpsw_ale_add_ucast
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _ALE_PORT_HOST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ALE_PORT_HOST@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _ALE_MCAST_FWD_2@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ALE_MCAST_FWD_2@GOTPAGEOFF]
Lloh34:
	ldr	w5, [x8]
	mov	w3, #0
	mov	w4, #0
	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_add_mcast
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpsw"

	.comm	_HOST_PORT_NUM,4,2              ; @HOST_PORT_NUM
	.comm	_ALE_VLAN_AWARE,4,2             ; @ALE_VLAN_AWARE
	.comm	_CPSW_ALE_VLAN_AWARE,4,2        ; @CPSW_ALE_VLAN_AWARE
	.comm	_CPSW_VLAN_AWARE,4,2            ; @CPSW_VLAN_AWARE
	.comm	_CPSW_RX_VLAN_ENCAP,4,2         ; @CPSW_RX_VLAN_ENCAP
	.comm	_CPSW_FIFO_DUAL_MAC_MODE,4,2    ; @CPSW_FIFO_DUAL_MAC_MODE
	.comm	_CPSW_FIFO_NORMAL_MODE,4,2      ; @CPSW_FIFO_NORMAL_MODE
	.comm	_CPDMA_TX_PRIORITY_MAP,4,2      ; @CPDMA_TX_PRIORITY_MAP
	.comm	_ALE_PORT_STATE,4,2             ; @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ; @ALE_PORT_STATE_FORWARD
	.comm	_ALE_PORT_HOST,4,2              ; @ALE_PORT_HOST
	.comm	_ALE_MCAST_FWD_2,4,2            ; @ALE_MCAST_FWD_2
	.no_dead_strip	_cpsw_init_host_port
.subsections_via_symbols
