	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_mem_copy
_vc_mem_copy:                           ## @vc_mem_copy
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -32(%rbp)
	movq	%rsi, -40(%rbp)
	movq	%rdx, -48(%rbp)
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_FBIODMACOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_strerror
	movslq	%eax, %rsi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ERR
	movl	%r14d, %edi
	callq	_close
	subl	(%r15), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_strerror
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ERR
	subl	(%r14), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %edi
	callq	_close
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/fb0"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_SYNC,4,2                     ## @O_SYNC
L_.str.1:                               ## @.str.1
	.asciz	"Unable to open '%s': %s(%d)\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_FBIODMACOPY,4,2                ## @FBIODMACOPY
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get memory size via ioctl: %s(%d)\n"

	.no_dead_strip	_vc_mem_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc_mem_copy
_vc_mem_copy:                           ; @vc_mem_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
	stp	x2, x1, [sp, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_SYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_SYNC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x8, _FBIODMACOPY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FBIODMACOPY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x20, _errno@GOTPAGE
Lloh12:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	ldr	w2, [x20]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	mov	x0, x19
	bl	_close
	ldr	w8, [x20]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x19, _errno@GOTPAGE
Lloh16:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_strerror
	mov	x2, x0
	ldr	w8, [x19]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ERR
	ldr	w8, [x19]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_close
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/fb0"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_SYNC,4,2                     ; @O_SYNC
l_.str.1:                               ; @.str.1
	.asciz	"Unable to open '%s': %s(%d)\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_FBIODMACOPY,4,2                ; @FBIODMACOPY
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get memory size via ioctl: %s(%d)\n"

	.no_dead_strip	_vc_mem_copy
.subsections_via_symbols
