	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_init_mws
_idt_init_mws:                          ## @idt_init_mws
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	40(%rdi), %esi
	leaq	44(%rdi), %rdx
	callq	_idt_scan_mws
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%r14), %rdi
	movl	40(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	32(%r14), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	cmpb	$0, (%r14)
	je	LBB0_8
## %bb.2:
	movl	$12, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %r12
	leaq	(%r12,%rbx), %rdx
	movl	-4(%r12,%rbx), %esi
	movq	%r14, %rdi
	callq	_idt_scan_mws
	movq	%rax, -12(%r12,%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movzbl	(%r14), %eax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jb	LBB0_6
LBB0_8:
	leaq	16(%r14), %rdi
	callq	_spin_lock_init
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r14), %rdi
	movl	-4(%r12,%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	-12(%r12,%rbx), %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to scan mws of local port %hhu"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to scan mws of port %hhu"

L_.str.2:                               ## @.str.2
	.asciz	"Outbound and inbound MWs initialized"

	.no_dead_strip	_idt_init_mws
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_init_mws
_idt_init_mws:                          ; @idt_init_mws
	.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	w1, [x0, #40]
	add	x2, x0, #44
	bl	_idt_scan_mws
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w2, [x19, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #32]
LBB0_2:
	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	_PTR_ERR
LBB0_3:
	ldrb	w8, [x19]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x20, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x22, x8, x20
	ldr	w1, [x22, #8]
	add	x2, x22, #12
	mov	x0, x19
	bl	_idt_scan_mws
	str	x0, [x22]
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrb	w8, [x19]
	add	x20, x20, #16
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_7:
	add	x0, x19, #16
	bl	_spin_lock_init
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	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_8:
	ldr	x0, [x19, #8]
	ldr	w2, [x22, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x22]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to scan mws of local port %hhu"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to scan mws of port %hhu"

l_.str.2:                               ; @.str.2
	.asciz	"Outbound and inbound MWs initialized"

	.no_dead_strip	_idt_init_mws
.subsections_via_symbols
