	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfix_fini
_sfix_fini:                             ## @sfix_fini
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_ptunit_thrd_fini@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r13), %r14
	movq	%r14, %rsi
	callq	_ptu_test
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_pt_section_put
	movq	$0, 32(%r13)
LBB0_2:
	movq	(%r13), %r15
	movq	24(%r13), %r12
	movq	$0, (%r13)
	movq	$0, 24(%r13)
	testq	%r15, %r15
	je	LBB0_6
## %bb.3:
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_remove
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	testq	%r12, %r12
	je	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	callq	_fclose
LBB0_8:
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_remove
	movq	%r15, %rdi
	callq	_free
LBB0_10:
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_ptu_int_eq
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ptu_passed                     ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ptunit_thrd_fini,4,2           ## @ptunit_thrd_fini
	.no_dead_strip	_sfix_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfix_fini
_sfix_fini:                             ; @sfix_fini
	.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	x19, x0
Lloh0:
	adrp	x8, _ptunit_thrd_fini@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ptunit_thrd_fini@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_ptu_test
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_pt_section_put
	str	xzr, [x19, #32]
LBB0_2:
	ldr	x21, [x19]
	ldr	x22, [x19, #24]
	str	xzr, [x19]
	str	xzr, [x19, #24]
	cmp	x21, #0
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_remove
	cbz	w0, LBB0_12
LBB0_4:
	cbz	x22, LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_fclose
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_remove
	mov	x0, x21
	bl	_free
LBB0_8:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20, lsl #2]
	mov	w1, #0
	bl	_ptu_int_eq
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_10
LBB0_11:
	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	_ptu_passed
LBB0_12:
	mov	x0, x21
	bl	_free
	mov	x21, #0
	cbnz	x22, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ptunit_thrd_fini,4,2           ; @ptunit_thrd_fini
	.no_dead_strip	_sfix_fini
.subsections_via_symbols
