	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _osd_enable_vid_rgb888
__osd_enable_vid_rgb888:                ## @_osd_enable_vid_rgb888
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_WIN_VID0@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.4:
	movq	_OSD_MISCCTL_RGBEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OSD_MISCCTL_RGBWIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%edx, %esi
	movq	_OSD_MISCCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_osd_modify                     ## TAILCALL
LBB0_2:
	movq	_WIN_VID1@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.5:
	movq	_OSD_MISCCTL_RGBEN@GOTPCREL(%rip), %rax
	movq	_OSD_MISCCTL_RGBWIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_OSD_MISCCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	popq	%rbp
	jmp	_osd_modify                     ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPBE_VERSION_1,8,3             ## @VPBE_VERSION_1
	.comm	_WIN_VID0,4,2                   ## @WIN_VID0
	.comm	_OSD_MISCCTL_RGBEN,4,2          ## @OSD_MISCCTL_RGBEN
	.comm	_OSD_MISCCTL_RGBWIN,4,2         ## @OSD_MISCCTL_RGBWIN
	.comm	_OSD_MISCCTL,4,2                ## @OSD_MISCCTL
	.comm	_WIN_VID1,4,2                   ## @WIN_VID1
	.no_dead_strip	__osd_enable_vid_rgb888
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _osd_enable_vid_rgb888
__osd_enable_vid_rgb888:                ; @_osd_enable_vid_rgb888
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VPBE_VERSION_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _WIN_VID0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIN_VID0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _OSD_MISCCTL_RGBEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSD_MISCCTL_RGBEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _OSD_MISCCTL_RGBWIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSD_MISCCTL_RGBWIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _OSD_MISCCTL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OSD_MISCCTL@GOTPAGEOFF]
	orr	w1, w8, w2
Lloh14:
	ldr	w3, [x9]
	b	_osd_modify
LBB0_3:
Lloh15:
	adrp	x8, _WIN_VID1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WIN_VID1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _OSD_MISCCTL_RGBEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OSD_MISCCTL_RGBEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _OSD_MISCCTL_RGBWIN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OSD_MISCCTL_RGBWIN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _OSD_MISCCTL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _OSD_MISCCTL@GOTPAGEOFF]
	orr	w1, w9, w8
Lloh26:
	ldr	w3, [x10]
	mov	x2, x1
	b	_osd_modify
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VPBE_VERSION_1,8,3             ; @VPBE_VERSION_1
	.comm	_WIN_VID0,4,2                   ; @WIN_VID0
	.comm	_OSD_MISCCTL_RGBEN,4,2          ; @OSD_MISCCTL_RGBEN
	.comm	_OSD_MISCCTL_RGBWIN,4,2         ; @OSD_MISCCTL_RGBWIN
	.comm	_OSD_MISCCTL,4,2                ; @OSD_MISCCTL
	.comm	_WIN_VID1,4,2                   ; @WIN_VID1
	.no_dead_strip	__osd_enable_vid_rgb888
.subsections_via_symbols
