	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_l2t_write_rpl               ## -- Begin function do_l2t_write_rpl
	.p2align	4, 0x90
_do_l2t_write_rpl:                      ## @do_l2t_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, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_GET_TID
	movl	%eax, %r12d
	movq	_L2T_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	decl	%ebx
	andl	%r12d, %ebx
	movq	(%r15), %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.9:
	movl	8(%r14), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	movq	_F_SYNC_WR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %r12
	movl	%ebx, %eax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r12,%rbx,8), %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	(%r12,%rbx,8), %rax
	movq	_L2T_STATE_SWITCHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	leaq	(%r12,%rbx,8), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_send_pending
	movq	16(%r12,%rbx,8), %rax
	movq	_NUD_STALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	jne	LBB0_4
## %bb.5:
	movq	_L2T_STATE_VALID@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_L2T_STATE_STALE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_7:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2T_SIZE,4,2                   ## @L2T_SIZE
	.comm	_CPL_ERR_NONE,8,3               ## @CPL_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected L2T_WRITE_RPL status %u for entry %u\n"

	.comm	_F_SYNC_WR,4,2                  ## @F_SYNC_WR
	.comm	_L2T_STATE_SWITCHING,8,3        ## @L2T_STATE_SWITCHING
	.comm	_NUD_STALE,4,2                  ## @NUD_STALE
	.comm	_L2T_STATE_STALE,8,3            ## @L2T_STATE_STALE
	.comm	_L2T_STATE_VALID,8,3            ## @L2T_STATE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_l2t_write_rpl               ; -- Begin function do_l2t_write_rpl
	.p2align	2
_do_l2t_write_rpl:                      ; @do_l2t_write_rpl
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_GET_TID
	mov	x22, x0
Lloh0:
	adrp	x8, _L2T_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2T_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w19, w8, w0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _CPL_ERR_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPL_ERR_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	ldr	x2, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	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
	b	_dev_err
LBB0_2:
Lloh8:
	adrp	x8, _F_SYNC_WR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_SYNC_WR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x20]
	ldr	x23, [x8]
	mov	w8, #24
	umaddl	x22, w19, w8, x23
	add	x21, x22, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _L2T_STATE_SWITCHING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _L2T_STATE_SWITCHING@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_send_pending
	mov	w8, #24
	madd	x8, x19, x8, x23
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _NUD_STALE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NUD_STALE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _L2T_STATE_STALE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _L2T_STATE_STALE@GOTPAGEOFF]
Lloh19:
	adrp	x11, _L2T_STATE_VALID@GOTPAGE
Lloh20:
	ldr	x11, [x11, _L2T_STATE_VALID@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	x8, [x8]
	str	x8, [x22]
LBB0_5:
	mov	x0, x21
	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
	b	_spin_unlock
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_L2T_SIZE,4,2                   ; @L2T_SIZE
	.comm	_CPL_ERR_NONE,8,3               ; @CPL_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected L2T_WRITE_RPL status %u for entry %u\n"

	.comm	_F_SYNC_WR,4,2                  ; @F_SYNC_WR
	.comm	_L2T_STATE_SWITCHING,8,3        ; @L2T_STATE_SWITCHING
	.comm	_NUD_STALE,4,2                  ; @NUD_STALE
	.comm	_L2T_STATE_STALE,8,3            ; @L2T_STATE_STALE
	.comm	_L2T_STATE_VALID,8,3            ; @L2T_STATE_VALID
.subsections_via_symbols
