	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_ntb_peer_mw_clear_trans
_idt_ntb_peer_mw_clear_trans:           ## @idt_ntb_peer_mw_clear_trans
	.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, %r15d
	movl	%esi, %ebx
	callq	_to_ndev_ntb
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movq	%rax, %r14
	cmpl	%ebx, (%rax)
	jle	LBB0_2
## %bb.3:
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.4:
	cmpl	%r15d, 4(%r14)
	jle	LBB0_2
## %bb.5:
	movq	16(%r14), %r13
	movl	%r15d, %eax
	leaq	(%rax,%rax,2), %r15
	movq	(%r13,%r15,8), %rax
	movq	_IDT_MW_DIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_ntdata_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%r13,%r15,8), %r13
	movl	4(%r12,%r13,8), %esi
	movq	%r14, %rdi
	callq	_idt_nt_read
	movl	%eax, %r15d
	movl	(%r12,%r13,8), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_idt_nt_write
	movq	_BARSETUP_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	$64, %edx
	callq	_IS_FLD_SET
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	8(%r12,%r13,8), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_idt_nt_write
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_LUTOFFSET_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r13,%r15,8), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_SET_FIELD
	movl	%eax, %r12d
	movq	_LUTOFFSET_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13,%r15,8), %rdx
	xorl	%esi, %esi
	callq	_SET_FIELD
	orl	%eax, %r12d
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_IDT_NT_LUTOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_idt_nt_write
	movq	_IDT_NT_LUTLDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_idt_nt_write
	movq	_IDT_NT_LUTMDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_idt_nt_write
	movq	_IDT_NT_LUTUDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_idt_nt_write
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IDT_MW_DIR,8,3                 ## @IDT_MW_DIR
	.comm	_ntdata_tbl,8,3                 ## @ntdata_tbl
	.comm	_BARSETUP_TYPE,4,2              ## @BARSETUP_TYPE
	.comm	_LUTOFFSET_INDEX,4,2            ## @LUTOFFSET_INDEX
	.comm	_LUTOFFSET_BAR,4,2              ## @LUTOFFSET_BAR
	.comm	_IDT_NT_LUTOFFSET,4,2           ## @IDT_NT_LUTOFFSET
	.comm	_IDT_NT_LUTLDATA,4,2            ## @IDT_NT_LUTLDATA
	.comm	_IDT_NT_LUTMDATA,4,2            ## @IDT_NT_LUTMDATA
	.comm	_IDT_NT_LUTUDATA,4,2            ## @IDT_NT_LUTUDATA
	.no_dead_strip	_idt_ntb_peer_mw_clear_trans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_ntb_peer_mw_clear_trans
_idt_ntb_peer_mw_clear_trans:           ; @idt_ntb_peer_mw_clear_trans
	.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	x20, x2
	mov	x21, x1
	bl	_to_ndev_ntb
	tbnz	w21, #31, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w21
	b.le	LBB0_7
; %bb.2:
	tbnz	w20, #31, LBB0_7
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.le	LBB0_7
; %bb.4:
	ldr	x8, [x19, #16]
	mov	w9, w20
	mov	w10, #24
	umull	x10, w20, w10
	ldr	x10, [x8, x10]
Lloh0:
	adrp	x11, _IDT_MW_DIR@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IDT_MW_DIR@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.5:
Lloh3:
	adrp	x10, _ntdata_tbl@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ntdata_tbl@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x8, x9, x11, x8
	ldr	x8, [x8, #8]
	add	x21, x10, x8, lsl #3
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_idt_nt_read
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_idt_nt_write
Lloh6:
	adrp	x8, _BARSETUP_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BARSETUP_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #64
	bl	_IS_FLD_SET
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w1, [x21, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_idt_nt_write
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
Lloh12:
	adrp	x10, _LUTOFFSET_INDEX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LUTOFFSET_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x10]
	mov	w10, #24
	madd	x21, x9, x10, x8
	ldr	x2, [x21, #16]
	mov	w1, #0
	bl	_SET_FIELD
	mov	x20, x0
Lloh15:
	adrp	x8, _LUTOFFSET_BAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LUTOFFSET_BAR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x2, [x21, #8]
	mov	w1, #0
	bl	_SET_FIELD
	orr	w20, w0, w20
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh18:
	adrp	x8, _IDT_NT_LUTOFFSET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDT_NT_LUTOFFSET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_idt_nt_write
Lloh21:
	adrp	x8, _IDT_NT_LUTLDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDT_NT_LUTLDATA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_idt_nt_write
Lloh24:
	adrp	x8, _IDT_NT_LUTMDATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDT_NT_LUTMDATA@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_idt_nt_write
Lloh27:
	adrp	x8, _IDT_NT_LUTUDATA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IDT_NT_LUTUDATA@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_idt_nt_write
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_10:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IDT_MW_DIR,8,3                 ; @IDT_MW_DIR
	.comm	_ntdata_tbl,8,3                 ; @ntdata_tbl
	.comm	_BARSETUP_TYPE,4,2              ; @BARSETUP_TYPE
	.comm	_LUTOFFSET_INDEX,4,2            ; @LUTOFFSET_INDEX
	.comm	_LUTOFFSET_BAR,4,2              ; @LUTOFFSET_BAR
	.comm	_IDT_NT_LUTOFFSET,4,2           ; @IDT_NT_LUTOFFSET
	.comm	_IDT_NT_LUTLDATA,4,2            ; @IDT_NT_LUTLDATA
	.comm	_IDT_NT_LUTMDATA,4,2            ; @IDT_NT_LUTMDATA
	.comm	_IDT_NT_LUTUDATA,4,2            ; @IDT_NT_LUTUDATA
	.no_dead_strip	_idt_ntb_peer_mw_clear_trans
.subsections_via_symbols
