	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function activate_tempfile
_activate_tempfile:                     ## @activate_tempfile
	.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
	movq	%rdi, %rbx
	callq	_is_tempfile_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_2:
	cmpb	$0, _activate_tempfile.initialized(%rip)
	jne	LBB0_4
## %bb.3:
	movq	_remove_tempfiles_on_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigchain_push_common
	movq	_remove_tempfiles_on_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movb	$1, _activate_tempfile.initialized(%rip)
LBB0_4:
	leaq	8(%rbx), %rdi
	movq	_tempfile_list@GOTPCREL(%rip), %rsi
	callq	_volatile_list_add
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_activate_tempfile.initialized,1,2 ## @activate_tempfile.initialized
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"activate_tempfile called for active object"

	.comm	_remove_tempfiles_on_signal,4,2 ## @remove_tempfiles_on_signal
	.comm	_remove_tempfiles_on_exit,4,2   ## @remove_tempfiles_on_exit
	.comm	_tempfile_list,4,2              ## @tempfile_list
	.no_dead_strip	_activate_tempfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function activate_tempfile
_activate_tempfile:                     ; @activate_tempfile
	.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	_is_tempfile_active
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_2:
	adrp	x20, _activate_tempfile.initialized@PAGE
	ldrb	w8, [x20, _activate_tempfile.initialized@PAGEOFF]
	tbnz	w8, #0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _remove_tempfiles_on_signal@GOTPAGE
Lloh3:
	ldr	x8, [x8, _remove_tempfiles_on_signal@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_sigchain_push_common
Lloh5:
	adrp	x8, _remove_tempfiles_on_exit@GOTPAGE
Lloh6:
	ldr	x8, [x8, _remove_tempfiles_on_exit@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_atexit
	mov	w8, #1
	strb	w8, [x20, _activate_tempfile.initialized@PAGEOFF]
LBB0_4:
	add	x0, x19, #8
Lloh8:
	adrp	x1, _tempfile_list@GOTPAGE
Lloh9:
	ldr	x1, [x1, _tempfile_list@GOTPAGEOFF]
	bl	_volatile_list_add
	bl	_getpid
	mov	w8, #1
	stp	w8, w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_activate_tempfile.initialized,1,2 ; @activate_tempfile.initialized
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"activate_tempfile called for active object"

	.comm	_remove_tempfiles_on_signal,4,2 ; @remove_tempfiles_on_signal
	.comm	_remove_tempfiles_on_exit,4,2   ; @remove_tempfiles_on_exit
	.comm	_tempfile_list,4,2              ; @tempfile_list
	.no_dead_strip	_activate_tempfile
.subsections_via_symbols
