	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_hvm_disable_emulated_devices
_xen_hvm_disable_emulated_devices:      ## @xen_hvm_disable_emulated_devices
	.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
	xorl	%eax, %eax
	callq	_xen_pv_domain
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_xen_disable_pv_disks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_xen_disable_pv_nics@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_13
## %bb.2:
	leaq	L_str.4(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_3:
	movq	_XEN_MAGIC_IOPORT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inw
	movq	_XMI_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.4:
	movq	_xen_disable_pv_disks@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
LBB0_7:
	movq	_XMI_UNPLUG_IDE_DISKS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movq	_xen_disable_pv_nics@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.12:
	testl	%ebx, %ebx
	je	LBB0_13
LBB0_14:
	movl	(%r14), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outw                           ## TAILCALL
LBB0_9:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_11:
	movq	_XMI_UNPLUG_NICS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_14
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xen_disable_pv_disks,8,3       ## @xen_disable_pv_disks
	.comm	_xen_disable_pv_nics,8,3        ## @xen_disable_pv_nics
	.comm	_XEN_MAGIC_IOPORT,4,2           ## @XEN_MAGIC_IOPORT
	.comm	_XMI_MAGIC,8,3                  ## @XMI_MAGIC
	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_XMI_UNPLUG_IDE_DISKS,4,2       ## @XMI_UNPLUG_IDE_DISKS
	.comm	_XMI_UNPLUG_NICS,4,2            ## @XMI_UNPLUG_NICS
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"XEN: disabling emulated nics"

L_str.3:                                ## @str.3
	.asciz	"XEN: disabling emulated disks"

L_str.4:                                ## @str.4
	.asciz	"PV devices cannot be disabled in PV guests"

	.no_dead_strip	_xen_hvm_disable_emulated_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_hvm_disable_emulated_devices
_xen_hvm_disable_emulated_devices:      ; @xen_hvm_disable_emulated_devices
	.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
	bl	_xen_pv_domain
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _xen_disable_pv_disks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xen_disable_pv_disks@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _xen_disable_pv_nics@GOTPAGE
Lloh4:
	ldr	x9, [x9, _xen_disable_pv_nics@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_15
; %bb.2:
Lloh6:
	adrp	x0, l_str.4@PAGE
Lloh7:
	add	x0, x0, l_str.4@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_puts
LBB0_3:
Lloh8:
	adrp	x20, _XEN_MAGIC_IOPORT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _XEN_MAGIC_IOPORT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_inw
Lloh10:
	adrp	x8, _XMI_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XMI_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.4:
Lloh13:
	adrp	x8, _xen_disable_pv_disks@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xen_disable_pv_disks@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w19, #0
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _bootverbose@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh19:
	adrp	x0, l_str.3@PAGE
Lloh20:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
LBB0_8:
Lloh21:
	adrp	x8, _XMI_UNPLUG_IDE_DISKS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XMI_UNPLUG_IDE_DISKS@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
LBB0_9:
Lloh24:
	adrp	x8, _xen_disable_pv_nics@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xen_disable_pv_nics@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
	cbz	w19, LBB0_15
LBB0_11:
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outw
LBB0_12:
Lloh27:
	adrp	x8, _bootverbose@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh30:
	adrp	x0, l_str@PAGE
Lloh31:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_14:
Lloh32:
	adrp	x8, _XMI_UNPLUG_NICS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XMI_UNPLUG_NICS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	orr	w19, w8, w19
	cbnz	w19, LBB0_11
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_xen_disable_pv_disks,8,3       ; @xen_disable_pv_disks
	.comm	_xen_disable_pv_nics,8,3        ; @xen_disable_pv_nics
	.comm	_XEN_MAGIC_IOPORT,4,2           ; @XEN_MAGIC_IOPORT
	.comm	_XMI_MAGIC,8,3                  ; @XMI_MAGIC
	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_XMI_UNPLUG_IDE_DISKS,4,2       ; @XMI_UNPLUG_IDE_DISKS
	.comm	_XMI_UNPLUG_NICS,4,2            ; @XMI_UNPLUG_NICS
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"XEN: disabling emulated nics"

l_str.3:                                ; @str.3
	.asciz	"XEN: disabling emulated disks"

l_str.4:                                ; @str.4
	.asciz	"PV devices cannot be disabled in PV guests"

	.no_dead_strip	_xen_hvm_disable_emulated_devices
.subsections_via_symbols
