	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tag_unlink                     ## -- Begin function tag_unlink
	.p2align	4, 0x90
_tag_unlink:                            ## @tag_unlink
	.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	_tag_files@GOTPCREL(%rip), %r14
	cmpl	$-1, (%r14)
	je	LBB0_5
## %bb.1:
	movl	32(%r14), %edi
	callq	_tcgetpgrp
	cmpq	8(%r14), %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_getpgid
	cltq
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_getpgid
	cmpl	$-1, %eax
	jne	LBB0_5
LBB0_4:
	movl	(%r14), %esi
	movl	32(%r14), %edi
	callq	_tcsetpgrp
LBB0_5:
	movq	16(%r14), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_7
## %bb.6:
	callq	_unlink
LBB0_7:
	movq	24(%r14), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_8
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_unlink                         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tag_files,40,3                 ## @tag_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tag_unlink                     ; -- Begin function tag_unlink
	.p2align	2
_tag_unlink:                            ; @tag_unlink
	.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
Lloh0:
	adrp	x20, _tag_files@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tag_files@GOTPAGEOFF]
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [x20, #32]
	bl	_tcgetpgrp
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x19, x0
	mov	x0, #0
	bl	_getpgid
	cmp	x19, w0, sxtw
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_getpgid
	cmn	w0, #1
	b.ne	LBB0_5
LBB0_4:
	ldr	w0, [x20, #32]
	ldr	w1, [x20]
	bl	_tcsetpgrp
LBB0_5:
	ldr	x0, [x20, #16]
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.6:
	bl	_unlink
LBB0_7:
	ldr	x0, [x20, #24]
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_unlink
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tag_files,40,3                 ; @tag_files
.subsections_via_symbols
