	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_smt_write_rpl               ## -- Begin function do_smt_write_rpl
	.p2align	4, 0x90
_do_smt_write_rpl:                      ## @do_smt_write_rpl
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_GET_TID
	movl	%eax, %edi
	callq	_TID_TID_G
	movl	%eax, %r15d
	movq	8(%r14), %r12
	movq	(%rbx), %rax
	movq	_CPL_ERR_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r12), %r12
	movl	%r15d, %r13d
	movl	(%r14), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_err
	leaq	(%r12,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_SMT_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12,%r13,8)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPL_ERR_NONE,8,3               ## @CPL_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected SMT_WRITE_RPL status %u for entry %u\n"

	.comm	_SMT_STATE_ERROR,4,2            ## @SMT_STATE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_smt_write_rpl               ; -- Begin function do_smt_write_rpl
	.p2align	2
_do_smt_write_rpl:                      ; @do_smt_write_rpl
	.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	x21, x0
	mov	x0, x1
	bl	_GET_TID
	bl	_TID_TID_G
	mov	x20, x0
	ldr	x22, [x21, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CPL_ERR_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CPL_ERR_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x22, [x22]
	ldr	w0, [x21]
	ldr	x2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_err
	add	x19, x22, w20, uxtw #3
	mov	x0, x19
	bl	_spin_lock
Lloh5:
	adrp	x8, _SMT_STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMT_STATE_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	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	_spin_unlock
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CPL_ERR_NONE,8,3               ; @CPL_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected SMT_WRITE_RPL status %u for entry %u\n"

	.comm	_SMT_STATE_ERROR,4,2            ; @SMT_STATE_ERROR
.subsections_via_symbols
