	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bt_relink
___bt_relink:                           ## @__bt_relink
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	movq	_P_INVALID@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	je	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %rcx
	movq	%rcx, 8(%rax)
	movl	(%r14), %edi
	movq	_MPOOL_DIRTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_mpool_put
	movq	(%rbx), %rsi
LBB0_4:
	movq	8(%r15), %rax
	xorl	%ebx, %ebx
	cmpq	%rsi, %rax
	je	LBB0_7
## %bb.5:
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movl	(%r14), %edi
	movq	_MPOOL_DIRTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_mpool_put
	jmp	LBB0_7
LBB0_2:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_INVALID,8,3                  ## @P_INVALID
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_MPOOL_DIRTY,4,2                ## @MPOOL_DIRTY
	.no_dead_strip	___bt_relink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bt_relink
___bt_relink:                           ; @__bt_relink
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x1, [x1]
Lloh0:
	adrp	x21, _P_INVALID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _P_INVALID@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x19]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_7
; %bb.2:
	mov	x1, x0
	ldr	x8, [x20, #8]
	str	x8, [x0, #8]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _MPOOL_DIRTY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPOOL_DIRTY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_mpool_put
	ldr	x1, [x21]
LBB0_3:
	ldr	x8, [x20, #8]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19]
	mov	x1, x8
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
	ldr	x8, [x20]
	str	x8, [x0]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _MPOOL_DIRTY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPOOL_DIRTY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_mpool_put
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_P_INVALID,8,3                  ; @P_INVALID
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_MPOOL_DIRTY,4,2                ; @MPOOL_DIRTY
	.no_dead_strip	___bt_relink
.subsections_via_symbols
