	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swsusp_arch_resume             ## -- Begin function swsusp_arch_resume
	.p2align	4, 0x90
_swsusp_arch_resume:                    ## @swsusp_arch_resume
	.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
	xorl	%eax, %eax
	callq	_set_up_temporary_mappings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_safe_page
	movq	_relocated_restore_code@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_core_restore_code@GOTPCREL(%rip), %rsi
	movq	_restore_registers@GOTPCREL(%rip), %rcx
	subq	%rsi, %rcx
	leaq	3(%rcx), %rdx
	testq	%rcx, %rcx
	cmovnsq	%rcx, %rdx
	shrq	$2, %rdx
	movq	%rax, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_restore_image
	jmp	LBB0_4
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_relocated_restore_code,8,3     ## @relocated_restore_code
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_core_restore_code,4,2          ## @core_restore_code
	.comm	_restore_registers,4,2          ## @restore_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swsusp_arch_resume             ; -- Begin function swsusp_arch_resume
	.p2align	2
_swsusp_arch_resume:                    ; @swsusp_arch_resume
	.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
	bl	_set_up_temporary_mappings
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_safe_page
Lloh3:
	adrp	x8, _relocated_restore_code@GOTPAGE
Lloh4:
	ldr	x8, [x8, _relocated_restore_code@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, _core_restore_code@GOTPAGE
Lloh7:
	ldr	x1, [x1, _core_restore_code@GOTPAGEOFF]
Lloh8:
	adrp	x8, _restore_registers@GOTPAGE
Lloh9:
	ldr	x8, [x8, _restore_registers@GOTPAGEOFF]
	sub	x8, x8, x1
	add	x9, x8, #3
	cmp	x8, #0
	csel	x8, x9, x8, lt
	lsr	x2, x8, #2
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	bl	_restore_image
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_relocated_restore_code,8,3     ; @relocated_restore_code
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_core_restore_code,4,2          ; @core_restore_code
	.comm	_restore_registers,4,2          ; @restore_registers
.subsections_via_symbols
