	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xterm_close
_xterm_close:                           ## @xterm_close
	.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	%rsi, %rbx
	movl	%edi, %r14d
	movl	(%rsi), %edi
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_os_kill_process
LBB0_2:
	movl	$-1, (%rbx)
	movl	4(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	_os_kill_process
LBB0_4:
	movl	$-1, 4(%rbx)
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_os_close_file                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xterm_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xterm_close
_xterm_close:                           ; @xterm_close
	.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	w0, [x1]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_os_kill_process
LBB0_2:
	mov	w21, #-1
	str	w21, [x20]
	ldr	w0, [x20, #4]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	w1, #0
	bl	_os_kill_process
LBB0_4:
	str	w21, [x20, #4]
	mov	x0, x19
	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
	b	_os_close_file
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xterm_close
.subsections_via_symbols
