	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminate
_terminate:                             ## @terminate
	.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
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_getpid
	movq	_pgrp@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	_term_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_signal
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_killpg
	jmp	LBB0_4
LBB0_2:
	movq	_doing_useful_work@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_term_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SIGRETURN                      ## TAILCALL
LBB0_5:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pgrp,8,3                       ## @pgrp
	.comm	_term_flag,4,2                  ## @term_flag
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_doing_useful_work,8,3          ## @doing_useful_work
	.no_dead_strip	_terminate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminate
_terminate:                             ; @terminate
	.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	_getpid
Lloh0:
	adrp	x20, _pgrp@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pgrp@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _term_flag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _term_flag@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
Lloh5:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_signal
	ldr	x0, [x20]
	mov	x1, x19
	bl	_killpg
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _doing_useful_work@GOTPAGE
Lloh9:
	ldr	x8, [x8, _doing_useful_work@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _term_flag@GOTPAGE
Lloh12:
	ldr	x8, [x8, _term_flag@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SIGRETURN
LBB0_5:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_pgrp,8,3                       ; @pgrp
	.comm	_term_flag,4,2                  ; @term_flag
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_doing_useful_work,8,3          ; @doing_useful_work
	.no_dead_strip	_terminate
.subsections_via_symbols
