	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	-12(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	movq	%rbx, %rdi
	callq	_pthread_mutex_isowned_np
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	leaq	-12(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movq	%rbx, %rdi
	callq	_pthread_mutex_isowned_np
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rdi
	leaq	-12(%rbp), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	movl	-16(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	%rbx, %rdi
	callq	_pthread_mutex_isowned_np
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
LBB0_1:
	leaq	L_str.5(%rip), %rdi
LBB0_2:
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_thread,4,2                     ## @thread
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"OK"

L_str.4:                                ## @str.4
	.asciz	"pthread_mutex_isowned_np() returned zero\nfor a mutex we hold ourselves"

L_str.5:                                ## @str.5
	.asciz	"pthread_mutex_isowned_np() returned non-zero\nfor a mutex that is not held"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	add	x0, sp, #8
	mov	x1, #0
	bl	_pthread_mutex_init
	add	x0, sp, #8
	bl	_pthread_mutex_isowned_np
	cbnz	x0, LBB0_5
; %bb.1:
	add	x0, sp, #8
	bl	_pthread_mutex_lock
	add	x0, sp, #8
	bl	_pthread_mutex_isowned_np
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_str.4@PAGE
Lloh1:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _thread@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	sub	x0, x29, #4
	add	x3, sp, #8
	mov	x1, #0
	bl	_pthread_create
	ldur	w0, [x29, #-4]
	mov	x1, #0
	bl	_pthread_join
	add	x0, sp, #8
	bl	_pthread_mutex_unlock
	add	x0, sp, #8
	bl	_pthread_mutex_isowned_np
	cbnz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
LBB0_5:
Lloh7:
	adrp	x0, l_str.5@PAGE
Lloh8:
	add	x0, x0, l_str.5@PAGEOFF
LBB0_6:
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_thread,4,2                     ; @thread
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"OK"

l_str.4:                                ; @str.4
	.asciz	"pthread_mutex_isowned_np() returned zero\nfor a mutex we hold ourselves"

l_str.5:                                ; @str.5
	.asciz	"pthread_mutex_isowned_np() returned non-zero\nfor a mutex that is not held"

.subsections_via_symbols
