	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_processor_power_verify_c3
_acpi_processor_power_verify_c3:        ## @acpi_processor_power_verify_c3
	.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
	cmpl	$0, 12(%rsi)
	je	LBB0_15
## %bb.1:
	movq	_errata@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ACPI_DEBUG_PRINT               ## TAILCALL
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	_acpi_processor_power_verify_c3.bm_check_flag(%rip), %eax
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, (%r14)
	movl	_acpi_processor_power_verify_c3.bm_control_flag(%rip), %ecx
	movl	%ecx, 4(%r14)
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.9:
	cmpl	$1, 8(%r14)
	jne	LBB0_10
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_14
LBB0_5:
	movl	12(%r14), %esi
	movq	%r14, %rdi
	callq	_acpi_processor_power_init_bm_check
	movl	(%r14), %eax
	movl	%eax, _acpi_processor_power_verify_c3.bm_check_flag(%rip)
	movl	4(%r14), %ecx
	movl	%ecx, _acpi_processor_power_verify_c3.bm_control_flag(%rip)
	testl	%eax, %eax
	jne	LBB0_8
LBB0_11:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rax
	movq	_ACPI_FADT_WBINVD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
LBB0_14:
	movl	$1, (%rbx)
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	_ACPI_BITREG_BUS_MASTER_RLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_acpi_write_bit_register        ## TAILCALL
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @acpi_processor_power_verify_c3.bm_check_flag
_acpi_processor_power_verify_c3.bm_check_flag:
	.long	4294967295                      ## 0xffffffff

	.p2align	2                               ## @acpi_processor_power_verify_c3.bm_control_flag
_acpi_processor_power_verify_c3.bm_control_flag:
	.long	4294967295                      ## 0xffffffff

	.comm	_errata,8,3                     ## @errata
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"C3 not supported on PIIX4 with Type-F DMA\n"

L_.str.1:                               ## @.str.1
	.asciz	"C3 support requires BM control\n"

L_.str.2:                               ## @.str.2
	.asciz	"C3 support without BM control\n"

	.comm	_acpi_gbl_FADT,4,2              ## @acpi_gbl_FADT
	.comm	_ACPI_FADT_WBINVD,4,2           ## @ACPI_FADT_WBINVD
L_.str.3:                               ## @.str.3
	.asciz	"Cache invalidation should work properly for C3 to be enabled on SMP systems\n"

	.comm	_ACPI_BITREG_BUS_MASTER_RLD,4,2 ## @ACPI_BITREG_BUS_MASTER_RLD
	.no_dead_strip	_acpi_processor_power_verify_c3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_processor_power_verify_c3
_acpi_processor_power_verify_c3:        ; @acpi_processor_power_verify_c3
	.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
	ldr	w8, [x1, #12]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _errata@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errata@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	b	_ACPI_DEBUG_PRINT
LBB0_4:
	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
LBB0_5:
	mov	x19, x1
	mov	x20, x0
	adrp	x21, _acpi_processor_power_verify_c3.bm_check_flag@PAGE
	ldr	w8, [x21, _acpi_processor_power_verify_c3.bm_check_flag@PAGEOFF]
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.6:
	str	w8, [x20]
Lloh5:
	adrp	x9, _acpi_processor_power_verify_c3.bm_control_flag@PAGE
Lloh6:
	ldr	w9, [x9, _acpi_processor_power_verify_c3.bm_control_flag@PAGEOFF]
	str	w9, [x20, #4]
	cbz	w8, LBB0_11
LBB0_7:
	cbnz	w9, LBB0_12
; %bb.8:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_12
LBB0_10:
	ldr	w1, [x20, #12]
	mov	x0, x20
	bl	_acpi_processor_power_init_bm_check
	ldp	w8, w9, [x20]
	str	w8, [x21, _acpi_processor_power_verify_c3.bm_check_flag@PAGEOFF]
	adrp	x10, _acpi_processor_power_verify_c3.bm_control_flag@PAGE
	str	w9, [x10, _acpi_processor_power_verify_c3.bm_control_flag@PAGEOFF]
	cbnz	w8, LBB0_7
LBB0_11:
Lloh9:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ACPI_FADT_WBINVD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ACPI_FADT_WBINVD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
Lloh15:
	adrp	x8, _ACPI_BITREG_BUS_MASTER_RLD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_BITREG_BUS_MASTER_RLD@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #1
	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
	b	_acpi_write_bit_register
LBB0_13:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_14:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @acpi_processor_power_verify_c3.bm_check_flag
_acpi_processor_power_verify_c3.bm_check_flag:
	.long	4294967295                      ; 0xffffffff

	.p2align	2                               ; @acpi_processor_power_verify_c3.bm_control_flag
_acpi_processor_power_verify_c3.bm_control_flag:
	.long	4294967295                      ; 0xffffffff

	.comm	_errata,8,3                     ; @errata
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"C3 not supported on PIIX4 with Type-F DMA\n"

l_.str.1:                               ; @.str.1
	.asciz	"C3 support requires BM control\n"

l_.str.2:                               ; @.str.2
	.asciz	"C3 support without BM control\n"

	.comm	_acpi_gbl_FADT,4,2              ; @acpi_gbl_FADT
	.comm	_ACPI_FADT_WBINVD,4,2           ; @ACPI_FADT_WBINVD
l_.str.3:                               ; @.str.3
	.asciz	"Cache invalidation should work properly for C3 to be enabled on SMP systems\n"

	.comm	_ACPI_BITREG_BUS_MASTER_RLD,4,2 ; @ACPI_BITREG_BUS_MASTER_RLD
	.no_dead_strip	_acpi_processor_power_verify_c3
.subsections_via_symbols
