	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mutex_self_lock
_mutex_self_lock:                       ## @mutex_self_lock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_PMUTEX_TYPE
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_11
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	testq	%r14, %r14
	jne	LBB0_4
## %bb.9:
	movq	$30, -32(%rbp)
	leaq	-32(%rbp), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___sys_nanosleep
	jmp	LBB0_10
LBB0_7:
	testq	%r14, %r14
	je	LBB0_8
LBB0_4:
	cmpl	$0, (%r14)
	js	LBB0_6
## %bb.5:
	cmpl	$1000000000, 4(%r14)            ## imm = 0x3B9ACA00
	jb	LBB0_16
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movl	(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	incl	%eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_8:
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_clock_gettime
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_TIMESPEC_SUB
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	___sys_nanosleep
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_mutex_self_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mutex_self_lock
lCPI0_0:
	.long	30                              ; 0x1e
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mutex_self_lock:                       ; @mutex_self_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_PMUTEX_TYPE
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.1:
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_9
; %bb.3:
	cbnz	x19, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, #0
	bl	___sys_nanosleep
	b	LBB0_5
LBB0_6:
	cbz	x19, LBB0_12
LBB0_7:
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_9
; %bb.8:
	ldr	w8, [x19, #4]
	mov	w9, #51711
	movk	w9, #15258, lsl #16
	cmp	w8, w9
	b.ls	LBB0_13
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_14
; %bb.11:
	mov	w0, #0
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_16
LBB0_12:
Lloh4:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh6:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_clock_gettime
	mov	x0, sp
	add	x2, sp, #8
	mov	x1, x19
	bl	_TIMESPEC_SUB
	mov	x0, sp
	mov	x1, #0
	bl	___sys_nanosleep
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_mutex_self_lock
.subsections_via_symbols
