	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_pci_bus_exit
_hv_pci_bus_exit:                       ## @hv_pci_bus_exit
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_hv_get_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.1:
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hv_pci_devices_present
	movq	%rbx, %rdi
	callq	_hv_send_resources_released
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_init_completion
	movq	_hv_pci_generic_compl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	_PCI_BUS_D0EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rdi
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rsi
	movl	$4, %edx
	movq	%r14, %rcx
	callq	_vmbus_sendpacket
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	leaq	-32(%rbp), %rdi
	callq	_wait_for_completion_timeout
LBB0_5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't send resources released packet(s)\n"

	.comm	_hv_pci_generic_compl,4,2       ## @hv_pci_generic_compl
	.comm	_PCI_BUS_D0EXIT,4,2             ## @PCI_BUS_D0EXIT
	.comm	_VM_PKT_DATA_INBAND,4,2         ## @VM_PKT_DATA_INBAND
	.comm	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED,4,2 ## @VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_hv_pci_bus_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_pci_bus_exit
_hv_pci_bus_exit:                       ; @hv_pci_bus_exit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	bl	_hv_get_drvdata
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x1, sp, #16
	mov	x0, x20
	bl	_hv_pci_devices_present
	mov	x0, x19
	bl	_hv_send_resources_released
	cbz	w0, LBB0_3
; %bb.2:
	add	x0, x19, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_init_completion
Lloh2:
	adrp	x8, _hv_pci_generic_compl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hv_pci_generic_compl@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	x20, [sp, #48]
Lloh5:
	adrp	x8, _PCI_BUS_D0EXIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_BUS_D0EXIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [sp, #40]
	str	w8, [x9]
	ldr	x0, [x19]
Lloh8:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	add	x1, sp, #40
	add	x3, sp, #40
	mov	w2, #4
	bl	_vmbus_sendpacket
	cbnz	w0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	add	x0, sp, #8
	bl	_wait_for_completion_timeout
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't send resources released packet(s)\n"

	.comm	_hv_pci_generic_compl,4,2       ; @hv_pci_generic_compl
	.comm	_PCI_BUS_D0EXIT,4,2             ; @PCI_BUS_D0EXIT
	.comm	_VM_PKT_DATA_INBAND,4,2         ; @VM_PKT_DATA_INBAND
	.comm	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED,4,2 ; @VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_hv_pci_bus_exit
.subsections_via_symbols
