	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_erst_get_record_id_begin       ## -- Begin function erst_get_record_id_begin
	.p2align	4, 0x90
_erst_get_record_id_begin:              ## @erst_get_record_id_begin
	.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	_erst_disable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %rbx
	movq	_erst_record_id_cache@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	incl	4(%r14)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	$0, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_erst_disable,8,3               ## @erst_disable
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_erst_record_id_cache,8,2       ## @erst_record_id_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_erst_get_record_id_begin       ; -- Begin function erst_get_record_id_begin
	.p2align	2
_erst_get_record_id_begin:              ; @erst_get_record_id_begin
	.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
Lloh0:
	adrp	x8, _erst_disable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _erst_disable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x19, x0
Lloh6:
	adrp	x20, _erst_record_id_cache@GOTPAGE
Lloh7:
	ldr	x20, [x20, _erst_record_id_cache@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	str	wzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_erst_disable,8,3               ; @erst_disable
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_erst_record_id_cache,8,2       ; @erst_record_id_cache
.subsections_via_symbols
