	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_append
_context_append:                        ## @context_append
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movl	8(%rax), %edx
	movl	%r15d, %ebx
	subl	%edx, %ebx
	addl	(%rax), %ebx
	addl	%r14d, %ecx
	shll	$4, %ecx
	addl	%ecx, 4(%rax)
	xorl	%eax, %eax
	callq	_wmb
	movq	8(%r12), %rdi
	movl	(%r12), %esi
	callq	_find_branch_descriptor
	movq	%rax, %r13
	orl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movq	16(%r12), %rax
	movq	_QUIRK_IR_WAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r12), %rax
	cmpq	%rax, %r13
	je	LBB0_4
## %bb.2:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DESCRIPTOR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, %r13d
	andl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_DESCRIPTOR_INPUT_MORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	cmpl	%eax, %r13d
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
LBB0_4:
	movq	%r15, 8(%r12)
	movl	%r14d, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIRK_IR_WAKE,4,2              ## @QUIRK_IR_WAKE
	.comm	_DESCRIPTOR_CMD,4,2             ## @DESCRIPTOR_CMD
	.comm	_DESCRIPTOR_INPUT_MORE,4,2      ## @DESCRIPTOR_INPUT_MORE
	.no_dead_strip	_context_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_append
_context_append:                        ; @context_append
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldp	w11, w9, [x8, #4]
	ldr	w10, [x8]
	sub	w9, w21, w9
	add	w22, w10, w9
	add	w9, w3, w2
	add	w9, w11, w9, lsl #4
	str	w9, [x8, #4]
	bl	_wmb
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	bl	_find_branch_descriptor
	mov	x23, x0
	orr	w22, w22, w19
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _QUIRK_IR_WAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QUIRK_IR_WAKE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x23, x8
	b.eq	LBB0_4
; %bb.2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _DESCRIPTOR_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DESCRIPTOR_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	and	w23, w0, w23
Lloh6:
	adrp	x8, _DESCRIPTOR_INPUT_MORE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DESCRIPTOR_INPUT_MORE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	cmp	w23, w0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
LBB0_4:
	str	x21, [x20, #8]
	str	w19, [x20]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIRK_IR_WAKE,4,2              ; @QUIRK_IR_WAKE
	.comm	_DESCRIPTOR_CMD,4,2             ; @DESCRIPTOR_CMD
	.comm	_DESCRIPTOR_INPUT_MORE,4,2      ; @DESCRIPTOR_INPUT_MORE
	.no_dead_strip	_context_append
.subsections_via_symbols
