	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nexus_xen_attach
_nexus_xen_attach:                      ## @nexus_xen_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_nexus_init_resources
	movq	%rbx, %rdi
	callq	_bus_generic_probe
	xorl	%eax, %eax
	callq	_xen_initial_domain
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_acpi_cpu_disabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_acpi_hpet_disabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_acpi_timer_disabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	xorl	%ecx, %ecx
	callq	_BUS_ADD_CHILD
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
	xorl	%r14d, %r14d
LBB0_3:
	movq	%rbx, %rdi
	callq	_bus_generic_attach
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_xen_initial_domain
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_device_get_softc
	movl	%eax, %edi
	callq	_acpi_install_wakeup_handler
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_cpu_disabled,4,2          ## @acpi_cpu_disabled
	.comm	_acpi_hpet_disabled,4,2         ## @acpi_hpet_disabled
	.comm	_acpi_timer_disabled,4,2        ## @acpi_timer_disabled
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acpi"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to add ACPI bus to Xen Dom0"

	.no_dead_strip	_nexus_xen_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nexus_xen_attach
_nexus_xen_attach:                      ; @nexus_xen_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	_nexus_init_resources
	mov	x0, x19
	bl	_bus_generic_probe
	bl	_xen_initial_domain
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _acpi_cpu_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_cpu_disabled@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _acpi_hpet_disabled@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_hpet_disabled@GOTPAGEOFF]
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _acpi_timer_disabled@GOTPAGE
Lloh7:
	ldr	x8, [x8, _acpi_timer_disabled@GOTPAGEOFF]
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #10
	mov	w3, #0
	bl	_BUS_ADD_CHILD
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x19
	bl	_bus_generic_attach
	mov	x19, x0
	bl	_xen_initial_domain
	cbz	x0, LBB0_7
; %bb.5:
	cbnz	w19, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_device_get_softc
	bl	_acpi_install_wakeup_handler
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_cpu_disabled,4,2          ; @acpi_cpu_disabled
	.comm	_acpi_hpet_disabled,4,2         ; @acpi_hpet_disabled
	.comm	_acpi_timer_disabled,4,2        ; @acpi_timer_disabled
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acpi"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to add ACPI bus to Xen Dom0"

	.no_dead_strip	_nexus_xen_attach
.subsections_via_symbols
