	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osd_initialize
_osd_initialize:                        ## @osd_initialize
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	__osd_init
	movq	_PIXFMT_YCBCRI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rax
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ROM_CLUT1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_4:
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	__osd_set_field_inversion
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	__osd_set_rom_clut
	movq	_WIN_OSD0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_osd_init_layer
	movq	_WIN_VID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_osd_init_layer
	movq	_WIN_OSD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_osd_init_layer
	movq	_WIN_VID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_osd_init_layer
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PIXFMT_YCBCRI,4,2              ## @PIXFMT_YCBCRI
	.comm	_VPBE_VERSION_3,8,3             ## @VPBE_VERSION_3
	.comm	_ROM_CLUT1,4,2                  ## @ROM_CLUT1
	.comm	_WIN_OSD0,4,2                   ## @WIN_OSD0
	.comm	_WIN_VID0,4,2                   ## @WIN_VID0
	.comm	_WIN_OSD1,4,2                   ## @WIN_OSD1
	.comm	_WIN_VID1,4,2                   ## @WIN_VID1
	.no_dead_strip	_osd_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osd_initialize
_osd_initialize:                        ; @osd_initialize
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	__osd_init
Lloh0:
	adrp	x8, _PIXFMT_YCBCRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIXFMT_YCBCRI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _VPBE_VERSION_3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ROM_CLUT1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ROM_CLUT1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_3:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	__osd_set_field_inversion
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	__osd_set_rom_clut
Lloh9:
	adrp	x8, _WIN_OSD0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIN_OSD0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_osd_init_layer
Lloh12:
	adrp	x8, _WIN_VID0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WIN_VID0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_osd_init_layer
Lloh15:
	adrp	x8, _WIN_OSD1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WIN_OSD1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_osd_init_layer
Lloh18:
	adrp	x8, _WIN_VID1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WIN_VID1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_osd_init_layer
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PIXFMT_YCBCRI,4,2              ; @PIXFMT_YCBCRI
	.comm	_VPBE_VERSION_3,8,3             ; @VPBE_VERSION_3
	.comm	_ROM_CLUT1,4,2                  ; @ROM_CLUT1
	.comm	_WIN_OSD0,4,2                   ; @WIN_OSD0
	.comm	_WIN_VID0,4,2                   ; @WIN_VID0
	.comm	_WIN_OSD1,4,2                   ; @WIN_OSD1
	.comm	_WIN_VID1,4,2                   ; @WIN_VID1
	.no_dead_strip	_osd_initialize
.subsections_via_symbols
