	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtx_init                       ## -- Begin function mtx_init
	.p2align	4, 0x90
_mtx_init:                              ## @mtx_init
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-28(%rbp), %rdi
	callq	_pthread_mutexattr_init
	movq	_mtx_recursive@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PTHREAD_MUTEX_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdi
	callq	_pthread_mutexattr_settype
LBB0_2:
	leaq	-28(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pthread_mutex_init
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pthread_mutexattr_destroy
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_thrd_success@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_thrd_error@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtx_recursive,4,2              ## @mtx_recursive
	.comm	_PTHREAD_MUTEX_RECURSIVE,4,2    ## @PTHREAD_MUTEX_RECURSIVE
	.comm	_thrd_success,4,2               ## @thrd_success
	.comm	_thrd_error,4,2                 ## @thrd_error
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtx_init                       ; -- Begin function mtx_init
	.p2align	2
_mtx_init:                              ; @mtx_init
	.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	x20, x1
	mov	x19, x0
	add	x0, sp, #12
	bl	_pthread_mutexattr_init
Lloh0:
	adrp	x8, _mtx_recursive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mtx_recursive@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PTHREAD_MUTEX_RECURSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTHREAD_MUTEX_RECURSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_pthread_mutexattr_settype
LBB0_2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_pthread_mutex_init
	mov	x19, x0
	add	x0, sp, #12
	bl	_pthread_mutexattr_destroy
Lloh6:
	adrp	x8, _thrd_success@GOTPAGE
Lloh7:
	ldr	x8, [x8, _thrd_success@GOTPAGEOFF]
Lloh8:
	adrp	x9, _thrd_error@GOTPAGE
Lloh9:
	ldr	x9, [x9, _thrd_error@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mtx_recursive,4,2              ; @mtx_recursive
	.comm	_PTHREAD_MUTEX_RECURSIVE,4,2    ; @PTHREAD_MUTEX_RECURSIVE
	.comm	_thrd_success,4,2               ; @thrd_success
	.comm	_thrd_error,4,2                 ; @thrd_error
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
