	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_trap_groups_set
_mlxsw_sp_trap_groups_set:              ## @mlxsw_sp_trap_groups_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MLXSW_REG_HTGT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_MAX_TRAP_GROUPS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_MLXSW_CORE_RES_GET
	movl	%eax, %r15d
	movq	_MAX_CPU_POLICERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MLXSW_CORE_RES_GET
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.2:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-128(%rbx), %eax
	cmpl	$20, %eax
	ja	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %ecx
	movl	$5, %r8d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
	movl	$1, %r8d
	jmp	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %ecx
	movl	$2, %r8d
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %ecx
	movl	$3, %r8d
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %ecx
	movl	$4, %r8d
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	cmpl	%edx, %r12d
	jg	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_MLXSW_REG_HTGT_INVALID_POLICER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_reg_htgt_pack
	movq	_htgt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	jne	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_3
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_MLXSW_REG_HTGT_DEFAULT_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLXSW_REG_HTGT_DEFAULT_TC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLXSW_REG_HTGT_INVALID_POLICER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %r12d
	jle	LBB0_12
	jmp	LBB0_13
LBB0_16:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_15:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_MLXSW_REG_HTGT_LEN,4,2         ## @MLXSW_REG_HTGT_LEN
	.comm	_MAX_TRAP_GROUPS,4,2            ## @MAX_TRAP_GROUPS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MAX_CPU_POLICERS,4,2           ## @MAX_CPU_POLICERS
	.comm	_MLXSW_REG_HTGT_DEFAULT_PRIORITY,4,2 ## @MLXSW_REG_HTGT_DEFAULT_PRIORITY
	.comm	_MLXSW_REG_HTGT_DEFAULT_TC,4,2  ## @MLXSW_REG_HTGT_DEFAULT_TC
	.comm	_MLXSW_REG_HTGT_INVALID_POLICER,4,2 ## @MLXSW_REG_HTGT_INVALID_POLICER
	.comm	_htgt,4,2                       ## @htgt
	.no_dead_strip	_mlxsw_sp_trap_groups_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_trap_groups_set
_mlxsw_sp_trap_groups_set:              ; @mlxsw_sp_trap_groups_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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, #-88]
Lloh3:
	adrp	x8, _MLXSW_REG_HTGT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_HTGT_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
Lloh8:
	adrp	x21, _MAX_TRAP_GROUPS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MAX_TRAP_GROUPS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_15
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_MLXSW_CORE_RES_GET
	mov	x21, x0
Lloh10:
	adrp	x8, _MAX_CPU_POLICERS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_CPU_POLICERS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLXSW_CORE_RES_GET
	cbz	w21, LBB0_14
; %bb.2:
	mov	x22, x0
	mov	w23, #0
Lloh13:
	adrp	x24, _MLXSW_REG_HTGT_INVALID_POLICER@GOTPAGE
Lloh14:
	ldr	x24, [x24, _MLXSW_REG_HTGT_INVALID_POLICER@GOTPAGEOFF]
Lloh15:
	adrp	x25, _htgt@GOTPAGE
Lloh16:
	ldr	x25, [x25, _htgt@GOTPAGEOFF]
Lloh17:
	adrp	x26, lJTI0_0@PAGE
Lloh18:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh19:
	adrp	x27, _MLXSW_REG_HTGT_DEFAULT_PRIORITY@GOTPAGE
Lloh20:
	ldr	x27, [x27, _MLXSW_REG_HTGT_DEFAULT_PRIORITY@GOTPAGEOFF]
Lloh21:
	adrp	x28, _MLXSW_REG_HTGT_DEFAULT_TC@GOTPAGE
Lloh22:
	ldr	x28, [x28, _MLXSW_REG_HTGT_DEFAULT_TC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w23, #128
	cmp	w8, #20
	b.hi	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #5
	mov	w4, #5
	mov	x2, x23
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #1
	mov	w4, #1
	mov	x2, x23
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #2
	mov	w4, #2
	mov	x2, x23
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #3
	mov	w4, #3
	mov	x2, x23
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #4
	mov	w4, #4
	mov	x2, x23
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x27]
	ldr	w4, [x28]
	ldr	w2, [x24]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w22, w2
	ccmp	w2, w8, #4, le
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_mlxsw_reg_htgt_pack
	ldr	w0, [x25]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mlxsw_reg_write
	cbnz	w0, LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w21, w23
	b.ne	LBB0_3
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
                                        ; -- End function
	.comm	_MLXSW_REG_HTGT_LEN,4,2         ; @MLXSW_REG_HTGT_LEN
	.comm	_MAX_TRAP_GROUPS,4,2            ; @MAX_TRAP_GROUPS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MAX_CPU_POLICERS,4,2           ; @MAX_CPU_POLICERS
	.comm	_MLXSW_REG_HTGT_DEFAULT_PRIORITY,4,2 ; @MLXSW_REG_HTGT_DEFAULT_PRIORITY
	.comm	_MLXSW_REG_HTGT_DEFAULT_TC,4,2  ; @MLXSW_REG_HTGT_DEFAULT_TC
	.comm	_MLXSW_REG_HTGT_INVALID_POLICER,4,2 ; @MLXSW_REG_HTGT_INVALID_POLICER
	.comm	_htgt,4,2                       ; @htgt
	.no_dead_strip	_mlxsw_sp_trap_groups_set
.subsections_via_symbols
