	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_SetFramebuffer           ## -- Begin function VIDEO_SetFramebuffer
	.p2align	4, 0x90
_VIDEO_SetFramebuffer:                  ## @VIDEO_SetFramebuffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	__CPU_ISR_Disable
	movq	_fbSet@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_HorVer@GOTPCREL(%rip), %rbx
	movq	%r14, 24(%rbx)
	leaq	20(%rbx), %rsi
	leaq	16(%rbx), %rdx
	leaq	12(%rbx), %rcx
	leaq	8(%rbx), %r8
	movq	%rbx, %rdi
	callq	___setFbbRegs
	movq	_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	56(%rax), %edx
	movq	__viReg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edx, 56(%rcx)
	movl	60(%rax), %edx
	movl	%edx, 60(%rcx)
	movl	72(%rax), %edx
	movl	%edx, 72(%rcx)
	movl	76(%rax), %edx
	movl	%edx, 76(%rcx)
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	64(%rax), %edx
	movl	%edx, 64(%rcx)
	movl	68(%rax), %edx
	movl	%edx, 68(%rcx)
	movl	80(%rax), %edx
	movl	%edx, 80(%rcx)
	movl	84(%rax), %eax
	movl	%eax, 84(%rcx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fbSet,4,2                      ## @fbSet
	.comm	_HorVer,32,3                    ## @HorVer
	.comm	_regs,8,3                       ## @regs
	.comm	__viReg,8,3                     ## @_viReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_SetFramebuffer           ; -- Begin function VIDEO_SetFramebuffer
	.p2align	2
_VIDEO_SetFramebuffer:                  ; @VIDEO_SetFramebuffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, _fbSet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fbSet@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x20, _HorVer@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HorVer@GOTPAGEOFF]
	str	x19, [x20, #24]
	add	x1, x20, #20
	add	x2, x20, #16
	add	x3, x20, #12
	add	x4, x20, #8
	mov	x0, x20
	bl	___setFbbRegs
Lloh5:
	adrp	x8, _regs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _regs@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w10, [x8, #56]
Lloh8:
	adrp	x9, __viReg@GOTPAGE
Lloh9:
	ldr	x9, [x9, __viReg@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	w10, [x9, #56]
	ldr	w10, [x8, #60]
	str	w10, [x9, #60]
	ldr	w10, [x8, #72]
	str	w10, [x9, #72]
	ldr	w10, [x8, #76]
	str	w10, [x9, #76]
	ldr	x10, [x20]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	w10, [x8, #64]
	str	w10, [x9, #64]
	ldr	w10, [x8, #68]
	str	w10, [x9, #68]
	ldr	w10, [x8, #80]
	str	w10, [x9, #80]
	ldr	w8, [x8, #84]
	str	w8, [x9, #84]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fbSet,4,2                      ; @fbSet
	.comm	_HorVer,32,3                    ; @HorVer
	.comm	_regs,8,3                       ; @regs
	.comm	__viReg,8,3                     ; @_viReg
.subsections_via_symbols
