	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_inuse
_get_inuse:                             ## @get_inuse
	.cfi_startproc
## %bb.0:
	movl	%edx, %eax
	subl	%esi, %eax
	jle	LBB0_1
LBB0_8:
	retq
LBB0_1:
	jge	LBB0_3
## %bb.2:
	subl	%esi, %edi
	addl	%edx, %edi
	movl	%edi, %eax
	retq
LBB0_3:
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_8
LBB0_5:
	cmpl	%esi, %edx
	jne	LBB0_7
## %bb.6:
	movl	%edi, %eax
	cmpl	$1, %ecx
	je	LBB0_8
LBB0_7:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_panic
                                        ## implicit-def: $eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad state"

	.no_dead_strip	_get_inuse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_inuse
_get_inuse:                             ; @get_inuse
	.cfi_startproc
; %bb.0:
	subs	w8, w2, w1
	b.le	LBB0_2
; %bb.1:
	mov	x0, x8
	ret
LBB0_2:
	b.ge	LBB0_4
; %bb.3:
	sub	w8, w0, w1
	add	w0, w8, w2
	ret
LBB0_4:
	cmp	w2, w1
	b.ne	LBB0_7
; %bb.5:
	cbnz	w3, LBB0_7
; %bb.6:
	mov	w0, #0
	ret
LBB0_7:
	cmp	w2, w1
	b.ne	LBB0_10
; %bb.8:
	cmp	w3, #1
	b.ne	LBB0_10
; %bb.9:
	ret
LBB0_10:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad state"

	.no_dead_strip	_get_inuse
.subsections_via_symbols
