	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmbus_acpi_add
_vmbus_acpi_add:                        ## @vmbus_acpi_add
	.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, %rbx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_hv_acpi_dev@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	movl	(%rdi), %edi
	movq	_METHOD_NAME__CRS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_vmbus_walk_resources@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_acpi_walk_resources
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	_probe_event@GOTPCREL(%rip), %rdi
	callq	_complete
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	negl	%r13d
	movq	%rbx, %rdi
	callq	_vmbus_acpi_remove
	movl	%r13d, %r14d
	jmp	LBB0_9
LBB0_1:
	movq	_hyperv_mmio@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_acpi_walk_resources
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	_vmbus_reserve_fb
LBB0_6:
	movq	_probe_event@GOTPCREL(%rip), %rdi
	callq	_complete
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_hv_acpi_dev,8,3                ## @hv_acpi_dev
	.comm	_METHOD_NAME__CRS,4,2           ## @METHOD_NAME__CRS
	.comm	_vmbus_walk_resources,4,2       ## @vmbus_walk_resources
	.comm	_hyperv_mmio,8,3                ## @hyperv_mmio
	.comm	_probe_event,4,2                ## @probe_event
	.no_dead_strip	_vmbus_acpi_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmbus_acpi_add
_vmbus_acpi_add:                        ; @vmbus_acpi_add
	.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	x19, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _hv_acpi_dev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hv_acpi_dev@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
	ldr	w0, [x0]
Lloh6:
	adrp	x20, _METHOD_NAME__CRS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _METHOD_NAME__CRS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x21, _vmbus_walk_resources@GOTPAGE
Lloh9:
	ldr	x21, [x21, _vmbus_walk_resources@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, #0
	bl	_acpi_walk_resources
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.1:
Lloh10:
	adrp	x0, _probe_event@GOTPAGE
Lloh11:
	ldr	x0, [x0, _probe_event@GOTPAGEOFF]
	bl	_complete
	cbz	w22, LBB0_8
; %bb.2:
	neg	w20, w22
	mov	x0, x19
	bl	_vmbus_acpi_remove
	b	LBB0_9
LBB0_3:
Lloh12:
	adrp	x22, _hyperv_mmio@GOTPAGE
Lloh13:
	ldr	x22, [x22, _hyperv_mmio@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x3, #0
	bl	_acpi_walk_resources
	bl	_ACPI_FAILURE
	ldr	x8, [x22]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_4
; %bb.6:
	bl	_vmbus_reserve_fb
LBB0_7:
Lloh14:
	adrp	x0, _probe_event@GOTPAGE
Lloh15:
	ldr	x0, [x0, _probe_event@GOTPAGEOFF]
	bl	_complete
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_hv_acpi_dev,8,3                ; @hv_acpi_dev
	.comm	_METHOD_NAME__CRS,4,2           ; @METHOD_NAME__CRS
	.comm	_vmbus_walk_resources,4,2       ; @vmbus_walk_resources
	.comm	_hyperv_mmio,8,3                ; @hyperv_mmio
	.comm	_probe_event,4,2                ; @probe_event
	.no_dead_strip	_vmbus_acpi_add
.subsections_via_symbols
