	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mce_open
_mce_open:                              ## @mce_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_mce_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_open_exclu@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_1
LBB0_3:
	movq	_mce_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_open_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_O_EXCL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rbx), %esi
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	movl	$1, (%rdx)
LBB0_6:
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_mce_state_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nonseekable_open               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mce_state_lock,4,2             ## @mce_state_lock
	.comm	_open_exclu,4,2                 ## @open_exclu
	.comm	_open_count,8,3                 ## @open_count
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_mce_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mce_open
_mce_open:                              ; @mce_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _mce_state_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mce_state_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x9, _open_exclu@GOTPAGE
Lloh3:
	ldr	x9, [x9, _open_exclu@GOTPAGEOFF]
	ldr	w8, [x9]
	cbz	w8, LBB0_2
LBB0_1:
Lloh4:
	adrp	x0, _mce_state_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _mce_state_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x8, _open_count@GOTPAGE
Lloh10:
	ldr	x8, [x8, _open_count@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	w11, [x19]
Lloh11:
	adrp	x12, _O_EXCL@GOTPAGE
Lloh12:
	ldr	x12, [x12, _O_EXCL@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	and	w11, w12, w11
	cbz	x10, LBB0_4
; %bb.3:
	cbnz	w11, LBB0_1
	b	LBB0_6
LBB0_4:
	cbz	w11, LBB0_6
; %bb.5:
	mov	w11, #1
	str	w11, [x9]
LBB0_6:
	add	x9, x10, #1
	str	x9, [x8]
Lloh14:
	adrp	x0, _mce_state_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _mce_state_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nonseekable_open
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mce_state_lock,4,2             ; @mce_state_lock
	.comm	_open_exclu,4,2                 ; @open_exclu
	.comm	_open_count,8,3                 ; @open_count
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_mce_open
.subsections_via_symbols
