	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ztest_spa_discard_checkpoint
_ztest_spa_discard_checkpoint:          ## @ztest_spa_discard_checkpoint
	.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
	movq	%rdi, %rbx
	movq	_ztest_checkpoint_lock@GOTPCREL(%rip), %rdi
	callq	_MUTEX_HELD
	movl	%eax, %edi
	callq	_ASSERT
	movl	(%rbx), %edi
	callq	_spa_checkpoint_discard
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_2
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ztest_checkpoint_lock,4,2      ## @ztest_checkpoint_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spa_discard_checkpoint(%s) = %d"

	.no_dead_strip	_ztest_spa_discard_checkpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ztest_spa_discard_checkpoint
_ztest_spa_discard_checkpoint:          ; @ztest_spa_discard_checkpoint
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _ztest_checkpoint_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ztest_checkpoint_lock@GOTPAGEOFF]
	bl	_MUTEX_HELD
	bl	_ASSERT
	ldr	w0, [x19]
	bl	_spa_checkpoint_discard
	sub	w8, w0, #128
	cmp	w8, #2
	ccmp	w0, #0, #4, hs
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x3, x0
	ldr	w2, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fatal
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ztest_checkpoint_lock,4,2      ; @ztest_checkpoint_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spa_discard_checkpoint(%s) = %d"

	.no_dead_strip	_ztest_spa_discard_checkpoint
.subsections_via_symbols
