	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_msit_db_event
_ntb_msit_db_event:                     ## @ntb_msit_db_event
	.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, %r15
	movl	8(%rdi), %edi
	callq	_ntb_db_read
	movl	8(%r15), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_ntb_db_clear
	movl	$8, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	addq	$16, %r14
	cmpq	$32, %rbx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r15), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_ntb_peer_spad_read
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	movq	(%r15), %rax
	movq	(%rax,%r14), %rdi
	callq	_kfree
	movq	(%r15), %rax
	movq	%r13, (%rax,%r14)
	movl	%r12d, -8(%rax,%r14)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ntb_msit_copy_peer_desc
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ntb_msit_db_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_msit_db_event
_ntb_msit_db_event:                     ; @ntb_msit_db_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_ntb_db_read
	mov	x20, x0
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_ntb_db_clear
	mov	x24, #0
	mov	x21, #0
Lloh0:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	add	x24, x24, #16
	cmp	x21, #32
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	w2, #0
	bl	_ntb_peer_spad_read
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	w2, [x25]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	x8, [x19]
	add	x8, x8, x24
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19]
	add	x8, x8, x24
	str	x23, [x8, #8]
	str	w22, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_ntb_msit_copy_peer_desc
	b	LBB0_1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ntb_msit_db_event
.subsections_via_symbols
