	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup                        ## -- Begin function cleanup
	.p2align	4, 0x90
_cleanup:                               ## @cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_daemon_uid
	movq	_uucplock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_uu_unlock
	movq	_odisc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TIOCSETD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_odisc@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	callq	_ioctl
LBB0_2:
	xorl	%eax, %eax
	callq	_unraw
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	movq	_tipout_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movl	%ebx, %esi
	callq	_kill
	xorl	%edi, %edi
	callq	_wait
LBB0_5:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_uucplock,4,2                   ## @uucplock
	.comm	_odisc,8,3                      ## @odisc
	.comm	_TIOCSETD,4,2                   ## @TIOCSETD
	.comm	_tipout_pid,8,3                 ## @tipout_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup                        ; -- Begin function cleanup
	.p2align	2
_cleanup:                               ; @cleanup
	.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
	bl	_daemon_uid
Lloh0:
	adrp	x8, _uucplock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uucplock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_uu_unlock
Lloh3:
	adrp	x8, _odisc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _odisc@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TIOCSETD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIOCSETD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, _odisc@GOTPAGE
Lloh10:
	ldr	x2, [x2, _odisc@GOTPAGEOFF]
	mov	w0, #0
	bl	_ioctl
LBB0_2:
	bl	_unraw
	cbz	w19, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _tipout_pid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tipout_pid@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x19
	bl	_kill
	mov	x0, #0
	bl	_wait
LBB0_5:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_uucplock,4,2                   ; @uucplock
	.comm	_odisc,8,3                      ; @odisc
	.comm	_TIOCSETD,4,2                   ; @TIOCSETD
	.comm	_tipout_pid,8,3                 ; @tipout_pid
.subsections_via_symbols
