	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_notify_smm      ## -- Begin function acpi_processor_notify_smm
	.p2align	4, 0x90
_acpi_processor_notify_smm:             ## @acpi_processor_notify_smm
	.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	_acpi_processor_ppc_status@GOTPCREL(%rip), %r12
	movq	_PPC_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$0, _acpi_processor_notify_smm.is_done(%rip)
	jle	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_module_put
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	js	LBB0_8
## %bb.9:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, _acpi_processor_notify_smm.is_done(%rip)
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:
	cmpq	$0, 8(%r13)
	je	LBB0_11
## %bb.12:
	callq	_ACPI_DEBUG_PRINT
	movl	(%r13), %edi
	movl	8(%r13), %esi
	movl	$8, %edx
	callq	_acpi_os_write_port
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%r13), %edi
	callq	_ACPI_EXCEPTION
	movq	%r14, %rdi
	callq	_module_put
	movl	%r15d, %ebx
	jmp	LBB0_16
LBB0_8:
	movq	%r14, %rdi
	callq	_module_put
	movl	_acpi_processor_notify_smm.is_done(%rip), %ebx
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_15:
	movq	%r14, %rdi
	callq	_module_put
	jmp	LBB0_16
LBB0_14:
	movl	$1, _acpi_processor_notify_smm.is_done(%rip)
	movq	_PPC_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_16
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_acpi_processor_notify_smm.is_done,4,2 ## @acpi_processor_notify_smm.is_done
	.comm	_acpi_processor_ppc_status,4,2  ## @acpi_processor_ppc_status
	.comm	_PPC_REGISTERED,4,2             ## @PPC_REGISTERED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_acpi_gbl_FADT,16,3             ## @acpi_gbl_FADT
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No SMI port or pstate_control\n"

	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_PPC_IN_USE,4,2                 ## @PPC_IN_USE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_notify_smm      ; -- Begin function acpi_processor_notify_smm
	.p2align	2
_acpi_processor_notify_smm:             ; @acpi_processor_notify_smm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _acpi_processor_ppc_status@GOTPAGE
Lloh1:
	ldr	x21, [x21, _acpi_processor_ppc_status@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _PPC_REGISTERED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PPC_REGISTERED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_try_module_get
	cbz	w0, LBB0_6
; %bb.2:
	adrp	x22, _acpi_processor_notify_smm.is_done@PAGE
	ldr	w8, [x22, _acpi_processor_notify_smm.is_done@PAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_module_put
LBB0_4:
	mov	w20, #0
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	tbnz	w8, #31, LBB0_12
; %bb.10:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x22, _acpi_processor_notify_smm.is_done@PAGEOFF]
Lloh12:
	adrp	x23, _acpi_gbl_FADT@GOTPAGE
Lloh13:
	ldr	x23, [x23, _acpi_gbl_FADT@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x23, #8]
	cmp	w0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_13
; %bb.11:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	bl	_module_put
	ldr	w20, [x22, _acpi_processor_notify_smm.is_done@PAGEOFF]
	b	LBB0_8
LBB0_13:
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x23]
	ldr	w1, [x23, #8]
	mov	w2, #8
	bl	_acpi_os_write_port
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w0, [x23]
	bl	_ACPI_EXCEPTION
	mov	x0, x19
	bl	_module_put
	b	LBB0_8
LBB0_15:
	mov	w8, #1
	str	w8, [x22, _acpi_processor_notify_smm.is_done@PAGEOFF]
	ldr	w8, [x21]
Lloh16:
	adrp	x9, _PPC_IN_USE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PPC_IN_USE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_acpi_processor_notify_smm.is_done,4,2 ; @acpi_processor_notify_smm.is_done
	.comm	_acpi_processor_ppc_status,4,2  ; @acpi_processor_ppc_status
	.comm	_PPC_REGISTERED,4,2             ; @PPC_REGISTERED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_acpi_gbl_FADT,16,3             ; @acpi_gbl_FADT
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No SMI port or pstate_control\n"

	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_PPC_IN_USE,4,2                 ; @PPC_IN_USE
.subsections_via_symbols
