	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_lag_init
_mlxsw_sp_lag_init:                     ## @mlxsw_sp_lag_init
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_MLXSW_REG_SLCR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	8(%r14), %edi
	movq	_MLXSW_SP_LAG_SEED_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_jhash
	movq	_MLXSW_REG_SLCR_LAG_HASH_SMAC@GOTPCREL(%rip), %rcx
	movq	_MLXSW_REG_SLCR_LAG_HASH_DMAC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_VLANID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_SIP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_DIP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_SPORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_DPORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_MLXSW_REG_SLCR_LAG_HASH_IPPROTO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlxsw_reg_slcr_pack
	movl	4(%r14), %ebx
	movq	_slcr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	4(%r14), %edi
	movq	_MAX_LAG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%r14), %edi
	movq	_MAX_LAG_MEMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	4(%r14), %edi
	movl	(%rbx), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kcalloc
	movl	%eax, %ecx
	movl	%eax, (%r14)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_SLCR_LEN,4,2         ## @MLXSW_REG_SLCR_LEN
	.comm	_MLXSW_SP_LAG_SEED_INIT,4,2     ## @MLXSW_SP_LAG_SEED_INIT
	.comm	_MLXSW_REG_SLCR_LAG_HASH_SMAC,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_SMAC
	.comm	_MLXSW_REG_SLCR_LAG_HASH_DMAC,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_DMAC
	.comm	_MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE
	.comm	_MLXSW_REG_SLCR_LAG_HASH_VLANID,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_VLANID
	.comm	_MLXSW_REG_SLCR_LAG_HASH_SIP,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_SIP
	.comm	_MLXSW_REG_SLCR_LAG_HASH_DIP,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_DIP
	.comm	_MLXSW_REG_SLCR_LAG_HASH_SPORT,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_SPORT
	.comm	_MLXSW_REG_SLCR_LAG_HASH_DPORT,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_DPORT
	.comm	_MLXSW_REG_SLCR_LAG_HASH_IPPROTO,4,2 ## @MLXSW_REG_SLCR_LAG_HASH_IPPROTO
	.comm	_slcr,4,2                       ## @slcr
	.comm	_MAX_LAG,4,2                    ## @MAX_LAG
	.comm	_MAX_LAG_MEMBERS,4,2            ## @MAX_LAG_MEMBERS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlxsw_sp_lag_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_lag_init
_mlxsw_sp_lag_init:                     ; @mlxsw_sp_lag_init
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MLXSW_REG_SLCR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_SLCR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x0, #8]
Lloh8:
	adrp	x8, _MLXSW_SP_LAG_SEED_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_SP_LAG_SEED_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_jhash
	mov	x2, x0
Lloh11:
	adrp	x8, _MLXSW_REG_SLCR_LAG_HASH_SMAC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLXSW_REG_SLCR_LAG_HASH_SMAC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_DMAC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_DMAC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_VLANID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_VLANID@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_SIP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_SIP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_DIP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_DIP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_SPORT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_SPORT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_DPORT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_DPORT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _MLXSW_REG_SLCR_LAG_HASH_IPPROTO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MLXSW_REG_SLCR_LAG_HASH_IPPROTO@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_mlxsw_reg_slcr_pack
	ldr	w21, [x19, #4]
Lloh38:
	adrp	x8, _slcr@GOTPAGE
Lloh39:
	ldr	x8, [x8, _slcr@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_mlxsw_reg_write
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x19, #4]
Lloh41:
	adrp	x20, _MAX_LAG@GOTPAGE
Lloh42:
	ldr	x20, [x20, _MAX_LAG@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh43:
	adrp	x8, _MAX_LAG_MEMBERS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAX_LAG_MEMBERS@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_MLXSW_CORE_RES_GET
Lloh46:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	w0, [x19]
	cbz	w0, LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh49:
	adrp	x8, _EIO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	sub	sp, x29, #32
	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_9:
Lloh54:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_SLCR_LEN,4,2         ; @MLXSW_REG_SLCR_LEN
	.comm	_MLXSW_SP_LAG_SEED_INIT,4,2     ; @MLXSW_SP_LAG_SEED_INIT
	.comm	_MLXSW_REG_SLCR_LAG_HASH_SMAC,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_SMAC
	.comm	_MLXSW_REG_SLCR_LAG_HASH_DMAC,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_DMAC
	.comm	_MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_ETHERTYPE
	.comm	_MLXSW_REG_SLCR_LAG_HASH_VLANID,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_VLANID
	.comm	_MLXSW_REG_SLCR_LAG_HASH_SIP,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_SIP
	.comm	_MLXSW_REG_SLCR_LAG_HASH_DIP,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_DIP
	.comm	_MLXSW_REG_SLCR_LAG_HASH_SPORT,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_SPORT
	.comm	_MLXSW_REG_SLCR_LAG_HASH_DPORT,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_DPORT
	.comm	_MLXSW_REG_SLCR_LAG_HASH_IPPROTO,4,2 ; @MLXSW_REG_SLCR_LAG_HASH_IPPROTO
	.comm	_slcr,4,2                       ; @slcr
	.comm	_MAX_LAG,4,2                    ; @MAX_LAG
	.comm	_MAX_LAG_MEMBERS,4,2            ; @MAX_LAG_MEMBERS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlxsw_sp_lag_init
.subsections_via_symbols
