	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___libogc_lock_init             ## -- Begin function __libogc_lock_init
	.p2align	4, 0x90
___libogc_lock_init:                    ## @__libogc_lock_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LWP_MUTEX_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	testl	%esi, %esi
	jne	LBB0_3
## %bb.4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdi
	callq	_LWP_MutexInit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	-16(%rbp), %ecx
	movl	%ecx, (%rbx)
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_MUTEX_NULL,8,3             ## @LWP_MUTEX_NULL
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___libogc_lock_init             ; -- Begin function __libogc_lock_init
	.p2align	2
___libogc_lock_init:                    ; @__libogc_lock_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
Lloh0:
	adrp	x8, _LWP_MUTEX_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LWP_MUTEX_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	str	wzr, [x0]
Lloh5:
	adrp	x9, _FALSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_LWP_MutexInit
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_MUTEX_NULL,8,3             ; @LWP_MUTEX_NULL
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
