	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sigterm_handler
_sigterm_handler:                       ## @sigterm_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movaps	L___const.sigterm_handler.message(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movw	$10, -16(%rbp)
	leaq	-32(%rbp), %rsi
	movl	$2, %edi
	movl	$17, %edx
	callq	_kwrite
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movq	_pending_signals@GOTPCREL(%rip), %rdx
	orl	%eax, (%rdx)
	movq	_sigterm_immediate_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %edi
	callq	_signal
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.sigterm_handler.message
L___const.sigterm_handler.message:
	.asciz	"SIGTERM handled.\n"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_pending_signals,4,2            ## @pending_signals
	.comm	_sigterm_immediate_handler,4,2  ## @sigterm_immediate_handler
	.no_dead_strip	_sigterm_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sigterm_handler
_sigterm_handler:                       ; @sigterm_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, l___const.sigterm_handler.message@PAGE
Lloh4:
	add	x8, x8, l___const.sigterm_handler.message@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
	mov	w8, #10
	strh	w8, [sp, #16]
	mov	x1, sp
	mov	w0, #2
	mov	w2, #17
	bl	_kwrite
Lloh6:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w8, #1
	lsl	w8, w8, w0
Lloh9:
	adrp	x9, _pending_signals@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pending_signals@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh11:
	adrp	x8, _sigterm_immediate_handler@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sigterm_immediate_handler@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_signal
	ldur	x8, [x29, #-8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.sigterm_handler.message:      ; @__const.sigterm_handler.message
	.asciz	"SIGTERM handled.\n"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_pending_signals,4,2            ; @pending_signals
	.comm	_sigterm_immediate_handler,4,2  ; @sigterm_immediate_handler
	.no_dead_strip	_sigterm_handler
.subsections_via_symbols
