	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_CORRUPT_LIST_DEL         ## -- Begin function lkdtm_CORRUPT_LIST_DEL
	.p2align	4, 0x90
_lkdtm_CORRUPT_LIST_DEL:                ## @lkdtm_CORRUPT_LIST_DEL
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_test_head@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_LIST_HEAD
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_list_del
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add
	leaq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_list_del
	movq	-48(%rbp), %rax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rdi
	orq	-40(%rbp), %rax
	cmoveq	%rcx, %rdi
	callq	_pr_err
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_test_head,4,2                  ## @test_head
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting good list removal\n"

L_.str.1:                               ## @.str.1
	.asciz	"attempting corrupted list removal\n"

L_.str.2:                               ## @.str.2
	.asciz	"Overwrite did not happen, but no BUG?!\n"

L_.str.3:                               ## @.str.3
	.asciz	"list_del() corruption not detected!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_CORRUPT_LIST_DEL         ; -- Begin function lkdtm_CORRUPT_LIST_DEL
	.p2align	2
_lkdtm_CORRUPT_LIST_DEL:                ; @lkdtm_CORRUPT_LIST_DEL
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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]
	str	x8, [sp, #24]
Lloh3:
	adrp	x19, _test_head@GOTPAGE
Lloh4:
	ldr	x19, [x19, _test_head@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_LIST_HEAD
	stp	xzr, xzr, [sp, #8]
	mov	x0, sp
	mov	x1, x19
	bl	_list_add
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, sp
	bl	_list_del
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, sp
	mov	x1, x19
	bl	_list_add
	add	x8, sp, #8
	str	x8, [sp]
	mov	x0, sp
	bl	_list_del
	ldp	x8, x9, [sp, #8]
	orr	x8, x8, x9
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh11:
	adrp	x10, l_.str.2@PAGE
Lloh12:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_pr_err
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_test_head,4,2                  ; @test_head
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting good list removal\n"

l_.str.1:                               ; @.str.1
	.asciz	"attempting corrupted list removal\n"

l_.str.2:                               ; @.str.2
	.asciz	"Overwrite did not happen, but no BUG?!\n"

l_.str.3:                               ; @.str.3
	.asciz	"list_del() corruption not detected!\n"

.subsections_via_symbols
