	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_power_extras
_cleanup_power_extras:                  ## @cleanup_power_extras
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_curthread@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	movq	_PCB_CFSCR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_SPR_FSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_mtspr
LBB0_3:
	movq	_PCB_CDSCR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_SPR_DSCRP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mtspr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PCB_CFSCR,4,2                  ## @PCB_CFSCR
	.comm	_SPR_FSCR,4,2                   ## @SPR_FSCR
	.comm	_PCB_CDSCR,4,2                  ## @PCB_CDSCR
	.comm	_SPR_DSCRP,4,2                  ## @SPR_DSCRP
	.no_dead_strip	_cleanup_power_extras
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_power_extras
_cleanup_power_extras:                  ; @cleanup_power_extras
	.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
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x0]
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _PCB_CFSCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCB_CFSCR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _SPR_FSCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPR_FSCR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_mtspr
LBB0_4:
Lloh9:
	adrp	x8, _PCB_CDSCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCB_CDSCR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_1
; %bb.5:
Lloh12:
	adrp	x8, _SPR_DSCRP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPR_DSCRP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtspr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PCB_CFSCR,4,2                  ; @PCB_CFSCR
	.comm	_SPR_FSCR,4,2                   ; @SPR_FSCR
	.comm	_PCB_CDSCR,4,2                  ; @PCB_CDSCR
	.comm	_SPR_DSCRP,4,2                  ; @SPR_DSCRP
	.no_dead_strip	_cleanup_power_extras
.subsections_via_symbols
