	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _osd_set_osd_clut
__osd_set_osd_clut:                     ## @_osd_set_osd_clut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	_RAM_CLUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edx, (%rcx)
	movq	_OSD_OSDWIN0MD_CLUTS0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmovel	%esi, %eax
	movq	_OSD_OSDWIN0MD@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_RAM_CLUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edx, (%rcx)
	movq	_OSD_OSDWIN1MD_CLUTS1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmovel	%esi, %eax
	movq	_OSD_OSDWIN1MD@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%eax, %edx
	popq	%rbp
	jmp	_osd_modify                     ## TAILCALL
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAM_CLUT,4,2                   ## @RAM_CLUT
	.comm	_OSD_OSDWIN0MD_CLUTS0,4,2       ## @OSD_OSDWIN0MD_CLUTS0
	.comm	_OSD_OSDWIN0MD,4,2              ## @OSD_OSDWIN0MD
	.comm	_OSD_OSDWIN1MD_CLUTS1,4,2       ## @OSD_OSDWIN1MD_CLUTS1
	.comm	_OSD_OSDWIN1MD,4,2              ## @OSD_OSDWIN1MD
	.no_dead_strip	__osd_set_osd_clut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _osd_set_osd_clut
__osd_set_osd_clut:                     ; @_osd_set_osd_clut
	.cfi_startproc
; %bb.0:
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _RAM_CLUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAM_CLUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OSD_OSDWIN0MD_CLUTS0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OSD_OSDWIN0MD_CLUTS0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _OSD_OSDWIN0MD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OSD_OSDWIN0MD@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _RAM_CLUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RAM_CLUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _OSD_OSDWIN1MD_CLUTS1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OSD_OSDWIN1MD_CLUTS1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
Lloh14:
	adrp	x9, _OSD_OSDWIN1MD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OSD_OSDWIN1MD@GOTPAGEOFF]
LBB0_4:
	cmp	w8, w2
	csel	w2, w1, wzr, eq
	ldr	w3, [x9]
	b	_osd_modify
LBB0_5:
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RAM_CLUT,4,2                   ; @RAM_CLUT
	.comm	_OSD_OSDWIN0MD_CLUTS0,4,2       ; @OSD_OSDWIN0MD_CLUTS0
	.comm	_OSD_OSDWIN0MD,4,2              ; @OSD_OSDWIN0MD
	.comm	_OSD_OSDWIN1MD_CLUTS1,4,2       ; @OSD_OSDWIN1MD_CLUTS1
	.comm	_OSD_OSDWIN1MD,4,2              ; @OSD_OSDWIN1MD
	.no_dead_strip	__osd_set_osd_clut
.subsections_via_symbols
