	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_memclean
_test_memclean:                         ## @test_memclean
	.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
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	movl	$255, %esi
	movl	$128, %edx
	callq	_memset
	leaq	-156(%rbp), %rdi
	movl	$126, %esi
	callq	_mem_clean
	xorl	%edi, %edi
	cmpl	$255, -160(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$0, -156(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$0, -96(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$0, -40(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$255, -36(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	leaq	-288(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$128, %edx
	callq	_memcpy
	xorl	%edi, %edi
	cmpl	$255, -288(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$0, -284(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$0, -224(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$0, -168(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$255, -164(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	movq	%rbx, %rdi
	movl	$238, %esi
	movl	$128, %edx
	callq	_memset
	xorl	%edi, %edi
	cmpl	$238, -288(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$238, -284(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$238, -280(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$238, -276(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$238, -168(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	xorl	%edi, %edi
	cmpl	$238, -164(%rbp)
	sete	%dil
	callq	_TEST_CHECK
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_test_memclean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_memclean
_test_memclean:                         ; @test_memclean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x19, sp, #136
	add	x0, sp, #136
	mov	w1, #255
	mov	w2, #128
	bl	_memset
	add	x0, x19, #4
	mov	w1, #126
	bl	_mem_clean
	ldr	w8, [sp, #136]
	cmp	w8, #255
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #140]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #200]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #256]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #260]
	cmp	w8, #255
	cset	w0, eq
	bl	_TEST_CHECK
	add	x0, sp, #8
	add	x1, sp, #136
	mov	w2, #128
	bl	_memcpy
	ldr	w8, [sp, #8]
	cmp	w8, #255
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #72]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #128]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #132]
	cmp	w8, #255
	cset	w0, eq
	bl	_TEST_CHECK
	add	x0, sp, #8
	mov	w1, #238
	mov	w2, #128
	bl	_memset
	ldr	w8, [sp, #8]
	cmp	w8, #238
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #12]
	cmp	w8, #238
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #16]
	cmp	w8, #238
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #20]
	cmp	w8, #238
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #128]
	cmp	w8, #238
	cset	w0, eq
	bl	_TEST_CHECK
	ldr	w8, [sp, #132]
	cmp	w8, #238
	cset	w0, eq
	bl	_TEST_CHECK
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_test_memclean
.subsections_via_symbols
