	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_trap_action_set       ## -- Begin function mlxsw_sp_trap_action_set
	.p2align	4, 0x90
_mlxsw_sp_trap_action_set:              ## @mlxsw_sp_trap_action_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
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_mlxsw_sp_listener_devlink_map@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_core_trap_action_set
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi,%rbx,2), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_mlxsw_sp_listeners_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	_MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT@GOTPCREL(%rip), %rax
	cmpl	$129, %r14d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %r14d
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp_listener_devlink_map,8,3 ## @mlxsw_sp_listener_devlink_map
	.comm	_mlxsw_sp_listeners_arr,8,3     ## @mlxsw_sp_listeners_arr
	.comm	_MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT,4,2 ## @MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT
	.comm	_MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU,4,2 ## @MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_trap_action_set       ; -- Begin function mlxsw_sp_trap_action_set
	.p2align	2
_mlxsw_sp_trap_action_set:              ; @mlxsw_sp_trap_action_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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _mlxsw_sp_listener_devlink_map@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mlxsw_sp_listener_devlink_map@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _mlxsw_sp_listeners_arr@GOTPAGE
Lloh3:
	ldr	x25, [x25, _mlxsw_sp_listeners_arr@GOTPAGEOFF]
Lloh4:
	adrp	x26, _MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x8, x23
	ldr	w2, [x9]
	mov	x0, x21
	bl	_mlxsw_core_trap_action_set
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #4
	cmp	x24, w0, sxtw
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0, x24, lsl #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	mov	x9, x26
	cmp	w19, #129
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #128
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x27
	b	LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	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_11:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp_listener_devlink_map,8,3 ; @mlxsw_sp_listener_devlink_map
	.comm	_mlxsw_sp_listeners_arr,8,3     ; @mlxsw_sp_listeners_arr
	.comm	_MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT,4,2 ; @MLXSW_REG_HPKT_ACTION_SET_FW_DEFAULT
	.comm	_MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU,4,2 ; @MLXSW_REG_HPKT_ACTION_TRAP_EXCEPTION_TO_CPU
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
