	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_send_resources_allocated
_hv_send_resources_allocated:           ## @hv_send_resources_allocated
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hv_get_drvdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_pcichild_wslot
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-48(%rbp), %rdi
	callq	_init_completion
	movq	_hv_pci_generic_compl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	leaq	-56(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	_pci_protocol_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_PCI_RESOURCES_ASSIGNED2@GOTPCREL(%rip), %rax
	movq	_PCI_PROTOCOL_VERSION_1_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PCI_RESOURCES_ASSIGNED@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movq	%r13, %rdi
	callq	_put_pcichild
	movl	4(%r14), %edi
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$8, %edx
	movq	%r12, %rsi
	movq	%r12, %rcx
	callq	_vmbus_sendpacket
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_wait_for_response
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	jns	LBB0_2
## %bb.9:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %r13d
	jmp	LBB0_14
LBB0_11:
	xorl	%r13d, %r13d
LBB0_14:
	movq	%r12, %rdi
	callq	_kfree
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_protocol_version,8,3       ## @pci_protocol_version
	.comm	_PCI_PROTOCOL_VERSION_1_2,8,3   ## @PCI_PROTOCOL_VERSION_1_2
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hv_pci_generic_compl,4,2       ## @hv_pci_generic_compl
	.comm	_PCI_RESOURCES_ASSIGNED,4,2     ## @PCI_RESOURCES_ASSIGNED
	.comm	_PCI_RESOURCES_ASSIGNED2,4,2    ## @PCI_RESOURCES_ASSIGNED2
	.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	_EPROTO,4,2                     ## @EPROTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resource allocated returned 0x%x"

	.no_dead_strip	_hv_send_resources_allocated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_send_resources_allocated
_hv_send_resources_allocated:           ; @hv_send_resources_allocated
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.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	x20, x0
	bl	_hv_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w22, #0
	mov	x25, sp
	add	x23, x25, #8
Lloh3:
	adrp	x27, _PCI_RESOURCES_ASSIGNED2@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PCI_RESOURCES_ASSIGNED2@GOTPAGEOFF]
Lloh5:
	adrp	x28, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh6:
	ldr	x28, [x28, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh7:
	adrp	x26, _VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPAGE
Lloh8:
	ldr	x26, [x26, _VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w22, #256
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_get_pcichild_wslot
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x23
	bl	_init_completion
Lloh9:
	adrp	x8, _hv_pci_generic_compl@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hv_pci_generic_compl@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	x25, [x19, #8]
Lloh12:
	adrp	x8, _pci_protocol_version@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pci_protocol_version@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _PCI_PROTOCOL_VERSION_1_2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_PROTOCOL_VERSION_1_2@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh18:
	adrp	x8, _PCI_RESOURCES_ASSIGNED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCI_RESOURCES_ASSIGNED@GOTPAGEOFF]
	csel	x8, x8, x27, lt
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w8, [x24]
	str	w8, [x19]
	mov	x0, x24
	bl	_put_pcichild
	ldr	w0, [x20, #4]
	ldr	w4, [x28]
	ldr	w5, [x26]
	mov	x1, x19
	mov	w2, #8
	mov	x3, x19
	bl	_vmbus_sendpacket
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_wait_for_response
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [sp]
	tbz	x2, #63, LBB0_2
; %bb.7:
Lloh20:
	adrp	x8, _EPROTO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w24, w8
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_11
LBB0_8:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_9:
	mov	x24, x0
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_protocol_version,8,3       ; @pci_protocol_version
	.comm	_PCI_PROTOCOL_VERSION_1_2,8,3   ; @PCI_PROTOCOL_VERSION_1_2
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hv_pci_generic_compl,4,2       ; @hv_pci_generic_compl
	.comm	_PCI_RESOURCES_ASSIGNED,4,2     ; @PCI_RESOURCES_ASSIGNED
	.comm	_PCI_RESOURCES_ASSIGNED2,4,2    ; @PCI_RESOURCES_ASSIGNED2
	.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	_EPROTO,4,2                     ; @EPROTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resource allocated returned 0x%x"

	.no_dead_strip	_hv_send_resources_allocated
.subsections_via_symbols
