	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__mutex_owned                   ## -- Begin function _mutex_owned
	.p2align	4, 0x90
__mutex_owned:                          ## @_mutex_owned
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_THR_MUTEX_DESTROYED@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	%rsi, (%r15)
	setae	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, (%r15)
	jne	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_PMUTEX_OWNER_ID
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_TID
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	je	LBB0_6
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THR_MUTEX_DESTROYED,8,3        ## @THR_MUTEX_DESTROYED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__mutex_owned                   ; -- Begin function _mutex_owned
	.p2align	2
__mutex_owned:                          ; @_mutex_owned
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _THR_MUTEX_DESTROYED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _THR_MUTEX_DESTROYED@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
	cset	w0, hs
	bl	___predict_false
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_PMUTEX_OWNER_ID
	mov	x20, x0
	mov	x0, x19
	bl	_TID
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x20, x0
	csel	w0, wzr, w8, eq
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_THR_MUTEX_DESTROYED,8,3        ; @THR_MUTEX_DESTROYED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
