	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_handler
_reset_handler:                         ## @reset_handler
	.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
	movl	$-1, %ebx
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.1:
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movl	_reset_handler.reset_control(%rip), %eax
	movl	%eax, (%r9)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	(%r9), %eax
	movl	%eax, _reset_handler.reset_control(%rip)
	xorl	%ebx, %ebx
	testb	$4, %al
	je	LBB0_5
## %bb.4:
	movq	_VM_SUSPEND_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vm_suspend
	testl	%eax, %eax
	sete	%al
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EALREADY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_reset_handler.reset_control,4,2 ## @reset_handler.reset_control
	.comm	_VM_SUSPEND_RESET,4,2           ## @VM_SUSPEND_RESET
	.comm	_errno,8,3                      ## @errno
	.comm	_EALREADY,8,3                   ## @EALREADY
	.no_dead_strip	_reset_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_handler
_reset_handler:                         ; @reset_handler
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w4, #1
	b.ne	LBB0_3
; %bb.1:
	cbz	w2, LBB0_4
; %bb.2:
	mov	w0, #0
Lloh0:
	adrp	x8, _reset_handler.reset_control@PAGE
Lloh1:
	ldr	w8, [x8, _reset_handler.reset_control@PAGEOFF]
	str	w8, [x5]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x5]
	adrp	x9, _reset_handler.reset_control@PAGE
	str	w8, [x9, _reset_handler.reset_control@PAGEOFF]
	tbz	w8, #2, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _VM_SUSPEND_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_SUSPEND_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_vm_suspend
	cmp	w0, #0
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _EALREADY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EALREADY@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_reset_handler.reset_control,4,2 ; @reset_handler.reset_control
	.comm	_VM_SUSPEND_RESET,4,2           ; @VM_SUSPEND_RESET
	.comm	_errno,8,3                      ; @errno
	.comm	_EALREADY,8,3                   ; @EALREADY
	.no_dead_strip	_reset_handler
.subsections_via_symbols
