	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_oldmem_page               ## -- Begin function copy_oldmem_page
	.p2align	4, 0x90
_copy_oldmem_page:                      ## @copy_oldmem_page
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioremap_cache
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	addq	%rax, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.6:
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_iounmap
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_10
LBB0_8:
	callq	_memcpy
LBB0_9:
	xorl	%eax, %eax
	callq	_set_iounmap_nonlazy
	movq	%r14, %rdi
	callq	_iounmap
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_EFAULT,8,3                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_oldmem_page               ; -- Begin function copy_oldmem_page
	.p2align	2
_copy_oldmem_page:                      ; @copy_oldmem_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	cbz	x2, LBB0_9
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x21, x1
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x0, x0, x8
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ioremap_cache
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x1, x0, x23
	mov	x0, x21
	mov	x2, x19
	cbz	w22, LBB0_7
; %bb.3:
	bl	_copy_to_user
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_iounmap
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_7:
	bl	_memcpy
LBB0_8:
	bl	_set_iounmap_nonlazy
	mov	x0, x20
	bl	_iounmap
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_EFAULT,8,3                     ; @EFAULT
.subsections_via_symbols
