	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ERR_pop_to_mark                ## -- Begin function ERR_pop_to_mark
	.p2align	4, 0x90
_ERR_pop_to_mark:                       ## @ERR_pop_to_mark
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ERR_get_state
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %rsi
	cmpq	%rsi, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_ERR_FLAG_MARK@GOTPCREL(%rip), %r15
	movq	_ERR_NUM_ERRORS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movl	(%rax,%rsi,4), %ecx
	movl	(%r15), %edx
	testl	%ecx, %edx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_err_clear
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movslq	(%r12), %rcx
	decq	%rcx
	subq	$1, %rsi
	cmovbq	%rcx, %rsi
	movq	%rsi, 8(%rbx)
	cmpq	%rsi, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax,%rsi,4)
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_FLAG_MARK,4,2              ## @ERR_FLAG_MARK
	.comm	_ERR_NUM_ERRORS,4,2             ## @ERR_NUM_ERRORS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ERR_pop_to_mark                ; -- Begin function ERR_pop_to_mark
	.p2align	2
_ERR_pop_to_mark:                       ; @ERR_pop_to_mark
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_ERR_get_state
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldp	x8, x1, [x0]
	cmp	x8, x1
	b.eq	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, _ERR_FLAG_MARK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ERR_FLAG_MARK@GOTPAGEOFF]
Lloh2:
	adrp	x21, _ERR_NUM_ERRORS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ERR_NUM_ERRORS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x1, lsl #2]
	ldr	w10, [x20]
	tst	w10, w9
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_err_clear
	ldp	x9, x8, [x19]
	sub	x10, x8, #1
	ldrsw	x11, [x21]
	sub	x11, x11, #1
	cmp	x8, #0
	csel	x1, x11, x10, eq
	str	x1, [x19, #8]
	cmp	x9, x1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	bic	w9, w9, w10
	str	w9, [x8, x1, lsl #2]
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_FLAG_MARK,4,2              ; @ERR_FLAG_MARK
	.comm	_ERR_NUM_ERRORS,4,2             ; @ERR_NUM_ERRORS
.subsections_via_symbols
