	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __call_resetfuncs
___call_resetfuncs:                     ## @__call_resetfuncs
	.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
	movl	%edi, %r15d
	movq	_sys_reset_func_queue@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rbx
	callq	___lwp_queue_tail
	movl	$1, %r12d
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.1:
	movq	_sys_reset_func_queue@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	movq	%r14, %rdi
	callq	___lwp_queue_tail
	cmpq	%rax, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	*%rcx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r12), %eax
	orl	%r12d, %eax
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	___sram_sync
	leal	(%r12,%r12), %ecx
	testq	%rax, %rax
	cmovnel	%ebx, %ecx
	orl	%r12d, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	setb	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sys_reset_func_queue,8,3       ## @sys_reset_func_queue
	.no_dead_strip	___call_resetfuncs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __call_resetfuncs
___call_resetfuncs:                     ; @__call_resetfuncs
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _sys_reset_func_queue@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sys_reset_func_queue@GOTPAGEOFF]
	ldr	x22, [x0]
	bl	___lwp_queue_tail
	mov	w21, #1
	cmp	x22, x0
	b.eq	LBB0_5
; %bb.1:
Lloh2:
	adrp	x20, _sys_reset_func_queue@GOTPAGE
Lloh3:
	ldr	x20, [x20, _sys_reset_func_queue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #8]
	mov	x0, x20
	bl	___lwp_queue_tail
	cmp	x22, x0
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	blr	x8
	orr	w8, w21, w21, lsl #1
	cmp	x0, #0
	csel	w21, w21, w8, ne
	b	LBB0_2
LBB0_5:
	bl	___sram_sync
	lsl	w8, w21, #1
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	orr	w8, w8, w21
	cmp	w8, #2
	cset	w0, lo
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_sys_reset_func_queue,8,3       ; @sys_reset_func_queue
	.no_dead_strip	___call_resetfuncs
.subsections_via_symbols
