	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lwp_mutex_locksupp
___lwp_mutex_locksupp:                  ## @__lwp_mutex_locksupp
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LWP_MUTEX_NULL@GOTPCREL(%rip), %rax
	movl	$-1, %r12d
	cmpq	%rdi, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_LWP_OBJTYPE
	movq	_LWP_OBJTYPE_MUTEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_LWP_OBJMASKID
	movq	__lwp_mutex_objects@GOTPCREL(%rip), %rdi
	leaq	-36(%rbp), %rdx
	movl	%eax, %esi
	callq	___lwp_objmgr_getisrdisable
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	addq	$4, %rdi
	movl	(%rax), %esi
	movl	-36(%rbp), %r8d
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	___lwp_mutex_seize
	movq	__thr_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_MUTEX_NULL,8,3             ## @LWP_MUTEX_NULL
	.comm	_LWP_OBJTYPE_MUTEX,8,3          ## @LWP_OBJTYPE_MUTEX
	.comm	__lwp_mutex_objects,4,2         ## @_lwp_mutex_objects
	.comm	__thr_executing,8,3             ## @_thr_executing
	.no_dead_strip	___lwp_mutex_locksupp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lwp_mutex_locksupp
___lwp_mutex_locksupp:                  ; @__lwp_mutex_locksupp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _LWP_MUTEX_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LWP_MUTEX_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_LWP_OBJTYPE
Lloh3:
	adrp	x8, _LWP_OBJTYPE_MUTEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LWP_OBJTYPE_MUTEX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_LWP_OBJMASKID
	mov	x1, x0
Lloh6:
	adrp	x0, __lwp_mutex_objects@GOTPAGE
Lloh7:
	ldr	x0, [x0, __lwp_mutex_objects@GOTPAGEOFF]
	add	x2, sp, #12
	bl	___lwp_objmgr_getisrdisable
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x0], #4
	ldr	w4, [sp, #12]
	mov	x2, x20
	mov	x3, x19
	bl	___lwp_mutex_seize
Lloh8:
	adrp	x8, __thr_executing@GOTPAGE
Lloh9:
	ldr	x8, [x8, __thr_executing@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_MUTEX_NULL,8,3             ; @LWP_MUTEX_NULL
	.comm	_LWP_OBJTYPE_MUTEX,8,3          ; @LWP_OBJTYPE_MUTEX
	.comm	__lwp_mutex_objects,4,2         ; @_lwp_mutex_objects
	.comm	__thr_executing,8,3             ; @_thr_executing
	.no_dead_strip	___lwp_mutex_locksupp
.subsections_via_symbols
