	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ntb_pci_probe
_intel_ntb_pci_probe:                   ## @intel_ntb_pci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dev_to_node
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pdev_is_gen1
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	movl	%ebx, %edx
	callq	_kzalloc_node
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ndev_init_struct
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_ntb_init_pci
	testl	%eax, %eax
	jne	LBB0_3
## %bb.9:
	movq	%r14, %rdi
	callq	_xeon_init_dev
	jmp	LBB0_13
LBB0_4:
	movq	%r15, %rdi
	callq	_pdev_is_gen3
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	movl	%ebx, %edx
	callq	_kzalloc_node
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ndev_init_struct
	movq	_intel_ntb3_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_ntb_init_pci
	testl	%eax, %eax
	je	LBB0_12
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_12:
	movq	%r14, %rdi
	callq	_gen3_init_dev
LBB0_13:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	callq	_ndev_reset_unsafe_flags
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_ndev_init_debugfs
	movq	%r14, %rdi
	callq	_ntb_register_device
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ndev_deinit_debugfs
	movq	%r15, %rdi
	callq	_pdev_is_gen1
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_pdev_is_gen3
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	callq	_xeon_deinit_dev
LBB0_18:
	movq	%r14, %rdi
	callq	_intel_ntb_deinit_pci
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_intel_ntb3_ops,4,2             ## @intel_ntb3_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NTB device registered.\n"

	.no_dead_strip	_intel_ntb_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ntb_pci_probe
_intel_ntb_pci_probe:                   ; @intel_ntb_pci_probe
	.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	x19, x0
	bl	_dev_to_node
	mov	x20, x0
	mov	x0, x19
	bl	_pdev_is_gen1
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	mov	x2, x20
	bl	_kzalloc_node
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	bl	_ndev_init_struct
	mov	x0, x20
	mov	x1, x19
	bl	_intel_ntb_init_pci
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_xeon_init_dev
	mov	x21, x0
	cbnz	w0, LBB0_16
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	bl	_pdev_is_gen3
	cbz	x0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	mov	x2, x20
	bl	_kzalloc_node
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
	mov	x1, x19
	bl	_ndev_init_struct
Lloh6:
	adrp	x8, _intel_ntb3_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_ntb3_ops@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_ntb_init_pci
	cbz	w0, LBB0_11
LBB0_7:
	mov	x21, x0
	b	LBB0_17
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_11:
	mov	x0, x20
	bl	_gen3_init_dev
	mov	x21, x0
	cbnz	w0, LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_ndev_reset_unsafe_flags
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_ndev_init_debugfs
	mov	x0, x20
	bl	_ntb_register_device
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.13:
	mov	x0, x20
	bl	_ndev_deinit_debugfs
	mov	x0, x19
	bl	_pdev_is_gen1
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_pdev_is_gen3
	cbz	x0, LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_xeon_deinit_dev
LBB0_16:
	mov	x0, x20
	bl	_intel_ntb_deinit_pci
LBB0_17:
	mov	x0, x20
	bl	_kfree
LBB0_18:
	mov	x0, x21
	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_19:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_intel_ntb3_ops,4,2             ; @intel_ntb3_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NTB device registered.\n"

	.no_dead_strip	_intel_ntb_pci_probe
.subsections_via_symbols
