	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ntb3_peer_db_set
_intel_ntb3_peer_db_set:                ## @intel_ntb3_peer_db_set
	.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
	movl	%esi, %ebx
	callq	_ntb_ndev
	movq	%rax, %r15
	movl	(%rax), %eax
	notl	%eax
	testl	%ebx, %eax
	je	LBB0_1
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	___ffs
	movq	8(%r15), %rcx
	shll	$2, %eax
	movslq	%eax, %rsi
	addq	16(%r15), %rsi
	addq	(%rcx), %rsi
	movl	$1, %edi
	callq	_iowrite32
	leal	-1(%rbx), %eax
	andl	%ebx, %eax
	movl	%eax, %ebx
	jne	LBB0_2
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_ntb3_peer_db_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ntb3_peer_db_set
_intel_ntb3_peer_db_set:                ; @intel_ntb3_peer_db_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_ntb_ndev
	ldr	w8, [x0]
	bics	wzr, w19, w8
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	cbz	w19, LBB0_5
; %bb.3:
	mov	x20, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	___ffs
	ldp	x9, x8, [x20, #8]
	ldr	x9, [x9]
	lsl	w10, w0, #2
	add	x8, x8, w10, sxtw
	add	x1, x8, x9
	mov	w0, #1
	bl	_iowrite32
	sub	w8, w19, #1
	ands	w19, w8, w19
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intel_ntb3_peer_db_set
.subsections_via_symbols
