	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar_context_link_page
_ar_context_link_page:                  ## @ar_context_link_page
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r15
	movl	%esi, %r14d
	movl	$-16, %edi
	callq	_cpu_to_le32
	leaq	(%r14,%r14,2), %rbx
	andl	%eax, (%r15,%rbx,8)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%r15,%rbx,8)
	movq	$0, 8(%r15,%rbx,8)
	xorl	%eax, %eax
	callq	_wmb
	movq	(%r12), %rbx
	movq	16(%r12), %r15
	movl	$1, %edi
	callq	_cpu_to_le32
	leaq	(%rbx,%rbx,2), %rcx
	orl	%eax, (%r15,%rcx,8)
	movq	%r14, (%r12)
	movl	8(%r12), %edi
	movl	12(%r12), %ebx
	callq	_CONTROL_SET
	movq	_CONTEXT_WAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_CONTEXT_WAKE,4,2               ## @CONTEXT_WAKE
	.no_dead_strip	_ar_context_link_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar_context_link_page
_ar_context_link_page:                  ; @ar_context_link_page
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	mov	w22, w1
	mov	w0, #-16
	bl	_cpu_to_le32
	mov	w23, #24
	umaddl	x19, w19, w23, x21
	ldr	w8, [x19]
	and	w8, w8, w0
	str	w8, [x19]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [x19, #16]
	str	xzr, [x19, #8]
	bl	_wmb
	ldr	x19, [x20, #16]
	ldr	x21, [x20]
	mov	w0, #1
	bl	_cpu_to_le32
	mul	x8, x21, x23
	ldr	w9, [x19, x8]
	orr	w9, w9, w0
	str	w9, [x19, x8]
	str	x22, [x20]
	ldp	w0, w19, [x20, #8]
	bl	_CONTROL_SET
	mov	x1, x0
Lloh3:
	adrp	x8, _CONTEXT_WAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONTEXT_WAKE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, 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	_reg_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_CONTEXT_WAKE,4,2               ; @CONTEXT_WAKE
	.no_dead_strip	_ar_context_link_page
.subsections_via_symbols
