	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_scom
_write_scom:                            ## @write_scom
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_mfmsr
	movl	%eax, %r14d
	movq	_PSL_EE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r14d, %edi
	callq	_mtmsr
	xorl	%eax, %eax
	callq	_isync
	movq	_SPR_SCOMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %edx
	callq	_mtspr64
	xorl	%eax, %eax
	callq	_isync
	movq	_SPR_SCOMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCOMC_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_mtspr
	xorl	%eax, %eax
	callq	_isync
	movl	%r14d, %edi
	callq	_mtmsr
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isync                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSL_EE,4,2                     ## @PSL_EE
	.comm	_SPR_SCOMD,4,2                  ## @SPR_SCOMD
	.comm	_SPR_SCOMC,4,2                  ## @SPR_SCOMC
	.comm	_SCOMC_WRITE,4,2                ## @SCOMC_WRITE
	.no_dead_strip	_write_scom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_scom
_write_scom:                            ; @write_scom
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_mfmsr
	mov	x21, x0
Lloh0:
	adrp	x8, _PSL_EE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSL_EE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w0, w0, w8
	bl	_mtmsr
	bl	_isync
Lloh3:
	adrp	x8, _SPR_SCOMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPR_SCOMD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x2, x19
	bl	_mtspr64
	bl	_isync
Lloh6:
	adrp	x8, _SPR_SCOMC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPR_SCOMC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SCOMC_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCOMC_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_mtspr
	bl	_isync
	mov	x0, x21
	bl	_mtmsr
	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	_isync
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PSL_EE,4,2                     ; @PSL_EE
	.comm	_SPR_SCOMD,4,2                  ; @SPR_SCOMD
	.comm	_SPR_SCOMC,4,2                  ; @SPR_SCOMC
	.comm	_SCOMC_WRITE,4,2                ; @SCOMC_WRITE
	.no_dead_strip	_write_scom
.subsections_via_symbols
