	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_ale_create                ## -- Begin function cpsw_ale_create
	.p2align	4, 0x90
_cpsw_ale_create:                       ## @cpsw_ale_create
	.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, %rbx
	movl	24(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	32(%rbx), %rdi
	movq	%rdi, 40(%r15)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	%xmm1, 24(%r15)
	movups	%xmm0, 8(%r15)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	8(%r15), %eax
	movl	%eax, (%r15)
	movq	_ALE_IDVER@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movl	12(%r15), %esi
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	movl	$255, 12(%r15)
	movl	$255, %esi
LBB0_3:
	movl	%r14d, %edi
	callq	_ALE_VERSION_MAJOR
	movl	%eax, %ebx
	shll	$8, %ebx
	movl	%r14d, %edi
	callq	_ALE_VERSION_MINOR
	orl	%ebx, %eax
	movl	%eax, 4(%r15)
	movl	12(%r15), %esi
	movl	32(%r15), %r12d
	movl	%r14d, %edi
	callq	_ALE_VERSION_MAJOR
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ALE_VERSION_MINOR
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movl	16(%r15), %edx
	testl	%edx, %edx
	jne	LBB0_8
## %bb.4:
	movq	_ALE_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %edx
	movq	_ALE_STATUS_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	jne	LBB0_5
## %bb.6:
	movq	_ALE_TABLE_SIZE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_7
LBB0_5:
	movq	_ALE_TABLE_SIZE_MULTIPLIER@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
LBB0_7:
	movl	%edx, 16(%r15)
LBB0_8:
	movl	32(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	20(%r15), %edi
	movl	%edi, 56(%r15)
	callq	_order_base_2
	movl	%eax, 52(%r15)
	movl	20(%r15), %eax
	movl	%eax, 48(%r15)
	cmpq	$0, 24(%r15)
	je	LBB0_10
## %bb.9:
	movq	_ale_controls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ALE_PORT_UNKNOWN_VLAN_MEMBER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, 16(%rcx,%rdx,8)
	movq	_ALE_UNKNOWNVLAN_MEMBER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%rcx,%rdx,8)
	movq	_ALE_PORT_UNKNOWN_MCAST_FLOOD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, 16(%rcx,%rsi,8)
	movq	$0, 8(%rcx,%rsi,8)
	movq	_ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%esi, (%rcx,%rdx,8)
	movq	_ALE_PORT_UNKNOWN_REG_MCAST_FLOOD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, 16(%rcx,%rsi,8)
	movq	$0, 8(%rcx,%rsi,8)
	movq	_ALE_UNKNOWNVLAN_REG_MCAST_FLOOD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%esi, (%rcx,%rdx,8)
	movq	_ALE_PORT_UNTAGGED_EGRESS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, 16(%rcx,%rsi,8)
	movq	$0, 8(%rcx,%rsi,8)
	movq	_ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rcx,%rdx,8)
LBB0_10:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ALE_IDVER,8,3                  ## @ALE_IDVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initialized cpsw ale version %d.%d\n"

	.comm	_ALE_STATUS,8,3                 ## @ALE_STATUS
	.comm	_ALE_STATUS_SIZE_MASK,4,2       ## @ALE_STATUS_SIZE_MASK
	.comm	_ALE_TABLE_SIZE_DEFAULT,4,2     ## @ALE_TABLE_SIZE_DEFAULT
	.comm	_ALE_TABLE_SIZE_MULTIPLIER,4,2  ## @ALE_TABLE_SIZE_MULTIPLIER
