	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_devlink_traps_init    ## -- Begin function mlxsw_sp_devlink_traps_init
	.p2align	4, 0x90
_mlxsw_sp_devlink_traps_init:           ## @mlxsw_sp_devlink_traps_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, %r15
	movl	(%rdi), %edi
	callq	_priv_to_devlink
	movq	%rax, %r14
	movq	_mlxsw_sp_listener_devlink_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movq	%rax, %rbx
	movq	_mlxsw_sp_listeners_arr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_mlxsw_sp_traps_arr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devlink_traps_register         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp_listener_devlink_map,4,2 ## @mlxsw_sp_listener_devlink_map
	.comm	_mlxsw_sp_listeners_arr,4,2     ## @mlxsw_sp_listeners_arr
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mlxsw_sp_traps_arr,4,2         ## @mlxsw_sp_traps_arr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_devlink_traps_init    ; -- Begin function mlxsw_sp_devlink_traps_init
	.p2align	2
_mlxsw_sp_devlink_traps_init:           ; @mlxsw_sp_devlink_traps_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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_priv_to_devlink
	mov	x20, x0
Lloh0:
	adrp	x8, _mlxsw_sp_listener_devlink_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlxsw_sp_listener_devlink_map@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh3:
	adrp	x8, _mlxsw_sp_listeners_arr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxsw_sp_listeners_arr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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_2:
Lloh9:
	adrp	x8, _mlxsw_sp_traps_arr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mlxsw_sp_traps_arr@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	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
	b	_devlink_traps_register
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp_listener_devlink_map,4,2 ; @mlxsw_sp_listener_devlink_map
	.comm	_mlxsw_sp_listeners_arr,4,2     ; @mlxsw_sp_listeners_arr
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mlxsw_sp_traps_arr,4,2         ; @mlxsw_sp_traps_arr
.subsections_via_symbols
