	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_init_pci
_idt_init_pci:                          ## @idt_init_pci
	.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, %r14
	movq	16(%rdi), %r15
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_5:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_9:
	leaq	8(%r14), %rbx
	movq	%r15, %rdi
	callq	_dma_get_mask
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_coerce_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_pci_enable_pcie_error_reporting
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_pci_cleanup_aer_uncorrect_error_status
LBB0_14:
	movq	%r15, %rdi
	callq	_pcim_enable_device
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_18
LBB0_16:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	_NTB_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pcim_iomap_regions_request_all
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_pci_clear_master
LBB0_18:
	movq	%r15, %rdi
	callq	_pci_disable_pcie_error_reporting
	jmp	LBB0_19
LBB0_20:
	movq	%r15, %rdi
	callq	_pcim_iomap_table
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set DMA bit mask\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot set DMA highmem bit mask\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set consistent DMA bit mask\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot set consistent DMA highmem bit mask\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to set NTB device DMA bit mask\n"

L_.str.5:                               ## @.str.5
	.asciz	"PCIe AER capability disabled\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to enable PCIe device\n"

	.comm	_NTB_NAME,4,2                   ## @NTB_NAME
L_.str.7:                               ## @.str.7
	.asciz	"Failed to request resources\n"

L_.str.8:                               ## @.str.8
	.asciz	"NT-function PCIe interface initialized"

	.no_dead_strip	_idt_init_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_init_pci
_idt_init_pci:                          ; @idt_init_pci
	.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	x20, x0
	ldr	x19, [x0, #16]
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_4:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_8
; %bb.5:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_8:
	add	x21, x20, #8
	mov	x0, x19
	bl	_dma_get_mask
	mov	x1, x0
	mov	x0, x21
	bl	_dma_coerce_mask_and_coherent
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	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_12:
	mov	x0, x19
	bl	_pci_enable_pcie_error_reporting
	cbz	w0, LBB0_14
; %bb.13:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_pci_cleanup_aer_uncorrect_error_status
LBB0_15:
	mov	x0, x19
	bl	_pcim_enable_device
	cbz	w0, LBB0_17
; %bb.16:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_pci_set_master
Lloh14:
	adrp	x8, _NTB_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NTB_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_pcim_iomap_regions_request_all
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.18:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_pci_clear_master
LBB0_19:
	mov	x0, x19
	bl	_pci_disable_pcie_error_reporting
	b	LBB0_11
LBB0_20:
	mov	x0, x19
	bl	_pcim_iomap_table
	ldr	w8, [x0]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set DMA bit mask\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot set DMA highmem bit mask\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set consistent DMA bit mask\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot set consistent DMA highmem bit mask\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to set NTB device DMA bit mask\n"

l_.str.5:                               ; @.str.5
	.asciz	"PCIe AER capability disabled\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to enable PCIe device\n"

	.comm	_NTB_NAME,4,2                   ; @NTB_NAME
l_.str.7:                               ; @.str.7
	.asciz	"Failed to request resources\n"

l_.str.8:                               ; @.str.8
	.asciz	"NT-function PCIe interface initialized"

	.no_dead_strip	_idt_init_pci
.subsections_via_symbols
