	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mutex_init_body
_mutex_init_body:                       ## @mutex_init_body
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	28(%rsi), %eax
	movl	%eax, 16(%rdi)
	movq	$0, 48(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	callq	_mutex_init_link
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movq	_UMUTEX_UNOWNED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movl	$0, 24(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_UMUTEX_PRIO_PROTECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	24(%r14), %eax
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_4:
	movq	_UMUTEX_UNOWNED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_UMUTEX_PRIO_INHERIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_6:
	movq	8(%r14), %rax
	movq	_PTHREAD_PROCESS_SHARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_USYNC_PROCESS_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_8:
	movq	16(%r14), %rax
	movq	_PTHREAD_MUTEX_ROBUST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	callq	_mutex_init_robust
	movq	_UMUTEX_ROBUST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_10:
	movl	16(%rbx), %edi
	callq	_PMUTEX_TYPE
	movq	_PTHREAD_MUTEX_ADAPTIVE_NP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movq	__thr_spinloops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_MUTEX_ADAPTIVE_SPINS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	movq	%rax, 8(%rbx)
	movq	__thr_yieldloops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMUTEX_UNOWNED,8,3             ## @UMUTEX_UNOWNED
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ## @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_CONTESTED,8,3           ## @UMUTEX_CONTESTED
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ## @UMUTEX_PRIO_PROTECT
	.comm	_PTHREAD_PROCESS_SHARED,8,3     ## @PTHREAD_PROCESS_SHARED
	.comm	_USYNC_PROCESS_SHARED,4,2       ## @USYNC_PROCESS_SHARED
	.comm	_PTHREAD_MUTEX_ROBUST,8,3       ## @PTHREAD_MUTEX_ROBUST
	.comm	_UMUTEX_ROBUST,4,2              ## @UMUTEX_ROBUST
	.comm	_PTHREAD_MUTEX_ADAPTIVE_NP,8,3  ## @PTHREAD_MUTEX_ADAPTIVE_NP
	.comm	__thr_spinloops,8,3             ## @_thr_spinloops
	.comm	_MUTEX_ADAPTIVE_SPINS,8,3       ## @MUTEX_ADAPTIVE_SPINS
	.comm	__thr_yieldloops,8,3            ## @_thr_yieldloops
	.no_dead_strip	_mutex_init_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mutex_init_body
_mutex_init_body:                       ; @mutex_init_body
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #28]
	str	w8, [x0, #16]
	str	xzr, [x0, #48]
	stp	xzr, xzr, [x0]
	bl	_mutex_init_link
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _UMUTEX_UNOWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMUTEX_UNOWNED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	str	wzr, [x19, #24]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _UMUTEX_CONTESTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UMUTEX_CONTESTED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _UMUTEX_PRIO_PROTECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UMUTEX_PRIO_PROTECT@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x19, #24]
	ldr	w8, [x20, #24]
	ldr	x9, [x19, #32]
	str	w8, [x9]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _UMUTEX_UNOWNED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UMUTEX_UNOWNED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #40]
Lloh12:
	adrp	x8, _UMUTEX_PRIO_INHERIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UMUTEX_PRIO_INHERIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_6:
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _PTHREAD_PROCESS_SHARED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PTHREAD_PROCESS_SHARED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _USYNC_PROCESS_SHARED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _USYNC_PROCESS_SHARED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_8:
	ldr	x8, [x20, #16]
Lloh21:
	adrp	x9, _PTHREAD_MUTEX_ROBUST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PTHREAD_MUTEX_ROBUST@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, #0
	bl	_mutex_init_robust
Lloh24:
	adrp	x8, _UMUTEX_ROBUST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UMUTEX_ROBUST@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_PMUTEX_TYPE
Lloh27:
	adrp	x8, _PTHREAD_MUTEX_ADAPTIVE_NP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PTHREAD_MUTEX_ADAPTIVE_NP@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
Lloh30:
	adrp	x8, __thr_spinloops@GOTPAGE
Lloh31:
	ldr	x8, [x8, __thr_spinloops@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _MUTEX_ADAPTIVE_SPINS@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MUTEX_ADAPTIVE_SPINS@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
Lloh36:
	adrp	x9, __thr_yieldloops@GOTPAGE
Lloh37:
	ldr	x9, [x9, __thr_yieldloops@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	stp	x9, x8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_UMUTEX_UNOWNED,8,3             ; @UMUTEX_UNOWNED
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ; @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_CONTESTED,8,3           ; @UMUTEX_CONTESTED
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ; @UMUTEX_PRIO_PROTECT
	.comm	_PTHREAD_PROCESS_SHARED,8,3     ; @PTHREAD_PROCESS_SHARED
	.comm	_USYNC_PROCESS_SHARED,4,2       ; @USYNC_PROCESS_SHARED
	.comm	_PTHREAD_MUTEX_ROBUST,8,3       ; @PTHREAD_MUTEX_ROBUST
	.comm	_UMUTEX_ROBUST,4,2              ; @UMUTEX_ROBUST
	.comm	_PTHREAD_MUTEX_ADAPTIVE_NP,8,3  ; @PTHREAD_MUTEX_ADAPTIVE_NP
	.comm	__thr_spinloops,8,3             ; @_thr_spinloops
	.comm	_MUTEX_ADAPTIVE_SPINS,8,3       ; @MUTEX_ADAPTIVE_SPINS
	.comm	__thr_yieldloops,8,3            ; @_thr_yieldloops
	.no_dead_strip	_mutex_init_body
.subsections_via_symbols
