	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_scoreboard_proc_alloc      ## -- Begin function fpm_scoreboard_proc_alloc
	.p2align	4, 0x90
_fpm_scoreboard_proc_alloc:             ## @fpm_scoreboard_proc_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	8(%rdi), %ecx
	cmpl	%eax, %ecx
	jbe	LBB0_6
## %bb.3:
	movq	16(%rbx), %rdx
	movq	(%rdx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%rdx)
	jne	LBB0_6
## %bb.5:
	testl	%eax, %eax
	jns	LBB0_8
LBB0_6:
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_zlog
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.10:
	movq	16(%rbx), %rdx
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%rsi)
	jne	LBB0_13
LBB0_8:
	cmpl	%ecx, %eax
	jge	LBB0_14
LBB0_9:
	movq	16(%rbx), %rcx
	movslq	%eax, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	$1, (%rcx)
	movl	%eax, (%r15)
	incl	%eax
	xorl	%r14d, %r14d
	cmpl	8(%rbx), %eax
	cmovgel	%r14d, %eax
	cltq
	movq	%rax, (%rbx)
	jmp	LBB0_15
LBB0_7:
	xorl	%eax, %eax
	cmpl	%ecx, %eax
	jl	LBB0_9
LBB0_14:
	movq	_ZLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_zlog
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[pool %s] the proc->free_slot was not free. Let's search"

	.comm	_ZLOG_ERROR,4,2                 ## @ZLOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"[pool %s] no free scoreboard slot"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_scoreboard_proc_alloc      ; -- Begin function fpm_scoreboard_proc_alloc
	.p2align	2
_fpm_scoreboard_proc_alloc:             ; @fpm_scoreboard_proc_alloc
	.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
	mov	w0, #-1
	cbz	x19, LBB0_16
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_16
; %bb.2:
	ldr	x9, [x19]
	ldr	w8, [x19, #8]
	cmp	w8, w9
	b.ls	LBB0_6
; %bb.3:
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x9, lsl #3]
	cbz	x10, LBB0_6
; %bb.4:
	ldr	w10, [x10]
	cbnz	w10, LBB0_6
; %bb.5:
	tbz	w9, #31, LBB0_12
LBB0_6:
Lloh0:
	adrp	x8, _ZLOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZLOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zlog
	ldr	w8, [x19, #8]
	cmp	w8, #0
	b.le	LBB0_14
; %bb.7:
	mov	x9, #0
	ldr	x10, [x19, #16]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x11]
	cbnz	w11, LBB0_8
; %bb.11:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_12:
	cmp	w9, w8
	b.ge	LBB0_15
LBB0_13:
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, w9, sxtw #3]
	mov	w10, #1
	str	w10, [x8]
	str	w9, [x20]
	add	w8, w9, #1
	ldr	w10, [x19, #8]
	cmp	w8, w10
	csinc	w8, wzr, w9, ge
	sxtw	x8, w8
	str	x8, [x19]
	b	LBB0_16
LBB0_14:
	mov	w9, #0
	cmp	w9, w8
	b.lt	LBB0_13
LBB0_15:
Lloh5:
	adrp	x8, _ZLOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZLOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x19, #24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_zlog
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[pool %s] the proc->free_slot was not free. Let's search"

	.comm	_ZLOG_ERROR,4,2                 ; @ZLOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"[pool %s] no free scoreboard slot"

.subsections_via_symbols
