	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmd_probe
_vmd_probe:                             ## @vmd_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_VMD_CFGBAR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	callq	_resource_size
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	jle	LBB0_15
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, 8(%rax)
	movq	%r12, %rdi
	callq	_pcim_enable_device
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	movq	(%r14), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pcim_iomap
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_21
## %bb.4:
	movq	%r12, %rdi
	callq	_pci_set_master
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testq	%rax, %rax
	jne	LBB0_20
LBB0_6:
	movq	%r12, %rdi
	callq	_pci_msix_vec_count
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_20
## %bb.7:
	movq	_PCI_IRQ_MSIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_pci_alloc_irq_vectors
	movl	%eax, %ebx
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.10:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_init_srcu_struct
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pci_irq_vector
	movq	_vmd_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	24(%r15), %r9
	addq	%r14, %r9
	movq	%r12, %rdi
	movl	%eax, %esi
	leaq	L_.str(%rip), %r8
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%r15), %rax
	leaq	(%rax,%r14), %rdi
	addq	$12, %rdi
	addq	$8, %r14
	callq	_init_srcu_struct
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_18
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_20:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_22:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_vmd_enable_domain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.23:
	movq	8(%r15), %rdi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_VMD_CFGBAR,8,3                 ## @VMD_CFGBAR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_IRQ_MSIX,4,2               ## @PCI_IRQ_MSIX
	.comm	_vmd_irq,4,2                    ## @vmd_irq
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmd"

L_.str.1:                               ## @.str.1
	.asciz	"Bound to PCI domain %04x\n"

	.no_dead_strip	_vmd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmd_probe
_vmd_probe:                             ; @vmd_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _VMD_CFGBAR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VMD_CFGBAR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x8, x9, lsl #2
	bl	_resource_size
	cmp	w0, #256, lsl #12               ; =1048576
	b.lt	LBB0_15
; %bb.1:
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
	str	x20, [x0, #8]
	mov	x0, x20
	bl	_pcim_enable_device
	tbnz	w0, #31, LBB0_18
; %bb.3:
	ldr	x1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_pcim_iomap
	str	w0, [x21, #32]
	cbz	w0, LBB0_15
; %bb.4:
	mov	x0, x20
	bl	_pci_set_master
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask_and_coherent
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask_and_coherent
	cbnz	x0, LBB0_19
LBB0_6:
	mov	x0, x20
	bl	_pci_msix_vec_count
	str	w0, [x21]
	tbnz	w0, #31, LBB0_19
; %bb.7:
	mov	x2, x0
Lloh4:
	adrp	x8, _PCI_IRQ_MSIX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCI_IRQ_MSIX@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_pci_alloc_irq_vectors
	mov	x1, x0
	str	w0, [x21]
	tbnz	w0, #31, LBB0_17
; %bb.8:
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x21, #24]
	cbz	x0, LBB0_15
; %bb.9:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.10:
	add	x0, x0, #4
	bl	_init_srcu_struct
	mov	x1, x0
	cbnz	w0, LBB0_17
; %bb.11:
	mov	x26, #0
	mov	x22, #0
Lloh7:
	adrp	x24, _vmd_irq@GOTPAGE
Lloh8:
	ldr	x24, [x24, _vmd_irq@GOTPAGEOFF]
Lloh9:
	adrp	x25, _IRQF_NO_THREAD@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh11:
	adrp	x23, l_.str@PAGE
Lloh12:
	add	x23, x23, l_.str@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x0, x8, x26
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	x1, x22
	bl	_pci_irq_vector
	mov	x1, x0
	ldr	w2, [x24]
	ldr	w3, [x25]
	ldr	x8, [x21, #24]
	add	x5, x8, x26
	mov	x0, x20
	mov	x4, x23
	bl	_devm_request_irq
	cbnz	w0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x26, #8
	ldr	x8, [x21, #24]
	add	x8, x8, x26
	add	x0, x8, #12
	bl	_init_srcu_struct
	mov	x1, x0
	mov	x26, x27
	cbz	w0, LBB0_12
	b	LBB0_17
LBB0_15:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_17:
	mov	x0, x1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x1, x0
	b	LBB0_17
LBB0_19:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_20:
	add	x0, x21, #16
	bl	_spin_lock_init
	mov	x0, x20
	mov	x1, x21
	bl	_pci_set_drvdata
	ldr	x1, [x19]
	mov	x0, x21
	bl	_vmd_enable_domain
	mov	x1, x0
	cbnz	w0, LBB0_17
; %bb.21:
	ldr	x0, [x21, #8]
	ldr	w2, [x21, #4]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w1, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VMD_CFGBAR,8,3                 ; @VMD_CFGBAR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_IRQ_MSIX,4,2               ; @PCI_IRQ_MSIX
	.comm	_vmd_irq,4,2                    ; @vmd_irq
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmd"

l_.str.1:                               ; @.str.1
	.asciz	"Bound to PCI domain %04x\n"

	.no_dead_strip	_vmd_probe
.subsections_via_symbols
