	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_dev_traps_init
_nsim_dev_traps_init:                   ## @nsim_dev_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	%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, %r12
	callq	_devlink_priv
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_nsim_traps_arr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ARRAY_SIZE
	movl	(%r13), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	%r14, 16(%rbx)
	movq	%rbx, (%r14)
	movl	(%r15), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_devlink_traps_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	callq	_kfree
	movl	%r12d, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_5:
	movq	(%r14), %rdi
	addq	$8, %rdi
	movq	_nsim_dev_trap_report_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	(%r14), %rbx
	addq	$8, %rbx
	movq	_NSIM_TRAP_REPORT_INTERVAL_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nsim_traps_arr,4,2             ## @nsim_traps_arr
	.comm	_nsim_dev_trap_report_work,4,2  ## @nsim_dev_trap_report_work
	.comm	_NSIM_TRAP_REPORT_INTERVAL_MS,4,2 ## @NSIM_TRAP_REPORT_INTERVAL_MS
	.no_dead_strip	_nsim_dev_traps_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_dev_traps_init
_nsim_dev_traps_init:                   ; @nsim_dev_traps_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_devlink_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x22, _nsim_traps_arr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _nsim_traps_arr@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.2:
	add	x0, x20, #24
	bl	_spin_lock_init
	str	x19, [x20, #16]
	str	x20, [x19]
	ldr	w22, [x22]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_devlink_traps_register
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x20]
	bl	_kfree
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
	add	x0, x8, #8
Lloh10:
	adrp	x8, _nsim_dev_trap_report_work@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nsim_dev_trap_report_work@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	ldr	x8, [x19]
	add	x19, x8, #8
Lloh13:
	adrp	x8, _NSIM_TRAP_REPORT_INTERVAL_MS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NSIM_TRAP_REPORT_INTERVAL_MS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nsim_traps_arr,4,2             ; @nsim_traps_arr
	.comm	_nsim_dev_trap_report_work,4,2  ; @nsim_dev_trap_report_work
	.comm	_NSIM_TRAP_REPORT_INTERVAL_MS,4,2 ; @NSIM_TRAP_REPORT_INTERVAL_MS
	.no_dead_strip	_nsim_dev_traps_init
.subsections_via_symbols
