	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_REFCOUNT_ADD_ZERO        ## -- Begin function lkdtm_REFCOUNT_ADD_ZERO
	.p2align	4, 0x90
_lkdtm_REFCOUNT_ADD_ZERO:               ## @lkdtm_REFCOUNT_ADD_ZERO
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%edi, %edi
	callq	_REFCOUNT_INIT
	movl	%eax, -12(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	leaq	-12(%rbp), %rsi
	movl	$3, %edi
	callq	_refcount_add_not_zero
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	leaq	-12(%rbp), %rdi
	callq	_refcount_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	callq	_pr_err
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_info
	leaq	-12(%rbp), %rbx
	movl	$3, %edi
	movq	%rbx, %rsi
	callq	_refcount_add
	movq	%rbx, %rdi
	callq	_check_from_zero
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting safe refcount_add_not_zero() from zero\n"

L_.str.1:                               ## @.str.1
	.asciz	"Good: zero detected\n"

L_.str.2:                               ## @.str.2
	.asciz	"Correctly stayed at zero\n"

L_.str.3:                               ## @.str.3
	.asciz	"Fail: refcount went past zero\n"

L_.str.4:                               ## @.str.4
	.asciz	"Fail: Zero not detected!?\n"

L_.str.5:                               ## @.str.5
	.asciz	"attempting bad refcount_add() from zero\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_REFCOUNT_ADD_ZERO        ; -- Begin function lkdtm_REFCOUNT_ADD_ZERO
	.p2align	2
_lkdtm_REFCOUNT_ADD_ZERO:               ; @lkdtm_REFCOUNT_ADD_ZERO
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	w0, #0
	bl	_REFCOUNT_INIT
	stur	w0, [x29, #-4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	sub	x1, x29, #4
	mov	w0, #3
	bl	_refcount_add_not_zero
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	sub	x0, x29, #4
	bl	_refcount_read
	cbz	x0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_4:
	bl	_pr_err
LBB0_5:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
	sub	x1, x29, #4
	mov	w0, #3
	bl	_refcount_add
	sub	x0, x29, #4
	bl	_check_from_zero
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_6:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting safe refcount_add_not_zero() from zero\n"

l_.str.1:                               ; @.str.1
	.asciz	"Good: zero detected\n"

l_.str.2:                               ; @.str.2
	.asciz	"Correctly stayed at zero\n"

l_.str.3:                               ; @.str.3
	.asciz	"Fail: refcount went past zero\n"

l_.str.4:                               ; @.str.4
	.asciz	"Fail: Zero not detected!?\n"

l_.str.5:                               ; @.str.5
	.asciz	"attempting bad refcount_add() from zero\n"

.subsections_via_symbols