L_.str.1:                               ## @.str.1
	.asciz	"ALE Table size %ld\n"

	.comm	_ale_controls,8,3               ## @ale_controls
	.comm	_ALE_PORT_UNKNOWN_VLAN_MEMBER,8,3 ## @ALE_PORT_UNKNOWN_VLAN_MEMBER
	.comm	_ALE_UNKNOWNVLAN_MEMBER,4,2     ## @ALE_UNKNOWNVLAN_MEMBER
	.comm	_ALE_PORT_UNKNOWN_MCAST_FLOOD,8,3 ## @ALE_PORT_UNKNOWN_MCAST_FLOOD
	.comm	_ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD,4,2 ## @ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD
	.comm	_ALE_PORT_UNKNOWN_REG_MCAST_FLOOD,8,3 ## @ALE_PORT_UNKNOWN_REG_MCAST_FLOOD
	.comm	_ALE_UNKNOWNVLAN_REG_MCAST_FLOOD,4,2 ## @ALE_UNKNOWNVLAN_REG_MCAST_FLOOD
	.comm	_ALE_PORT_UNTAGGED_EGRESS,8,3   ## @ALE_PORT_UNTAGGED_EGRESS
	.comm	_ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS,4,2 ## @ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_ale_create                ; -- Begin function cpsw_ale_create
	.p2align	2
