	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_WRITE_AFTER_FREE         ## -- Begin function lkdtm_WRITE_AFTER_FREE
	.p2align	4, 0x90
_lkdtm_WRITE_AFTER_FREE:                ## @lkdtm_WRITE_AFTER_FREE
	.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	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$1024, %edi                     ## imm = 0x400
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	1024(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	512(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_kfree
	movl	$180150000, 512(%rbx)           ## imm = 0xABCDEF0
	movl	(%r14), %esi
	movl	$1024, %edi                     ## imm = 0x400
	callq	_kmalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_kfree
	cmpq	%rbx, %r14
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocated memory %p-%p\n"

L_.str.1:                               ## @.str.1
	.asciz	"Attempting bad write to freed memory at %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"Hmm, didn't get the same memory range.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_WRITE_AFTER_FREE         ; -- Begin function lkdtm_WRITE_AFTER_FREE
	.p2align	2
_lkdtm_WRITE_AFTER_FREE:                ; @lkdtm_WRITE_AFTER_FREE
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #1024
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x8, x0, #1024
	stp	x0, x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	add	x8, x19, #512
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_kfree
	mov	w8, #57072
	movk	w8, #2748, lsl #16
	str	w8, [x19, #512]
	ldr	w1, [x20]
	mov	w0, #1024
	bl	_kmalloc
	mov	x20, x0
	bl	_kfree
	cmp	x20, x19
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_pr_info
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocated memory %p-%p\n"

l_.str.1:                               ; @.str.1
	.asciz	"Attempting bad write to freed memory at %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"Hmm, didn't get the same memory range.\n"

.subsections_via_symbols
