	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_exit
_on_exit:                               ## @on_exit
	.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
	movq	___on_exit_count@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_ATEXIT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	___handle_on_exit_funcs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movq	(%r15), %rax
LBB0_4:
	movq	___on_exit_funcs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rcx,%rax,4)
	movq	___on_exit_args@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r15)
	movq	%r14, (%rcx,%rax,8)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___on_exit_count,8,3            ## @__on_exit_count
	.comm	_ATEXIT_MAX,8,3                 ## @ATEXIT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___handle_on_exit_funcs,4,2     ## @__handle_on_exit_funcs
	.comm	___on_exit_funcs,8,3            ## @__on_exit_funcs
	.comm	___on_exit_args,8,3             ## @__on_exit_args
	.no_dead_strip	_on_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_exit
_on_exit:                               ; @on_exit
	.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
Lloh0:
	adrp	x21, ___on_exit_count@GOTPAGE
Lloh1:
	ldr	x21, [x21, ___on_exit_count@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ATEXIT_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATEXIT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	cbnz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, ___handle_on_exit_funcs@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___handle_on_exit_funcs@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_atexit
	ldr	x8, [x21]
LBB0_4:
	mov	w0, #0
Lloh11:
	adrp	x9, ___on_exit_funcs@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___on_exit_funcs@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	str	w20, [x9, x8, lsl #2]
Lloh14:
	adrp	x9, ___on_exit_args@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___on_exit_args@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x10, x8, #1
	str	x10, [x21]
	str	x19, [x9, x8, lsl #3]
LBB0_5:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	___on_exit_count,8,3            ; @__on_exit_count
	.comm	_ATEXIT_MAX,8,3                 ; @ATEXIT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	___handle_on_exit_funcs,4,2     ; @__handle_on_exit_funcs
	.comm	___on_exit_funcs,8,3            ; @__on_exit_funcs
	.comm	___on_exit_args,8,3             ; @__on_exit_args
	.no_dead_strip	_on_exit
.subsections_via_symbols