_cpsw_ale_create:                       ; @cpsw_ale_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x20, #32]
	ldp	q1, q0, [x20]
	stur	q1, [x19, #8]
	str	x8, [x19, #40]
	stur	q0, [x19, #24]
	ldr	w9, [x19, #8]
Lloh3:
	adrp	x10, _HZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w9, w10, w9
	str	w9, [x19]
Lloh6:
	adrp	x9, _ALE_IDVER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ALE_IDVER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	ldr	w1, [x19, #12]
	cbnz	w1, LBB0_3
; %bb.2:
	mov	w1, #255
	str	w1, [x19, #12]
LBB0_3:
	mov	x0, x20
	bl	_ALE_VERSION_MAJOR
	mov	x21, x0
	mov	x0, x20
	bl	_ALE_VERSION_MINOR
	orr	w8, w0, w21, lsl #8
	str	w8, [x19, #4]
	ldr	w21, [x19, #32]
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_ALE_VERSION_MAJOR
	mov	x22, x0
	mov	x0, x20
	bl	_ALE_VERSION_MINOR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_info
	ldr	w2, [x19, #16]
	cbnz	w2, LBB0_5
; %bb.4:
	ldr	x8, [x19, #40]
Lloh11:
	adrp	x9, _ALE_STATUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ALE_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh14:
	adrp	x8, _ALE_STATUS_SIZE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALE_STATUS_SIZE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ALE_TABLE_SIZE_MULTIPLIER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ALE_TABLE_SIZE_MULTIPLIER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ands	w8, w8, w0
	mul	w8, w8, w9
Lloh20:
	adrp	x9, _ALE_TABLE_SIZE_DEFAULT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ALE_TABLE_SIZE_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	csel	w2, w9, w8, eq
	str	w2, [x19, #16]
LBB0_5:
	ldr	w0, [x19, #32]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	w0, [x19, #20]
	str	w0, [x19, #56]
	bl	_order_base_2
	ldr	w8, [x19, #20]
	stp	w8, w0, [x19, #48]
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_7
; %bb.6:
Lloh25:
	adrp	x9, _ale_controls@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ale_controls@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
Lloh28:
	adrp	x10, _ALE_PORT_UNKNOWN_VLAN_MEMBER@GOTPAGE
Lloh29:
	ldr	x10, [x10, _ALE_PORT_UNKNOWN_VLAN_MEMBER@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x10, x10, x11, x9
	str	w8, [x10, #16]
Lloh31:
	adrp	x12, _ALE_UNKNOWNVLAN_MEMBER@GOTPAGE
Lloh32:
	ldr	x12, [x12, _ALE_UNKNOWNVLAN_MEMBER@GOTPAGEOFF]
Lloh33:
	ldr	w12, [x12]
	str	w12, [x10]
Lloh34:
	adrp	x10, _ALE_PORT_UNKNOWN_MCAST_FLOOD@GOTPAGE
Lloh35:
	ldr	x10, [x10, _ALE_PORT_UNKNOWN_MCAST_FLOOD@GOTPAGEOFF]
	ldr	x12, [x10]
	madd	x12, x12, x11, x9
	str	w8, [x12, #16]
	str	xzr, [x12, #8]
Lloh36:
	adrp	x12, _ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD@GOTPAGE
Lloh37:
	ldr	x12, [x12, _ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
	ldr	x10, [x10]
	mul	x10, x10, x11
	str	w12, [x9, x10]
Lloh39:
	adrp	x10, _ALE_PORT_UNKNOWN_REG_MCAST_FLOOD@GOTPAGE
Lloh40:
	ldr	x10, [x10, _ALE_PORT_UNKNOWN_REG_MCAST_FLOOD@GOTPAGEOFF]
	ldr	x12, [x10]
	madd	x12, x12, x11, x9
	str	w8, [x12, #16]
	str	xzr, [x12, #8]
Lloh41:
	adrp	x12, _ALE_UNKNOWNVLAN_REG_MCAST_FLOOD@GOTPAGE
Lloh42:
	ldr	x12, [x12, _ALE_UNKNOWNVLAN_REG_MCAST_FLOOD@GOTPAGEOFF]
Lloh43:
	ldr	w12, [x12]
	ldr	x10, [x10]
	mul	x10, x10, x11
	str	w12, [x9, x10]
Lloh44:
	adrp	x10, _ALE_PORT_UNTAGGED_EGRESS@GOTPAGE
Lloh45:
	ldr	x10, [x10, _ALE_PORT_UNTAGGED_EGRESS@GOTPAGEOFF]
	ldr	x12, [x10]
	madd	x12, x12, x11, x9
	str	w8, [x12, #16]
Lloh46:
	adrp	x8, _ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS@GOTPAGEOFF]
	str	xzr, [x12, #8]
Lloh48:
	ldr	w8, [x8]
	ldr	x10, [x10]
	mul	x10, x10, x11
	str	w8, [x9, x10]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ALE_IDVER,8,3                  ; @ALE_IDVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initialized cpsw ale version %d.%d\n"

	.comm	_ALE_STATUS,8,3                 ; @ALE_STATUS
	.comm	_ALE_STATUS_SIZE_MASK,4,2       ; @ALE_STATUS_SIZE_MASK
	.comm	_ALE_TABLE_SIZE_DEFAULT,4,2     ; @ALE_TABLE_SIZE_DEFAULT
	.comm	_ALE_TABLE_SIZE_MULTIPLIER,4,2  ; @ALE_TABLE_SIZE_MULTIPLIER
l_.str.1:                               ; @.str.1
	.asciz	"ALE Table size %ld\n"

	.comm	_ale_controls,8,3               ; @ale_controls
	.comm	_ALE_PORT_UNKNOWN_VLAN_MEMBER,8,3 ; @ALE_PORT_UNKNOWN_VLAN_MEMBER
	.comm	_ALE_UNKNOWNVLAN_MEMBER,4,2     ; @ALE_UNKNOWNVLAN_MEMBER
	.comm	_ALE_PORT_UNKNOWN_MCAST_FLOOD,8,3 ; @ALE_PORT_UNKNOWN_MCAST_FLOOD
	.comm	_ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD,4,2 ; @ALE_UNKNOWNVLAN_UNREG_MCAST_FLOOD
	.comm	_ALE_PORT_UNKNOWN_REG_MCAST_FLOOD,8,3 ; @ALE_PORT_UNKNOWN_REG_MCAST_FLOOD
	.comm	_ALE_UNKNOWNVLAN_REG_MCAST_FLOOD,4,2 ; @ALE_UNKNOWNVLAN_REG_MCAST_FLOOD
	.comm	_ALE_PORT_UNTAGGED_EGRESS,8,3   ; @ALE_PORT_UNTAGGED_EGRESS
	.comm	_ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS,4,2 ; @ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS
.subsections_via_symbols
