	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_qp_mutex
_update_qp_mutex:                       ## @update_qp_mutex
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_qp_mutexeslen@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_1
## %bb.2:
	movl	%edi, %r14d
	movl	%edi, %eax
	notl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	_qp_mutexes@GOTPCREL(%rip), %r13
	movq	_md@GOTPCREL(%rip), %r9
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%rbx), %r15d
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movslq	%r15d, %r12
	shlq	$4, %r12
	movl	(%rdi,%r12), %ecx
	testl	%r14d, %ecx
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %ecx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi,%r12), %rcx
	cmpq	(%r9), %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movl	$-1, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%r9)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r9, %rbx
	callq	_fprintf
	movq	(%r13), %rax
	movl	(%rax,%r12), %edi
	callq	_print_prmask
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movq	%rbx, %r9
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_qp_mutexeslen@GOTPCREL(%rip), %rbx
	movq	(%r13), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi,%r12), %rcx
	cmpq	(%r9), %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi,%r12), %ecx
	movl	%ecx, %edx
	notl	%edx
	xorl	%esi, %esi
	testl	%edx, %r14d
	sete	%sil
	testl	%eax, %eax
	cmovel	%esi, %eax
	andl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, (%rdi,%r12)
	leal	-1(%rcx), %edx
	testl	%edx, %ecx
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rbx), %rcx
	decq	%rcx
	movl	%ecx, (%rbx)
	shlq	$4, %rcx
	movups	(%rdi,%rcx), %xmm0
	movups	%xmm0, (%rdi,%r12)
	jmp	LBB0_13
LBB0_14:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:
	movl	%r14d, %edi
	callq	_add_qp_mutex
	movl	$1, %eax
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qp_mutexeslen,4,2              ## @qp_mutexeslen
	.comm	_qp_mutexes,8,3                 ## @qp_mutexes
	.comm	_md,16,3                        ## @md
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  Clearing mutex relation"

L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_update_qp_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_qp_mutex
_update_qp_mutex:                       ; @update_qp_mutex
	.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
Lloh0:
	adrp	x23, _qp_mutexeslen@GOTPAGE
Lloh1:
	ldr	x23, [x23, _qp_mutexeslen@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	mov	w24, #0
	mvn	w25, w0
Lloh2:
	adrp	x26, _qp_mutexes@GOTPAGE
Lloh3:
	ldr	x26, [x26, _qp_mutexes@GOTPAGEOFF]
Lloh4:
	adrp	x27, _md@GOTPAGE
Lloh5:
	ldr	x27, [x27, _md@GOTPAGEOFF]
Lloh6:
	adrp	x28, _stderr@GOTPAGE
Lloh7:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	sbfiz	x9, x24, #4, #32
	ldr	w9, [x8, x9]
	tst	w9, w19
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x21, w24
	cmp	w9, w19
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x8, x21, lsl #4
	ldr	x9, [x9, #8]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	mov	w20, #-1
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27, #8]
	lsl	x22, x21, #4
	cbz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x26]
	ldr	w0, [x8, x22]
	bl	_print_prmask
	ldr	w0, [x28]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x8, [x26]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x8, x21, lsl #4
	ldr	x9, [x9, #8]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, x22]
	bics	wzr, w19, w9
	cset	w10, eq
	cmp	w20, #0
	csel	w20, w10, w20, eq
	and	w9, w9, w25
	str	w9, [x8, x22]
	sub	w10, w9, #1
	tst	w9, w10
	b.ne	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x23]
	sub	x9, x9, #1
	str	w9, [x23]
	ldr	q0, [x8, x9, lsl #4]
	str	q0, [x8, x21, lsl #4]
	b	LBB0_3
LBB0_13:
	cmp	w20, #1
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_add_qp_mutex
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_qp_mutexeslen,4,2              ; @qp_mutexeslen
	.comm	_qp_mutexes,8,3                 ; @qp_mutexes
	.comm	_md,16,3                        ; @md
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  Clearing mutex relation"

l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_update_qp_mutex
.subsections_via_symbols
