	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ntb_peer_mw_get_addr     ## -- Begin function intel_ntb_peer_mw_get_addr
	.p2align	4, 0x90
_intel_ntb_peer_mw_get_addr:            ## @intel_ntb_peer_mw_get_addr
	.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	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %r15d
	callq	_ntb_ndev
	movq	%rax, %rbx
	cmpl	%r15d, (%rax)
	jg	LBB0_2
## %bb.1:
	cmpl	$1, 4(%rbx)
	adcl	$0, %r15d
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ndev_mw_to_bar
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:
	testq	%r13, %r13
	je	LBB0_8
## %bb.4:
	movl	8(%rbx), %edi
	movl	%r12d, %esi
	callq	_pci_resource_start
	cmpl	(%rbx), %r15d
	jne	LBB0_5
## %bb.6:
	movslq	4(%rbx), %rcx
	jmp	LBB0_7
LBB0_5:
	xorl	%ecx, %ecx
LBB0_7:
	addq	%rax, %rcx
	movq	%rcx, (%r13)
LBB0_8:
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	movl	8(%rbx), %edi
	movl	%r12d, %esi
	callq	_pci_resource_len
	xorl	%r12d, %r12d
	cmpl	(%rbx), %r15d
	jne	LBB0_11
## %bb.12:
	movslq	4(%rbx), %rcx
	jmp	LBB0_13
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_11:
	xorl	%ecx, %ecx
LBB0_13:
	subq	%rcx, %rax
	movq	%rax, (%r14)
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ntb_peer_mw_get_addr     ; -- Begin function intel_ntb_peer_mw_get_addr
	.p2align	2
_intel_ntb_peer_mw_get_addr:            ; @intel_ntb_peer_mw_get_addr
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	bl	_ntb_ndev
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, w20
	b.gt	LBB0_2
; %bb.1:
	ldr	w8, [x21, #4]
	cmp	w8, #0
	cinc	w20, w20, eq
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_ndev_mw_to_bar
	mov	x23, x0
	tbnz	w0, #31, LBB0_14
; %bb.3:
	cbz	x22, LBB0_8
; %bb.4:
	ldr	w0, [x21, #8]
	mov	x1, x23
	bl	_pci_resource_start
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.5:
	ldrsw	x8, [x21, #4]
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	add	x8, x8, x0
	str	x8, [x22]
LBB0_8:
	cbz	x19, LBB0_11
; %bb.9:
	ldr	w0, [x21, #8]
	mov	x1, x23
	bl	_pci_resource_len
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_12
; %bb.10:
	ldrsw	x8, [x21, #4]
	b	LBB0_13
LBB0_11:
	mov	w23, #0
	b	LBB0_14
LBB0_12:
	mov	x8, #0
LBB0_13:
	mov	w23, #0
	sub	x8, x0, x8
	str	x8, [x19]
LBB0_14:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
