	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_READ_AFTER_FREE          ## -- Begin function lkdtm_READ_AFTER_FREE
	.p2align	4, 0x90
_lkdtm_READ_AFTER_FREE:                 ## @lkdtm_READ_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_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movl	$1024, %edi                     ## imm = 0x400
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movl	$305419896, (%rax)              ## imm = 0x12345678
	movl	$305419896, 512(%rbx)           ## imm = 0x12345678
	leaq	L_.str.2(%rip), %rdi
	movl	$305419896, %esi                ## imm = 0x12345678
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	512(%rbx), %esi
	cmpl	(%r14), %esi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate base memory.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate val memory.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Value in memory before free: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Attempting bad read from freed memory\n"

L_.str.4:                               ## @.str.4
	.asciz	"Memory correctly poisoned (%x)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Memory was not poisoned\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_READ_AFTER_FREE          ; -- Begin function lkdtm_READ_AFTER_FREE
	.p2align	2
_lkdtm_READ_AFTER_FREE:                 ; @lkdtm_READ_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	x19, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	w0, #1024
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w1, [x19]
	mov	w0, #1024
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	w8, #22136
	movk	w8, #4660, lsl #16
	str	w8, [x0]
	str	w8, [x20, #512]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_kfree
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	ldr	w8, [x20, #512]
	ldr	w9, [x19]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	bl	_BUG
LBB0_4:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@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_6:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x20
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate base memory.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate val memory.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Value in memory before free: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Attempting bad read from freed memory\n"

l_.str.4:                               ; @.str.4
	.asciz	"Memory correctly poisoned (%x)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Memory was not poisoned\n"

.subsections_via_symbols
