	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mutex_check_attr
_mutex_check_attr:                      ## @mutex_check_attr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_PTHREAD_MUTEX_ERRORCHECK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	_PTHREAD_MUTEX_TYPE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.3:
	movq	8(%rdi), %rcx
	movq	_PTHREAD_PRIO_NONE@GOTPCREL(%rip), %rdx
	movq	_PTHREAD_PRIO_PROTECT@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovgl	%esi, %eax
	cmpq	(%rdx), %rcx
	cmovll	%esi, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTHREAD_MUTEX_ERRORCHECK,8,3   ## @PTHREAD_MUTEX_ERRORCHECK
	.comm	_PTHREAD_MUTEX_TYPE_MAX,8,3     ## @PTHREAD_MUTEX_TYPE_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PTHREAD_PRIO_NONE,8,3          ## @PTHREAD_PRIO_NONE
	.comm	_PTHREAD_PRIO_PROTECT,8,3       ## @PTHREAD_PRIO_PROTECT
	.no_dead_strip	_mutex_check_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mutex_check_attr
_mutex_check_attr:                      ; @mutex_check_attr
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PTHREAD_MUTEX_ERRORCHECK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTHREAD_MUTEX_ERRORCHECK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PTHREAD_MUTEX_TYPE_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PTHREAD_MUTEX_TYPE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_2:
	ldr	x8, [x0, #8]
Lloh9:
	adrp	x9, _PTHREAD_PRIO_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PTHREAD_PRIO_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _PTHREAD_PRIO_PROTECT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PTHREAD_PRIO_PROTECT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #8, le
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	csel	w0, w8, wzr, lt
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PTHREAD_MUTEX_ERRORCHECK,8,3   ; @PTHREAD_MUTEX_ERRORCHECK
	.comm	_PTHREAD_MUTEX_TYPE_MAX,8,3     ; @PTHREAD_MUTEX_TYPE_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PTHREAD_PRIO_NONE,8,3          ; @PTHREAD_PRIO_NONE
	.comm	_PTHREAD_PRIO_PROTECT,8,3       ; @PTHREAD_PRIO_PROTECT
	.no_dead_strip	_mutex_check_attr
.subsections_via_symbols
