	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hardware_enable_all
_hardware_enable_all:                   ## @hardware_enable_all
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_kvm_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_kvm_usage_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %r14d
	movl	%r14d, (%rax)
	testl	%ecx, %ecx
	je	LBB0_1
LBB0_2:
	movq	_kvm_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_3:
	movabsq	$28556934310421309, %rax        ## imm = 0x6574616572633D
	movq	%rax, -59(%rbp)
	movabsq	$8242499175317853765, %rax      ## imm = 0x72633D544E455645
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%rdi, -88(%rbp)
	movq	$0, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_sprintf
	movq	_kvm_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_kobject_uevent_env
	xorl	%ebx, %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_hardware_enable_failed@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_hardware_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_on_each_cpu
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	callq	_hardware_disable_all_nolock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_kvm_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.5:
	negl	%ebx
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm_lock,4,2                   ## @kvm_lock
	.comm	_kvm_usage_count,4,2            ## @kvm_usage_count
	.comm	_hardware_enable_failed,4,2     ## @hardware_enable_failed
	.comm	_hardware_enable,4,2            ## @hardware_enable
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L___const.hardware_enable_all.event_string: ## @__const.hardware_enable_all.event_string
	.asciz	"EVENT=create"

L_.str:                                 ## @.str
	.asciz	"COUNT=%d"

	.comm	_kvm_dev,8,3                    ## @kvm_dev
	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.no_dead_strip	_hardware_enable_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hardware_enable_all
_hardware_enable_all:                   ; @hardware_enable_all
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x0, _kvm_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _kvm_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh5:
	adrp	x8, _kvm_usage_count@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kvm_usage_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w19, w9, #1
	str	w19, [x8]
	cbz	w9, LBB0_5
LBB0_1:
Lloh7:
	adrp	x0, _kvm_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _kvm_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_2:
Lloh9:
	adrp	x8, l___const.hardware_enable_all.event_string@PAGE
Lloh10:
	add	x8, x8, l___const.hardware_enable_all.event_string@PAGEOFF
	ldr	x9, [x8]
	stp	xzr, x9, [sp, #24]
	ldur	x8, [x8, #5]
	stur	x8, [sp, #37]
	add	x8, sp, #32
	sub	x9, x29, #44
	stp	x8, x9, [sp, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #44
	mov	x2, x19
	bl	_sprintf
Lloh13:
	adrp	x8, _kvm_dev@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kvm_dev@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
Lloh16:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_kobject_uevent_env
	mov	w0, #0
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh22:
	adrp	x20, _hardware_enable_failed@GOTPAGE
Lloh23:
	ldr	x20, [x20, _hardware_enable_failed@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
Lloh24:
	adrp	x8, _hardware_enable@GOTPAGE
Lloh25:
	ldr	x8, [x8, _hardware_enable@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w2, #1
	bl	_on_each_cpu
	mov	x0, x20
	bl	_atomic_read
	cbz	x0, LBB0_1
; %bb.6:
	bl	_hardware_disable_all_nolock
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
Lloh30:
	adrp	x0, _kvm_lock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _kvm_lock@GOTPAGEOFF]
	bl	_spin_unlock
	cbz	w20, LBB0_2
; %bb.7:
	neg	w0, w20
	b	LBB0_3
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm_lock,4,2                   ; @kvm_lock
	.comm	_kvm_usage_count,4,2            ; @kvm_usage_count
	.comm	_hardware_enable_failed,4,2     ; @hardware_enable_failed
	.comm	_hardware_enable,4,2            ; @hardware_enable
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l___const.hardware_enable_all.event_string: ; @__const.hardware_enable_all.event_string
	.asciz	"EVENT=create"

l_.str:                                 ; @.str
	.asciz	"COUNT=%d"

	.comm	_kvm_dev,8,3                    ; @kvm_dev
	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.no_dead_strip	_hardware_enable_all
.subsections_via_symbols
