	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_transport_probe
_ntb_transport_probe:                   ## @ntb_transport_probe
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_ntb_peer_mw_count
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ntb_db_is_unsafe
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	4(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_4:
	movq	%rbx, %rdi
	callq	_ntb_spad_is_unsafe
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	4(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	movq	%rbx, %rdi
	callq	_ntb_peer_port_count
	movq	_NTB_DEF_PEER_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	leaq	4(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
LBB0_8:
	leaq	4(%rbx), %rdi
	callq	_dev_to_node
	movl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	movl	%r13d, %edx
	callq	_kzalloc_node
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %r14
	movq	%rbx, 112(%rax)
	movq	_use_msi@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.12:
	cmpl	$2, %r12d
	jb	LBB0_15
## %bb.13:
	movq	_ntb_transport_msi_desc_changed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ntb_msi_init
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	decl	%r12d
	movl	$1, (%r14)
LBB0_15:
	movq	%rbx, %rdi
	callq	_ntb_spad_count
	movq	_NTB_TRANSPORT_MIN_SPADS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_17
## %bb.16:
	movl	$0, 4(%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_1:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_55
LBB0_17:
	movq	_MW0_SZ_HIGH@GOTPCREL(%rip), %r15
	subl	(%r15), %eax
	shrl	%eax
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, 4(%r14)
	addl	%eax, %eax
	addl	(%r15), %eax
	movl	%eax, 8(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$120, %esi
	movl	%r13d, %ecx
	callq	_kcalloc_node
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_29
## %bb.19:
	movq	%rax, %r15
	leaq	108(%rax), %rdx
	leaq	104(%rax), %rcx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_ntb_peer_mw_get_addr
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_50
## %bb.20:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	decq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$228, %r14d
	xorl	%r13d, %r13d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_ioremap_wc
	movl	%eax, -188(%r15,%r14)
	testl	%eax, %eax
	je	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, -140(%r15,%r14)
	movups	%xmm0, -156(%r15,%r14)
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	1(%r13), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	imulq	$120, %rcx, %rax
	leaq	(%r15,%rax), %rcx
	addq	$108, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14), %rdx
	addq	%r15, %rax
	addq	$104, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14), %rcx
	addq	$-4, %rcx
	incl	%r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_ntb_peer_mw_get_addr
	movl	%eax, %r12d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	$120, %r14
	movq	%rax, %r13
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.27:
	movl	%eax, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_50
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_54
LBB0_29:
	movq	%rbx, %rdi
	callq	_ntb_db_valid_mask
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ilog2
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_31
## %bb.30:
	decl	%r15d
	movl	$1, %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	movl	%esi, 12(%rax)
	movq	%rbx, %rdi
	callq	_ntb_db_clear_mask
LBB0_31:
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movq	_max_num_clients@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_33
## %bb.32:
	cmpl	%r15d, %r13d
	jb	LBB0_34
LBB0_33:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	cmpl	%r15d, %eax
	cmovbl	%eax, %r15d
	movl	%r15d, %r13d
LBB0_34:
	movl	%r13d, %edi
	callq	_BIT_ULL
	decl	%eax
	andl	%r14d, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, 16(%r14)
	movl	%eax, 20(%r14)
	movl	%eax, 24(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$120, %esi
	movl	%r12d, %ecx
	callq	_kcalloc_node
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_35
## %bb.36:
	movq	_nt_debugfs_dir@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_38
## %bb.37:
	movl	(%rbx), %edi
	callq	_pci_name
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_debugfs_create_dir
	movl	%eax, 68(%r14)
LBB0_38:
	movq	%rbx, %r15
	movl	%r13d, %ebx
	testl	%r13d, %r13d
	je	LBB0_43
## %bb.39:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ntb_transport_init_queue
	testl	%eax, %eax
	jne	LBB0_41
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=1
	incl	%r13d
	cmpl	%r13d, %ebx
	jne	LBB0_40
LBB0_43:
	leaq	64(%r14), %rdi
	movq	_ntb_transport_link_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	60(%r14), %rdi
	movq	_ntb_transport_link_cleanup_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_ntb_transport_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ntb_set_ctx
	testl	%eax, %eax
	je	LBB0_45
## %bb.44:
	movl	%eax, %r12d
	jmp	LBB0_48
LBB0_35:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_50
LBB0_41:
	movl	%eax, %r12d
	jmp	LBB0_49
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_50
LBB0_45:
	movq	%r14, %rdi
	addq	$56, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_ntb_bus_init
	testl	%eax, %eax
	je	LBB0_46
## %bb.47:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_ntb_clear_ctx
LBB0_48:
	movl	%ebx, %r13d
LBB0_49:
	movq	48(%r14), %rdi
	callq	_kfree
LBB0_50:
	testl	%r13d, %r13d
	je	LBB0_53
## %bb.51:
	movslq	%r13d, %rax
	imulq	$120, %rax, %rbx
	addq	$-80, %rbx
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movl	(%rax,%rbx), %edi
	callq	_iounmap
	addq	$-120, %rbx
	decl	%r13d
	jne	LBB0_52
LBB0_53:
	movq	32(%r14), %rdi
	callq	_kfree
LBB0_54:
	movq	%r14, %rdi
	callq	_kfree
LBB0_55:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movl	$0, 28(%r14)
	movq	_NTB_SPEED_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NTB_WIDTH_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ntb_link_enable
	movq	%r15, %rdi
	callq	_ntb_link_event
	xorl	%r12d, %r12d
	jmp	LBB0_55
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inbound MW based NTB API is required\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"doorbell is unsafe, proceed anyway...\n"

L_.str.2:                               ## @.str.2
	.asciz	"scratchpad is unsafe, proceed anyway...\n"

	.comm	_NTB_DEF_PEER_CNT,8,3           ## @NTB_DEF_PEER_CNT
L_.str.3:                               ## @.str.3
	.asciz	"Multi-port NTB devices unsupported\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_use_msi,8,3                    ## @use_msi
	.comm	_ntb_transport_msi_desc_changed,4,2 ## @ntb_transport_msi_desc_changed
	.comm	_NTB_TRANSPORT_MIN_SPADS,4,2    ## @NTB_TRANSPORT_MIN_SPADS
	.comm	_MW0_SZ_HIGH,4,2                ## @MW0_SZ_HIGH
	.comm	_max_num_clients,4,2            ## @max_num_clients
	.comm	_nt_debugfs_dir,8,3             ## @nt_debugfs_dir
	.comm	_ntb_transport_link_work,4,2    ## @ntb_transport_link_work
	.comm	_ntb_transport_link_cleanup_work,4,2 ## @ntb_transport_link_cleanup_work
	.comm	_ntb_transport_ops,4,2          ## @ntb_transport_ops
	.comm	_NTB_SPEED_AUTO,4,2             ## @NTB_SPEED_AUTO
	.comm	_NTB_WIDTH_AUTO,4,2             ## @NTB_WIDTH_AUTO
	.no_dead_strip	_ntb_transport_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_transport_probe
_ntb_transport_probe:                   ; @ntb_transport_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x0, x1
	bl	_ntb_peer_mw_count
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_ntb_db_is_unsafe
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x20, #4
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_3:
	mov	x0, x20
	bl	_ntb_spad_is_unsafe
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, x20, #4
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_5:
	mov	x0, x20
	bl	_ntb_peer_port_count
Lloh4:
	adrp	x8, _NTB_DEF_PEER_CNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NTB_DEF_PEER_CNT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	add	x0, x20, #4
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_7:
	add	x0, x20, #4
	bl	_dev_to_node
	mov	x23, x0
Lloh9:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #120
	mov	x2, x23
	bl	_kzalloc_node
	cbz	x0, LBB0_15
; %bb.8:
	mov	x19, x0
	str	x20, [x0, #112]
Lloh11:
	adrp	x8, _use_msi@GOTPAGE
Lloh12:
	ldr	x8, [x8, _use_msi@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.9:
	cmp	w21, #2
	b.lo	LBB0_12
; %bb.10:
Lloh14:
	adrp	x8, _ntb_transport_msi_desc_changed@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ntb_transport_msi_desc_changed@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ntb_msi_init
	cbnz	w0, LBB0_12
; %bb.11:
	sub	w21, w21, #1
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	mov	x0, x20
	bl	_ntb_spad_count
Lloh17:
	adrp	x8, _NTB_TRANSPORT_MIN_SPADS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NTB_TRANSPORT_MIN_SPADS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_17
; %bb.13:
	str	wzr, [x19, #4]
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_14:
	add	x0, x20, #4
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_53
LBB0_17:
Lloh28:
	adrp	x22, _MW0_SZ_HIGH@GOTPAGE
Lloh29:
	ldr	x22, [x22, _MW0_SZ_HIGH@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w8, w0, w8
	lsr	w1, w8, #1
	mov	x0, x21
	bl	_min
	ldr	w8, [x22]
	add	w8, w8, w0, lsl #1
	stp	w0, w8, [x19, #4]
	ldr	w2, [x24]
	mov	x0, x21
	mov	w1, #120
	mov	x3, x23
	bl	_kcalloc_node
	str	x0, [x19, #32]
	cbz	x0, LBB0_21
; %bb.18:
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
	cbz	w21, LBB0_28
; %bb.19:
	mov	x25, x0
	add	x26, x0, #108
	add	x27, x0, #104
	mov	x0, x20
	mov	w1, #0
	mov	x2, x26
	mov	x3, x27
	bl	_ntb_peer_mw_get_addr
	cbz	w0, LBB0_23
; %bb.20:
	mov	x24, x0
	mov	w23, #0
	b	LBB0_48
LBB0_21:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_52
LBB0_23:
	mov	x28, #0
	mov	x23, #0
	mov	w8, w21
	mov	w9, #120
	mul	x8, x8, x9
	sub	x8, x8, #120
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_ioremap_wc
	add	x8, x25, x28
	str	w0, [x8, #40]
	cbz	w0, LBB0_43
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	movi.2d	v0, #0000000000000000
	stur	q0, [x8, #88]
	stur	q0, [x8, #72]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x28
	b.eq	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x23, #1
	ldr	x25, [x19, #32]
	mov	w8, #120
	madd	x8, x22, x8, x25
	add	x26, x8, #108
	add	x9, x25, x28
	add	x2, x9, #228
	add	x27, x8, #104
	add	x3, x9, #224
	add	w1, w23, #1
	mov	x0, x20
	bl	_ntb_peer_mw_get_addr
	add	x28, x28, #120
	mov	x23, x22
	cbz	w0, LBB0_24
; %bb.27:
	mov	x24, x0
	mov	x23, x22
	b	LBB0_48
LBB0_28:
	mov	x0, x20
	bl	_ntb_db_valid_mask
	mov	x23, x0
	bl	_ilog2
	mov	x24, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_30
; %bb.29:
	sub	w24, w24, #1
	mov	w8, #1
	lsl	w1, w8, w24
	str	w1, [x19, #12]
	mov	x0, x20
	bl	_ntb_db_clear_mask
LBB0_30:
Lloh32:
	adrp	x8, _max_num_clients@GOTPAGE
Lloh33:
	ldr	x8, [x8, _max_num_clients@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
	cmp	w25, #0
	ccmp	w25, w24, #2, ne
	b.lo	LBB0_32
; %bb.31:
	ldr	w8, [x19, #4]
	cmp	w8, w24
	csel	w25, w8, w24, lo
LBB0_32:
	mov	x0, x25
	bl	_BIT_ULL
	sub	w8, w0, #1
	and	w8, w8, w23
	stp	w25, w8, [x19, #16]
	str	w8, [x19, #24]
Lloh35:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x25
	mov	w1, #120
	ldr	w3, [sp, #4]                    ; 4-byte Folded Reload
	bl	_kcalloc_node
	str	x0, [x19, #48]
	cbz	x0, LBB0_41
; %bb.33:
Lloh38:
	adrp	x21, _nt_debugfs_dir@GOTPAGE
Lloh39:
	ldr	x21, [x21, _nt_debugfs_dir@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_35
; %bb.34:
	ldr	w0, [x20]
	bl	_pci_name
	ldr	x1, [x21]
	bl	_debugfs_create_dir
	str	w0, [x19, #68]
LBB0_35:
	cbz	w25, LBB0_39
; %bb.36:
	mov	w23, #0
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ntb_transport_init_queue
	cbnz	w0, LBB0_42
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	add	w23, w23, #1
	cmp	w25, w23
	b.ne	LBB0_37
LBB0_39:
	add	x0, x19, #64
Lloh40:
	adrp	x8, _ntb_transport_link_work@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ntb_transport_link_work@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #60
Lloh43:
	adrp	x8, _ntb_transport_link_cleanup_work@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ntb_transport_link_cleanup_work@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh46:
	adrp	x2, _ntb_transport_ops@GOTPAGE
Lloh47:
	ldr	x2, [x2, _ntb_transport_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_ntb_set_ctx
	cbz	w0, LBB0_44
; %bb.40:
	mov	x24, x0
	b	LBB0_46
LBB0_41:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w24, w8
	mov	x23, x21
	b	LBB0_48
LBB0_42:
	mov	x24, x0
	b	LBB0_47
LBB0_43:
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_48
LBB0_44:
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_ntb_bus_init
	mov	x24, x0
	cbz	w0, LBB0_54
; %bb.45:
	mov	x0, x20
	bl	_ntb_clear_ctx
LBB0_46:
	mov	x23, x25
LBB0_47:
	ldr	x0, [x19, #48]
	bl	_kfree
LBB0_48:
	cbz	w23, LBB0_51
; %bb.49:
	mov	w8, #120
	mov	x9, #-80
	smaddl	x20, w23, w8, x9
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20]
	bl	_iounmap
	sub	x20, x20, #120
	sub	w23, w23, #1
	cbnz	w23, LBB0_50
LBB0_51:
	ldr	x0, [x19, #32]
	bl	_kfree
LBB0_52:
	mov	x0, x19
	bl	_kfree
LBB0_53:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_54:
	str	wzr, [x19, #28]
Lloh54:
	adrp	x8, _NTB_SPEED_AUTO@GOTPAGE
Lloh55:
	ldr	x8, [x8, _NTB_SPEED_AUTO@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _NTB_WIDTH_AUTO@GOTPAGE
Lloh58:
	ldr	x8, [x8, _NTB_WIDTH_AUTO@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ntb_link_enable
	mov	x0, x20
	bl	_ntb_link_event
	b	LBB0_53
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inbound MW based NTB API is required\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"doorbell is unsafe, proceed anyway...\n"

l_.str.2:                               ; @.str.2
	.asciz	"scratchpad is unsafe, proceed anyway...\n"

	.comm	_NTB_DEF_PEER_CNT,8,3           ; @NTB_DEF_PEER_CNT
l_.str.3:                               ; @.str.3
	.asciz	"Multi-port NTB devices unsupported\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_use_msi,8,3                    ; @use_msi
	.comm	_ntb_transport_msi_desc_changed,4,2 ; @ntb_transport_msi_desc_changed
	.comm	_NTB_TRANSPORT_MIN_SPADS,4,2    ; @NTB_TRANSPORT_MIN_SPADS
	.comm	_MW0_SZ_HIGH,4,2                ; @MW0_SZ_HIGH
	.comm	_max_num_clients,4,2            ; @max_num_clients
	.comm	_nt_debugfs_dir,8,3             ; @nt_debugfs_dir
	.comm	_ntb_transport_link_work,4,2    ; @ntb_transport_link_work
	.comm	_ntb_transport_link_cleanup_work,4,2 ; @ntb_transport_link_cleanup_work
	.comm	_ntb_transport_ops,4,2          ; @ntb_transport_ops
	.comm	_NTB_SPEED_AUTO,4,2             ; @NTB_SPEED_AUTO
	.comm	_NTB_WIDTH_AUTO,4,2             ; @NTB_WIDTH_AUTO
	.no_dead_strip	_ntb_transport_probe
.subsections_via_symbols
