	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_roff_node_unlink               ## -- Begin function roff_node_unlink
	.p2align	4, 0x90
_roff_node_unlink:                      ## @roff_node_unlink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	24(%rsi), %rcx
	movq	%rcx, 24(%rax)
LBB0_2:
	movq	24(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	%rax, (%rcx)
LBB0_4:
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	cmpq	%rsi, 32(%rax)
	je	LBB0_6
## %bb.7:
	cmpq	%rsi, 16(%rax)
	je	LBB0_8
LBB0_9:
	testq	%rdi, %rdi
	je	LBB0_14
LBB0_10:
	cmpq	%rsi, 16(%rdi)
	je	LBB0_11
## %bb.12:
	cmpq	%rsi, (%rdi)
	je	LBB0_13
LBB0_14:
	popq	%rbp
	retq
LBB0_6:
	movq	%rcx, 32(%rax)
	cmpq	%rsi, 16(%rax)
	jne	LBB0_9
LBB0_8:
	movq	(%rsi), %rcx
	movq	%rcx, 16(%rax)
	testq	%rdi, %rdi
	jne	LBB0_10
	jmp	LBB0_14
LBB0_11:
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	cmovneq	%rcx, %rax
	movq	_ROFF_NEXT_SIBLING@GOTPCREL(%rip), %rcx
	cmoveq	_ROFF_NEXT_CHILD@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rdi)
	movl	(%rcx), %eax
	movl	%eax, 8(%rdi)
	cmpq	%rsi, (%rdi)
	jne	LBB0_14
LBB0_13:
	movq	$0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROFF_NEXT_CHILD,4,2            ## @ROFF_NEXT_CHILD
	.comm	_ROFF_NEXT_SIBLING,4,2          ## @ROFF_NEXT_SIBLING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_roff_node_unlink               ; -- Begin function roff_node_unlink
	.p2align	2
_roff_node_unlink:                      ; @roff_node_unlink
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x1, #24]
	str	x9, [x8, #24]
LBB0_2:
	ldr	x9, [x1, #24]
	cbz	x9, LBB0_4
; %bb.3:
	str	x8, [x9]
LBB0_4:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x10, [x8, #32]
	cmp	x10, x1
	b.ne	LBB0_7
; %bb.6:
	str	x9, [x8, #32]
LBB0_7:
	ldr	x9, [x8, #16]
	cmp	x9, x1
	b.eq	LBB0_13
LBB0_8:
	cbz	x0, LBB0_12
LBB0_9:
	ldr	x9, [x0, #16]
	cmp	x9, x1
	b.ne	LBB0_11
; %bb.10:
	ldr	x9, [x1]
	cmp	x9, #0
	csel	x8, x8, x9, eq
Lloh0:
	adrp	x9, _ROFF_NEXT_CHILD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ROFF_NEXT_CHILD@GOTPAGEOFF]
	str	x8, [x0, #16]
Lloh2:
	adrp	x8, _ROFF_NEXT_SIBLING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ROFF_NEXT_SIBLING@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x0, #8]
LBB0_11:
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_14
LBB0_12:
	ret
LBB0_13:
	ldr	x9, [x1]
	str	x9, [x8, #16]
	cbnz	x0, LBB0_9
	b	LBB0_12
LBB0_14:
	str	xzr, [x0]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ROFF_NEXT_CHILD,4,2            ; @ROFF_NEXT_CHILD
	.comm	_ROFF_NEXT_SIBLING,4,2          ; @ROFF_NEXT_SIBLING
.subsections_via_symbols
