	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_pci_probe
_hv_pci_probe:                          ## @hv_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	%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	%rdi, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$72, (%rax)
	setb	%dil
	callq	_BUILD_BUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_hv_pcibus_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	8(%r14), %rax
	movl	20(%rax), %ebx
	shll	$8, %ebx
	orl	16(%rax), %ebx
	movl	%ebx, %edi
	callq	_hv_get_dom_num
	movl	%eax, %r12d
	movq	_HVPCI_DOM_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_4
## %bb.3:
	addq	$16, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_31
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_32
LBB0_4:
	cmpl	%ebx, %r12d
	je	LBB0_6
## %bb.5:
	leaq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_dev_info
LBB0_6:
	movl	%r12d, (%r15)
	movq	%r14, 64(%r15)
	leaq	60(%r15), %rdi
	movl	$1, %esi
	callq	_refcount_set
	leaq	56(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%r15), %rdi
	callq	_spin_lock_init
	leaq	40(%r15), %rdi
	callq	_spin_lock_init
	leaq	36(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	addq	$32, %rdi
	callq	_init_completion
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	movq	_pci_ring_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hv_pci_onchannelcallback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, (%rsp)
	movl	%edx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_vmbus_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hv_set_drvdata
	movq	%r14, %rdi
	callq	_hv_pci_protocol_negotiation
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.10:
	movq	%r15, %rdi
	callq	_hv_allocate_config_window
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.11:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movq	_PCI_CONFIG_MMIO_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioremap
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	leaq	8(%r14), %rdx
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_irq_domain_alloc_named_fwnode
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	$0, 4(%r15)
	je	LBB0_14
## %bb.16:
	movq	%r15, %rdi
	callq	_hv_pcie_init_irq_domain
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.17:
	movq	%r14, %rdi
	callq	_hv_pci_query_relations
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movq	%r14, %rdi
	callq	_hv_pci_enter_d0
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.19:
	movq	%r15, %rdi
	callq	_hv_pci_allocate_bridge_windows
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.20:
	movq	%r14, %rdi
	callq	_hv_send_resources_allocated
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	movq	%r15, %rdi
	callq	_prepopulate_bars
	movq	_hv_pcibus_probed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	%r15, %rdi
	callq	_create_root_hv_pci_bus
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_22
LBB0_23:
	movq	%r15, %rdi
	callq	_hv_pci_free_bridge_windows
LBB0_24:
	movl	16(%r15), %edi
	callq	_irq_domain_remove
LBB0_25:
	movl	4(%r15), %edi
	callq	_irq_domain_free_fwnode
	jmp	LBB0_26
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_30
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_26:
	movl	12(%r15), %edi
	callq	_iounmap
	jmp	LBB0_27
LBB0_12:
	leaq	16(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_27:
	movq	%r15, %rdi
	callq	_hv_free_config_window
LBB0_28:
	movl	(%r14), %edi
	callq	_vmbus_close
LBB0_29:
	movl	8(%r15), %edi
	callq	_destroy_workqueue
LBB0_30:
	movl	(%r15), %edi
	callq	_hv_put_dom_num
LBB0_31:
	movq	%r15, %rdi
	callq	_free_page
LBB0_32:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%r12d, %r12d
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hv_pcibus_init,4,2             ## @hv_pcibus_init
	.comm	_HVPCI_DOM_INVALID,4,2          ## @HVPCI_DOM_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to use dom# 0x%hx or other numbers"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"PCI dom# 0x%hx has collision, using 0x%hx"

L_.str.2:                               ## @.str.2
	.asciz	"hv_pci_%x"

	.comm	_pci_ring_size,4,2              ## @pci_ring_size
	.comm	_hv_pci_onchannelcallback,4,2   ## @hv_pci_onchannelcallback
	.comm	_PCI_CONFIG_MMIO_LENGTH,4,2     ## @PCI_CONFIG_MMIO_LENGTH
L_.str.3:                               ## @.str.3
	.asciz	"Unable to map a virtual address for config space\n"

L_.str.4:                               ## @.str.4
	.asciz	"%pUL"

	.comm	_hv_pcibus_probed,4,2           ## @hv_pcibus_probed
	.no_dead_strip	_hv_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_pci_probe
_hv_pci_probe:                          ; @hv_pci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #72
	cset	w0, lo
	bl	_BUILD_BUG_ON
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_get_zeroed_page
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _hv_pcibus_init@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hv_pcibus_init@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	mov	x21, x20
	ldr	x8, [x21, #8]!
	ldp	w8, w9, [x8, #16]
	orr	w22, w8, w9, lsl #8
	mov	x0, x22
	bl	_hv_get_dom_num
Lloh8:
	adrp	x8, _HVPCI_DOM_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HVPCI_DOM_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	add	x0, x20, #16
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_30
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_31
LBB0_4:
	mov	x23, x0
	cmp	w0, w22
	b.eq	LBB0_6
; %bb.5:
	add	x0, x20, #16
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_dev_info
LBB0_6:
	str	w23, [x19]
	str	x20, [x19, #64]
	add	x0, x19, #60
	mov	w1, #1
	bl	_refcount_set
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	add	x0, x19, #52
	bl	_INIT_LIST_HEAD
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	add	x0, x19, #44
	bl	_spin_lock_init
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x0, x19, #32
	bl	_init_completion
	ldr	w2, [x19]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	w0, [x19, #8]
	cbz	w0, LBB0_22
; %bb.7:
	ldr	w0, [x20]
Lloh23:
	adrp	x8, _pci_ring_size@GOTPAGE
Lloh24:
	ldr	x8, [x8, _pci_ring_size@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _hv_pci_onchannelcallback@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hv_pci_onchannelcallback@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	mov	x2, x1
	mov	x3, #0
	mov	w4, #0
	mov	x6, x19
	bl	_vmbus_open
	mov	x22, x0
	cbnz	w0, LBB0_28
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_hv_set_drvdata
	mov	x0, x20
	bl	_hv_pci_protocol_negotiation
	mov	x22, x0
	cbnz	w0, LBB0_27
; %bb.9:
	mov	x0, x19
	bl	_hv_allocate_config_window
	mov	x22, x0
	cbnz	w0, LBB0_27
; %bb.10:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _PCI_CONFIG_MMIO_LENGTH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCI_CONFIG_MMIO_LENGTH@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_ioremap
	str	w0, [x19, #12]
	cbz	w0, LBB0_25
; %bb.11:
	ldr	w0, [x24]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_kasprintf
	cbz	x0, LBB0_23
; %bb.12:
	mov	x21, x0
	bl	_irq_domain_alloc_named_fwnode
	str	w0, [x19, #4]
	mov	x0, x21
	bl	_kfree
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_23
; %bb.13:
	mov	x0, x19
	bl	_hv_pcie_init_irq_domain
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.14:
	mov	x0, x20
	bl	_hv_pci_query_relations
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.15:
	mov	x0, x20
	bl	_hv_pci_enter_d0
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.16:
	mov	x0, x19
	bl	_hv_pci_allocate_bridge_windows
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.17:
	mov	x0, x20
	bl	_hv_send_resources_allocated
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_prepopulate_bars
Lloh34:
	adrp	x8, _hv_pcibus_probed@GOTPAGE
Lloh35:
	ldr	x8, [x8, _hv_pcibus_probed@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_create_root_hv_pci_bus
	mov	x22, x0
	cbz	w0, LBB0_31
LBB0_19:
	mov	x0, x19
	bl	_hv_pci_free_bridge_windows
LBB0_20:
	ldr	w0, [x19, #16]
	bl	_irq_domain_remove
LBB0_21:
	ldr	w0, [x19, #4]
	bl	_irq_domain_free_fwnode
	b	LBB0_24
LBB0_22:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_29
LBB0_23:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_24:
	ldr	w0, [x19, #12]
	bl	_iounmap
	b	LBB0_26
LBB0_25:
	add	x0, x20, #16
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_26:
	mov	x0, x19
	bl	_hv_free_config_window
LBB0_27:
	ldr	w0, [x20]
	bl	_vmbus_close
LBB0_28:
	ldr	w0, [x19, #8]
	bl	_destroy_workqueue
LBB0_29:
	ldr	w0, [x19]
	bl	_hv_put_dom_num
LBB0_30:
	mov	x0, x19
	bl	_free_page
LBB0_31:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hv_pcibus_init,4,2             ; @hv_pcibus_init
	.comm	_HVPCI_DOM_INVALID,4,2          ; @HVPCI_DOM_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to use dom# 0x%hx or other numbers"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"PCI dom# 0x%hx has collision, using 0x%hx"

l_.str.2:                               ; @.str.2
	.asciz	"hv_pci_%x"

	.comm	_pci_ring_size,4,2              ; @pci_ring_size
	.comm	_hv_pci_onchannelcallback,4,2   ; @hv_pci_onchannelcallback
	.comm	_PCI_CONFIG_MMIO_LENGTH,4,2     ; @PCI_CONFIG_MMIO_LENGTH
l_.str.3:                               ; @.str.3
	.asciz	"Unable to map a virtual address for config space\n"

l_.str.4:                               ; @.str.4
	.asciz	"%pUL"

	.comm	_hv_pcibus_probed,4,2           ; @hv_pcibus_probed
	.no_dead_strip	_hv_pci_probe
.subsections_via_symbols
