	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlxsw_sp_router_set_abort_trap
___mlxsw_sp_router_set_abort_trap:      ## @__mlxsw_sp_router_set_abort_trap
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MLXSW_REG_RALTA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MLXSW_REG_RALST_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_mlxsw_reg_ralta_pack
	movl	(%r13), %r14d
	movq	_ralta@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	%r12d, %edx
	callq	_mlxsw_reg_ralst_pack
	movl	(%r13), %r14d
	movq	_ralst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	je	LBB0_2
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %r14
	movl	(%r13), %edi
	movq	_MAX_VRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	(%rax), %r12
	movq	_MLXSW_REG_RALTB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_REG_RALUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12,%r13,4), %esi
	movq	%r15, %rdi
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlxsw_reg_raltb_pack
	movq	%r14, %r15
	movl	(%r14), %r14d
	movq	_raltb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_MLXSW_REG_RALUE_OP_WRITE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%r12,%rax,4), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%r8d, %r8d
	callq	_mlxsw_reg_ralue_pack
	movq	%rbx, %rdi
	callq	_mlxsw_reg_ralue_act_ip2me_pack
	movl	(%r15), %r14d
	movq	_ralue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	movl	(%r15), %edi
	movq	_MAX_VRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r13
	movq	%r15, %r14
	jl	LBB0_6
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_RALTA_LEN,4,2        ## @MLXSW_REG_RALTA_LEN
	.comm	_MLXSW_REG_RALST_LEN,4,2        ## @MLXSW_REG_RALST_LEN
	.comm	_ralta,4,2                      ## @ralta
	.comm	_ralst,4,2                      ## @ralst
	.comm	_MAX_VRS,4,2                    ## @MAX_VRS
	.comm	_MLXSW_REG_RALTB_LEN,4,2        ## @MLXSW_REG_RALTB_LEN
	.comm	_MLXSW_REG_RALUE_LEN,4,2        ## @MLXSW_REG_RALUE_LEN
	.comm	_raltb,4,2                      ## @raltb
	.comm	_MLXSW_REG_RALUE_OP_WRITE_WRITE,4,2 ## @MLXSW_REG_RALUE_OP_WRITE_WRITE
	.comm	_ralue,4,2                      ## @ralue
	.no_dead_strip	___mlxsw_sp_router_set_abort_trap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlxsw_sp_router_set_abort_trap
___mlxsw_sp_router_set_abort_trap:      ; @__mlxsw_sp_router_set_abort_trap
	.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, x2
	mov	x20, x1
	mov	x21, 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_RALTA_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_RALTA_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	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _MLXSW_REG_RALST_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_REG_RALST_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x23
	mov	w1, #1
	mov	x2, x20
	mov	x3, x19
	bl	_mlxsw_reg_ralta_pack
	ldr	w24, [x21]
Lloh13:
	adrp	x8, _ralta@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ralta@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_mlxsw_reg_write
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	w1, #255
	mov	x2, x19
	bl	_mlxsw_reg_ralst_pack
	ldr	w23, [x21]
Lloh16:
	adrp	x8, _ralst@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ralst@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_mlxsw_reg_write
	cbz	w0, LBB0_4
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.3:
	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_4:
	ldr	w0, [x21]
Lloh22:
	adrp	x25, _MAX_VRS@GOTPAGE
Lloh23:
	ldr	x25, [x25, _MAX_VRS@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_MLXSW_CORE_RES_GET
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x26, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, sp
	ldr	x8, [x21, #8]
	ldr	x27, [x8]
Lloh24:
	adrp	x8, _MLXSW_REG_RALTB_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MLXSW_REG_RALTB_LEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	x9, x8
Lloh27:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh28:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh29:
	adrp	x8, _MLXSW_REG_RALUE_LEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLXSW_REG_RALUE_LEN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	mov	x9, x8
Lloh32:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh33:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w1, [x27, x26, lsl #2]
	mov	x0, x23
	mov	x2, x20
	mov	x3, x19
	bl	_mlxsw_reg_raltb_pack
	ldr	w24, [x21]
Lloh34:
	adrp	x8, _raltb@GOTPAGE
Lloh35:
	ldr	x8, [x8, _raltb@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_mlxsw_reg_write
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh37:
	adrp	x8, _MLXSW_REG_RALUE_OP_WRITE_WRITE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MLXSW_REG_RALUE_OP_WRITE_WRITE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	ldr	w3, [x27, x26, lsl #2]
	mov	x0, x22
	mov	x1, x20
	mov	w4, #0
	bl	_mlxsw_reg_ralue_pack
	mov	x0, x22
	bl	_mlxsw_reg_ralue_act_ip2me_pack
	ldr	w23, [x21]
Lloh40:
	adrp	x8, _ralue@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ralue@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_mlxsw_reg_write
	mov	sp, x28
	cbnz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldr	w0, [x21]
	ldr	w1, [x25]
	bl	_MLXSW_CORE_RES_GET
	mov	x8, x0
	mov	w0, #0
	cmp	x26, w8, sxtw
	b.lt	LBB0_6
	b	LBB0_2
LBB0_9:
	mov	w0, #0
	b	LBB0_2
LBB0_10:
	mov	sp, x28
	b	LBB0_2
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_RALTA_LEN,4,2        ; @MLXSW_REG_RALTA_LEN
	.comm	_MLXSW_REG_RALST_LEN,4,2        ; @MLXSW_REG_RALST_LEN
	.comm	_ralta,4,2                      ; @ralta
	.comm	_ralst,4,2                      ; @ralst
	.comm	_MAX_VRS,4,2                    ; @MAX_VRS
	.comm	_MLXSW_REG_RALTB_LEN,4,2        ; @MLXSW_REG_RALTB_LEN
	.comm	_MLXSW_REG_RALUE_LEN,4,2        ; @MLXSW_REG_RALUE_LEN
	.comm	_raltb,4,2                      ; @raltb
	.comm	_MLXSW_REG_RALUE_OP_WRITE_WRITE,4,2 ; @MLXSW_REG_RALUE_OP_WRITE_WRITE
	.comm	_ralue,4,2                      ; @ralue
	.no_dead_strip	___mlxsw_sp_router_set_abort_trap
.subsections_via_symbols
