	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function op_add_code
_op_add_code:                           ## @op_add_code
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_TRACE_BEGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	cmpl	%eax, (%rdi)
	je	LBB0_5
## %bb.3:
	movl	%eax, (%rdi)
	movq	_KERNEL_CTX_SWITCH@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movq	_IS_KERNEL@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
LBB0_5:
	cmpq	%r14, 8(%rdi)
	je	LBB0_7
## %bb.6:
	movq	%r14, 8(%rdi)
	movq	_USER_CTX_SWITCH@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
LBB0_7:
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.8:
	movq	_USER_CTX_SWITCH@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%esi, %esi
	testq	%rbx, %r12
	setne	%sil
	leaq	-40(%rbp), %rdi
	callq	_op_cpu_buffer_write_reserve
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_ESCAPE_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, (%rax)
	testq	%rbx, %r12
	je	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_op_cpu_buffer_add_data
LBB0_12:
	leaq	-40(%rbp), %rdi
	callq	_op_cpu_buffer_write_commit
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE_BEGIN,8,3                ## @TRACE_BEGIN
	.comm	_KERNEL_CTX_SWITCH,8,3          ## @KERNEL_CTX_SWITCH
	.comm	_IS_KERNEL,8,3                  ## @IS_KERNEL
	.comm	_USER_CTX_SWITCH,8,3            ## @USER_CTX_SWITCH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ESCAPE_CODE,4,2                ## @ESCAPE_CODE
	.no_dead_strip	_op_add_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function op_add_code
_op_add_code:                           ; @op_add_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
Lloh0:
	adrp	x8, _TRACE_BEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, #0
	csel	x20, xzr, x8, eq
	cmp	w2, #0
	cset	w8, ne
	ldr	w9, [x0]
	cmp	w9, w8
	b.eq	LBB0_3
; %bb.1:
	str	w8, [x0]
Lloh3:
	adrp	x8, _KERNEL_CTX_SWITCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERNEL_CTX_SWITCH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	orr	x20, x8, x20
	cbz	w2, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _IS_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IS_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	orr	x20, x8, x20
LBB0_3:
	ldr	x9, [x0, #8]
Lloh9:
	adrp	x8, _USER_CTX_SWITCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USER_CTX_SWITCH@GOTPAGEOFF]
	cmp	x9, x19
	b.eq	LBB0_5
; %bb.4:
	str	x19, [x0, #8]
	ldr	x9, [x8]
	orr	x20, x9, x20
LBB0_5:
	cbz	x20, LBB0_10
; %bb.6:
	ldr	x8, [x8]
	ands	x21, x8, x20
	cset	w1, ne
	add	x0, sp, #8
	bl	_op_cpu_buffer_write_reserve
	cbz	x0, LBB0_11
; %bb.7:
Lloh11:
	adrp	x8, _ESCAPE_CODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESCAPE_CODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x20, [x0]
	cbz	x21, LBB0_9
; %bb.8:
	add	x0, sp, #8
	mov	x1, x19
	bl	_op_cpu_buffer_add_data
LBB0_9:
	add	x0, sp, #8
	bl	_op_cpu_buffer_write_commit
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE_BEGIN,8,3                ; @TRACE_BEGIN
	.comm	_KERNEL_CTX_SWITCH,8,3          ; @KERNEL_CTX_SWITCH
	.comm	_IS_KERNEL,8,3                  ; @IS_KERNEL
	.comm	_USER_CTX_SWITCH,8,3            ; @USER_CTX_SWITCH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ESCAPE_CODE,4,2                ; @ESCAPE_CODE
	.no_dead_strip	_op_add_code
.subsections_via_symbols
