	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _osd_set_rom_clut
__osd_set_rom_clut:                     ## @_osd_set_rom_clut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_ROM_CLUT0@GOTPCREL(%rip), %rcx
	movq	_OSD_MISCCTL_RSEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_OSD_MISCCTL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	popq	%rbp
	jmp	_osd_clear                      ## TAILCALL
LBB0_2:
	popq	%rbp
	jmp	_osd_set                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ROM_CLUT0,4,2                  ## @ROM_CLUT0
	.comm	_OSD_MISCCTL_RSEL,4,2           ## @OSD_MISCCTL_RSEL
	.comm	_OSD_MISCCTL,4,2                ## @OSD_MISCCTL
	.no_dead_strip	__osd_set_rom_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_rom_clut
__osd_set_rom_clut:                     ; @_osd_set_rom_clut
	.cfi_startproc
; %bb.0:
	mov	x8, x1
Lloh0:
	adrp	x9, _ROM_CLUT0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ROM_CLUT0@GOTPAGEOFF]
Lloh2:
	adrp	x10, _OSD_MISCCTL_RSEL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OSD_MISCCTL_RSEL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w1, [x10]
Lloh6:
	adrp	x10, _OSD_MISCCTL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OSD_MISCCTL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x10]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	b	_osd_clear
LBB0_2:
	b	_osd_set
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ROM_CLUT0,4,2                  ; @ROM_CLUT0
	.comm	_OSD_MISCCTL_RSEL,4,2           ; @OSD_MISCCTL_RSEL
	.comm	_OSD_MISCCTL,4,2                ; @OSD_MISCCTL
	.no_dead_strip	__osd_set_rom_clut
.subsections_via_symbols
