	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_scoreboard_update          ## -- Begin function fpm_scoreboard_update
	.p2align	4, 0x90
_fpm_scoreboard_update:                 ## @fpm_scoreboard_update
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%esi, %ebx
	movl	%edi, %r12d
	movq	32(%rbp), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	_fpm_scoreboard@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	testq	%r14, %r14
	je	LBB0_24
## %bb.3:
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %r15d
	movl	16(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	36(%r14), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_fpm_spinlock
	movq	_FPM_SCOREBOARD_ACTION_SET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_18
## %bb.4:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%r12d, %r12d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	js	LBB0_6
## %bb.5:
	movl	%r12d, (%r14)
LBB0_6:
	testl	%ebx, %ebx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	js	LBB0_8
## %bb.7:
	movl	%ebx, 4(%r14)
LBB0_8:
	testl	%esi, %esi
	js	LBB0_10
## %bb.9:
	movl	%esi, 8(%r14)
LBB0_10:
	testl	%edx, %edx
	js	LBB0_12
## %bb.11:
	movl	%edx, 12(%r14)
LBB0_12:
	testl	%r13d, %r13d
	js	LBB0_14
## %bb.13:
	movl	%r13d, 20(%r14)
LBB0_14:
	testl	%eax, %eax
	js	LBB0_16
## %bb.15:
	movl	%eax, 24(%r14)
LBB0_16:
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.17:
	movl	%ecx, 28(%r14)
	jmp	LBB0_21
LBB0_24:
	movq	_ZLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zlog                           ## TAILCALL
LBB0_18:
	addl	(%r14), %r12d
	testl	%r12d, %r12d
	movl	$0, %ecx
	cmovlel	%ecx, %r12d
	movl	%r12d, (%r14)
	addl	4(%r14), %ebx
	testl	%ebx, %ebx
	cmovlel	%ecx, %ebx
	movl	%ebx, 4(%r14)
	addl	20(%r14), %r13d
	testl	%r13d, %r13d
	cmovlel	%ecx, %r13d
	movl	%r13d, 20(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	24(%r14), %eax
	testl	%eax, %eax
	cmovlel	%ecx, %eax
	movl	%eax, 24(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	28(%r14), %eax
	jle	LBB0_20
## %bb.19:
	movl	%eax, 28(%r14)
	jmp	LBB0_21
LBB0_20:
	movl	$0, 28(%r14)
LBB0_21:
	movl	4(%r14), %eax
	cmpl	32(%r14), %eax
	jle	LBB0_23
## %bb.22:
	movl	%eax, 32(%r14)
LBB0_23:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fpm_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fpm_scoreboard,8,3             ## @fpm_scoreboard
	.comm	_ZLOG_WARNING,4,2               ## @ZLOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to update scoreboard: the SHM has not been found"

	.comm	_FPM_SCOREBOARD_ACTION_SET,4,2  ## @FPM_SCOREBOARD_ACTION_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_scoreboard_update          ; -- Begin function fpm_scoreboard_update
	.p2align	2
_fpm_scoreboard_update:                 ; @fpm_scoreboard_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x29, #16]
Lloh0:
	adrp	x9, _fpm_scoreboard@GOTPAGE
Lloh1:
	ldr	x9, [x9, _fpm_scoreboard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x28, x9, x8, eq
	cbz	x28, LBB0_16
; %bb.1:
	mov	x27, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	add	x19, x28, #36
	mov	x0, x19
	mov	w1, #0
	bl	_fpm_spinlock
Lloh3:
	adrp	x8, _FPM_SCOREBOARD_ACTION_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPM_SCOREBOARD_ACTION_SET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w27
	b.ne	LBB0_17
; %bb.2:
	tbnz	w26, #31, LBB0_4
; %bb.3:
	str	w26, [x28]
LBB0_4:
	tbnz	w25, #31, LBB0_6
; %bb.5:
	str	w25, [x28, #4]
LBB0_6:
	tbnz	w24, #31, LBB0_8
; %bb.7:
	str	w24, [x28, #8]
LBB0_8:
	tbnz	w23, #31, LBB0_10
; %bb.9:
	str	w23, [x28, #12]
LBB0_10:
	tbnz	w22, #31, LBB0_12
; %bb.11:
	str	w22, [x28, #20]
LBB0_12:
	tbnz	w21, #31, LBB0_14
; %bb.13:
	str	w21, [x28, #24]
LBB0_14:
	cmp	w20, #1
	b.lt	LBB0_20
; %bb.15:
	str	w20, [x28, #28]
	b	LBB0_20
LBB0_16:
Lloh6:
	adrp	x8, _ZLOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZLOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_zlog
LBB0_17:
	ldr	d0, [x28]
	fmov	s1, w26
	mov.s	v1[1], w25
	add.2s	v0, v0, v1
	movi.2d	v1, #0000000000000000
	smax.2s	v0, v0, v1
	str	d0, [x28]
	ldur	d0, [x28, #20]
	fmov	s2, w22
	mov.s	v2[1], w21
	add.2s	v0, v0, v2
	smax.2s	v0, v0, v1
	stur	d0, [x28, #20]
	ldr	w8, [x28, #28]
	add	w8, w8, w20
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.18:
	str	w8, [x28, #28]
	b	LBB0_20
LBB0_19:
	str	wzr, [x28, #28]
LBB0_20:
	ldr	w8, [x28, #4]
	ldr	w9, [x28, #32]
	cmp	w8, w9
	b.le	LBB0_22
; %bb.21:
	str	w8, [x28, #32]
LBB0_22:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_fpm_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fpm_scoreboard,8,3             ; @fpm_scoreboard
	.comm	_ZLOG_WARNING,4,2               ; @ZLOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to update scoreboard: the SHM has not been found"

	.comm	_FPM_SCOREBOARD_ACTION_SET,4,2  ; @FPM_SCOREBOARD_ACTION_SET
.subsections_via_symbols
