	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aarch64_replace_opcode         ## -- Begin function aarch64_replace_opcode
	.p2align	4, 0x90
_aarch64_replace_opcode:                ## @aarch64_replace_opcode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %r14
	movq	%rsi, 8(%rdi)
	movq	_AARCH64_MAX_OPND_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	(%rsi), %rcx
	movq	(%rdi), %rdx
	decq	%rax
	xorl	%edi, %edi
	movq	_AARCH64_OPND_NIL@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rbx
	movq	%rbx, (%rdx,%rdi,8)
	movq	(%rcx,%rdi,8), %rbx
	cmpq	(%r8), %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdi), %rbx
	cmpq	%rdi, %rax
	movq	%rbx, %rdi
	jne	LBB0_2
LBB0_4:
	movl	8(%r14), %eax
	movl	8(%rsi), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DEBUG_TRACE
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AARCH64_MAX_OPND_NUM,4,2       ## @AARCH64_MAX_OPND_NUM
	.comm	_AARCH64_OPND_NIL,8,3           ## @AARCH64_OPND_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"replace %s with %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aarch64_replace_opcode         ; -- Begin function aarch64_replace_opcode
	.p2align	2
_aarch64_replace_opcode:                ; @aarch64_replace_opcode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #8]
	str	x1, [x0, #8]
Lloh0:
	adrp	x8, _AARCH64_MAX_OPND_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AARCH64_MAX_OPND_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x1]
	ldr	x9, [x0]
	sub	x11, x10, #1
Lloh3:
	adrp	x10, _AARCH64_OPND_NIL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AARCH64_OPND_NIL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	str	x12, [x9], #8
	ldr	x12, [x8], #8
	ldr	x13, [x10]
	cmp	x12, x13
	ccmp	x11, #0, #4, ne
	sub	x11, x11, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x19, #8]
	ldr	w2, [x1, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_DEBUG_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AARCH64_MAX_OPND_NUM,4,2       ; @AARCH64_MAX_OPND_NUM
	.comm	_AARCH64_OPND_NIL,8,3           ; @AARCH64_OPND_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"replace %s with %s"

.subsections_via_symbols
