	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_cleanup                   ## -- Begin function data_cleanup
	.p2align	4, 0x90
_data_cleanup:                          ## @data_cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_data_cleanup_count@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$128, %esi
	callq	_assert_x_eq
	movq	(%r14), %rax
LBB0_2:
	incq	%rax
	movq	%rax, (%r14)
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$2, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.6:
	movl	$2, %eax
	jmp	LBB0_7
LBB0_3:
	movl	$1, %eax
LBB0_7:
	movl	%eax, (%rbx)
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_mallocx
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_assert_ptr_not_null
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dallocx                        ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_not_reached                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_data_cleanup_count,8,3         ## @data_cleanup_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Argument passed into cleanup function should match tsd value"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpeced mallocx() failure"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_cleanup                   ; -- Begin function data_cleanup
	.p2align	2
_data_cleanup:                          ; @data_cleanup
	.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
Lloh0:
	adrp	x20, _data_cleanup_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _data_cleanup_count@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #128
	bl	_assert_x_eq
	ldr	x8, [x20]
LBB0_2:
	add	x8, x8, #1
	str	x8, [x20]
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:
	mov	w8, #2
	b	LBB0_7
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	w8, [x19]
	mov	w0, #1
	mov	w1, #0
	bl	_mallocx
	mov	x19, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_assert_ptr_not_null
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dallocx
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_not_reached
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_data_cleanup_count,8,3         ; @data_cleanup_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Argument passed into cleanup function should match tsd value"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpeced mallocx() failure"

.subsections_via_symbols
