	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace
_replace:                               ## @replace
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_generic
	movq	_INDIR@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edi
	callq	_generic
	movq	_ADDRL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_15
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.6:
	movq	(%rax), %rbx
	movl	24(%rbx), %edi
	callq	_generic
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edi
	callq	_isaddrop
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	24(%rbx), %r14d
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edi
	movq	16(%rax), %rax
	movq	(%rax), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_newnode
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_15:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_replace
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_replace
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	24(%rbx), %edi
	callq	_generic
	movq	_ADDRG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_11:
	callq	_newnode
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_12:
	xorl	%edi, %edi
	callq	_assert
LBB0_13:
	movl	$1, (%rbx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIR,8,3                      ## @INDIR
	.comm	_ADDRL,8,3                      ## @ADDRL
	.comm	_ADDRG,8,3                      ## @ADDRG
	.no_dead_strip	_replace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace
_replace:                               ; @replace
	.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
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_generic
Lloh0:
	adrp	x20, _INDIR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INDIR@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #24]
	bl	_generic
Lloh2:
	adrp	x8, _ADDRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADDRL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_8
; %bb.4:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.5:
	ldr	x19, [x8]
	ldr	w0, [x19, #24]
	bl	_generic
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #24]
	bl	_isaddrop
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w20, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #24]
	ldr	x8, [x8, #16]
	ldr	x3, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_newnode
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	b	LBB0_12
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_replace
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_replace
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x19, #24]
	bl	_generic
Lloh5:
	adrp	x8, _ADDRG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADDRG@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
	mov	x1, #0
	mov	x2, #0
LBB0_12:
	bl	_newnode
	mov	x19, x0
	b	LBB0_14
LBB0_13:
	mov	w0, #0
	bl	_assert
LBB0_14:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIR,8,3                      ; @INDIR
	.comm	_ADDRL,8,3                      ; @ADDRL
	.comm	_ADDRG,8,3                      ; @ADDRG
	.no_dead_strip	_replace
.subsections_via_symbols
