	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_context                  ## -- Begin function close_context
	.p2align	4, 0x90
_close_context:                         ## @close_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_ASSERT
	movq	24(%r15), %rdi
	callq	_ASSERT
	movq	24(%r15), %rax
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	%ebx, (%rax)
	jmp	LBB0_3
LBB0_1:
	movl	(%rax), %ebx
LBB0_3:
	movq	_SIGUSR1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_8
## %bb.4:
	movq	_CC_USR1_TO_HUP@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_5
LBB0_7:
	movq	_SIGHUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 16(%rax)
	jmp	LBB0_8
LBB0_5:
	movq	8(%rax), %rcx
	movq	_SIG_SOURCE_HARD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	_CC_HARD_USR1_TO_HUP@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_7
LBB0_8:
	movq	_CC_NO_CLOSE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_close_instance
LBB0_10:
	movq	_CC_GC_FREE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_gc_free                ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_CC_USR1_TO_HUP,4,2             ## @CC_USR1_TO_HUP
	.comm	_SIG_SOURCE_HARD,8,3            ## @SIG_SOURCE_HARD
	.comm	_CC_HARD_USR1_TO_HUP,4,2        ## @CC_HARD_USR1_TO_HUP
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close_context usr1 to hup"

	.comm	_CC_NO_CLOSE,4,2                ## @CC_NO_CLOSE
	.comm	_CC_GC_FREE,4,2                 ## @CC_GC_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_context                  ; -- Begin function close_context
	.p2align	2
_close_context:                         ; @close_context
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ASSERT
	ldr	x0, [x19, #24]
	bl	_ASSERT
	ldr	x8, [x19, #24]
	tbnz	w21, #31, LBB0_2
; %bb.1:
	str	w21, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w21, [x8]
LBB0_3:
Lloh0:
	adrp	x9, _SIGUSR1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGUSR1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w21, w9
	b.ne	LBB0_8
; %bb.4:
Lloh3:
	adrp	x9, _CC_USR1_TO_HUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CC_USR1_TO_HUP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_6
LBB0_5:
Lloh6:
	adrp	x9, _SIGHUP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIGHUP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh9:
	adrp	x9, l_.str@PAGE
Lloh10:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [x8, #16]
	b	LBB0_8
LBB0_6:
	ldr	x9, [x8, #8]
Lloh11:
	adrp	x10, _SIG_SOURCE_HARD@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SIG_SOURCE_HARD@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
Lloh14:
	adrp	x9, _CC_HARD_USR1_TO_HUP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CC_HARD_USR1_TO_HUP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_5
LBB0_8:
Lloh17:
	adrp	x8, _CC_NO_CLOSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CC_NO_CLOSE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_close_instance
LBB0_10:
Lloh20:
	adrp	x8, _CC_GC_FREE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CC_GC_FREE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	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	_context_gc_free
LBB0_12:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_CC_USR1_TO_HUP,4,2             ; @CC_USR1_TO_HUP
	.comm	_SIG_SOURCE_HARD,8,3            ; @SIG_SOURCE_HARD
	.comm	_CC_HARD_USR1_TO_HUP,4,2        ; @CC_HARD_USR1_TO_HUP
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close_context usr1 to hup"

	.comm	_CC_NO_CLOSE,4,2                ; @CC_NO_CLOSE
	.comm	_CC_GC_FREE,4,2                 ; @CC_GC_FREE
.subsections_via_symbols
