	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _osd_enable_color_key
__osd_enable_color_key:                 ## @_osd_enable_color_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%esi, %ebx
	movq	%rdi, %r15
	addl	$-128, %ecx
	cmpl	$7, %ecx
	ja	LBB0_17
## %bb.1:
	movl	%edx, %r14d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%r15), %eax
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.3:
	cmpl	$136, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$137, %ebx
	jne	LBB0_22
## %bb.5:
	movq	_OSD_TRANSPBMPIDX_BMP0_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_OSD_TRANSPBMPIDX_BMP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OSD_TRANSPBMPIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_osd_modify
	jmp	LBB0_18
LBB0_12:
	movl	(%r15), %eax
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.13:
	movq	_OSD_TRANSPVALU_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_14:
	movl	(%r15), %eax
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.15:
	movq	_OSD_TRANSPVALL_RGBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r14d, %esi
	movq	_OSD_TRANSPVALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_osd_write
	movq	_OSD_TRANSPVALU_RGBU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$16, %r14d
LBB0_16:
	movq	_OSD_TRANSPVALU@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_osd_modify
	jmp	LBB0_17
LBB0_7:
	movl	(%r15), %eax
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:
	movq	_OSD_TRANSPVAL_RGBTRANS@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_OSD_TRANSPVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_OSD_TRANSPBMPIDX_BMP1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_OSD_TRANSPBMPIDX_BMP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OSD_TRANSPBMPIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_osd_modify
	jmp	LBB0_20
LBB0_10:
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.11:
	movq	_OSD_TRANSPVALL_RGBL@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_OSD_TRANSPVALL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_osd_write
LBB0_17:
	cmpl	$137, %ebx
	je	LBB0_18
## %bb.19:
	cmpl	$136, %ebx
	jne	LBB0_22
LBB0_20:
	movq	_OSD_OSDWIN1MD@GOTPCREL(%rip), %rax
	movq	_OSD_OSDWIN1MD_TE1@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_18:
	movq	_OSD_OSDWIN0MD@GOTPCREL(%rip), %rax
	movq	_OSD_OSDWIN0MD_TE0@GOTPCREL(%rip), %rcx
LBB0_21:
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_osd_set                        ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_VPBE_VERSION_3,4,2             ## @VPBE_VERSION_3
	.comm	_OSD_TRANSPBMPIDX_BMP0,4,2      ## @OSD_TRANSPBMPIDX_BMP0
	.comm	_OSD_TRANSPBMPIDX_BMP0_SHIFT,4,2 ## @OSD_TRANSPBMPIDX_BMP0_SHIFT
	.comm	_OSD_TRANSPBMPIDX,4,2           ## @OSD_TRANSPBMPIDX
	.comm	_OSD_TRANSPBMPIDX_BMP1,4,2      ## @OSD_TRANSPBMPIDX_BMP1
	.comm	_OSD_TRANSPBMPIDX_BMP1_SHIFT,4,2 ## @OSD_TRANSPBMPIDX_BMP1_SHIFT
	.comm	_VPBE_VERSION_1,4,2             ## @VPBE_VERSION_1
	.comm	_OSD_TRANSPVAL_RGBTRANS,4,2     ## @OSD_TRANSPVAL_RGBTRANS
	.comm	_OSD_TRANSPVAL,4,2              ## @OSD_TRANSPVAL
	.comm	_OSD_TRANSPVALL_RGBL,4,2        ## @OSD_TRANSPVALL_RGBL
	.comm	_OSD_TRANSPVALL,4,2             ## @OSD_TRANSPVALL
	.comm	_OSD_TRANSPVALU_Y,4,2           ## @OSD_TRANSPVALU_Y
	.comm	_OSD_TRANSPVALU,4,2             ## @OSD_TRANSPVALU
	.comm	_OSD_TRANSPVALU_RGBU,4,2        ## @OSD_TRANSPVALU_RGBU
	.comm	_OSD_OSDWIN0MD_TE0,4,2          ## @OSD_OSDWIN0MD_TE0
	.comm	_OSD_OSDWIN0MD,4,2              ## @OSD_OSDWIN0MD
	.comm	_OSD_OSDWIN1MD_TE1,4,2          ## @OSD_OSDWIN1MD_TE1
	.comm	_OSD_OSDWIN1MD,4,2              ## @OSD_OSDWIN1MD
	.no_dead_strip	__osd_enable_color_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _osd_enable_color_key
__osd_enable_color_key:                 ; @_osd_enable_color_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	sub	w8, w3, #128
	cmp	w8, #7
	b.hi	LBB0_17
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _VPBE_VERSION_3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.3:
	cmp	w20, #136
	b.eq	LBB0_13
; %bb.4:
	cmp	w20, #137
	b.ne	LBB0_22
; %bb.5:
Lloh5:
	adrp	x8, _OSD_TRANSPBMPIDX_BMP0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSD_TRANSPBMPIDX_BMP0@GOTPAGEOFF]
Lloh7:
	adrp	x9, _OSD_TRANSPBMPIDX_BMP0_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OSD_TRANSPBMPIDX_BMP0_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
	lsl	w2, w21, w8
Lloh11:
	adrp	x8, _OSD_TRANSPBMPIDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OSD_TRANSPBMPIDX@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_osd_modify
	b	LBB0_20
LBB0_6:
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _VPBE_VERSION_3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.7:
Lloh17:
	adrp	x8, _OSD_TRANSPVALU_Y@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OSD_TRANSPVALU_Y@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _OSD_TRANSPVALU@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OSD_TRANSPVALU@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	b	LBB0_10
LBB0_8:
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _VPBE_VERSION_3@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.9:
Lloh26:
	adrp	x8, _OSD_TRANSPVALL_RGBL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OSD_TRANSPVALL_RGBL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w1, w8, w21
Lloh29:
	adrp	x8, _OSD_TRANSPVALL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OSD_TRANSPVALL@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_osd_write
Lloh32:
	adrp	x8, _OSD_TRANSPVALU_RGBU@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OSD_TRANSPVALU_RGBU@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	lsr	w2, w21, #16
Lloh35:
	adrp	x8, _OSD_TRANSPVALU@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OSD_TRANSPVALU@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
LBB0_10:
	bl	_osd_modify
	b	LBB0_17
LBB0_11:
	ldr	w8, [x19]
Lloh38:
	adrp	x9, _VPBE_VERSION_1@GOTPAGE
Lloh39:
	ldr	x9, [x9, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
Lloh41:
	adrp	x8, _OSD_TRANSPVAL_RGBTRANS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _OSD_TRANSPVAL_RGBTRANS@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	and	w1, w8, w21
Lloh44:
	adrp	x8, _OSD_TRANSPVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _OSD_TRANSPVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh46:
	adrp	x8, _OSD_TRANSPBMPIDX_BMP1@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OSD_TRANSPBMPIDX_BMP1@GOTPAGEOFF]
Lloh48:
	adrp	x9, _OSD_TRANSPBMPIDX_BMP1_SHIFT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _OSD_TRANSPBMPIDX_BMP1_SHIFT@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	ldr	w8, [x9]
	lsl	w2, w21, w8
Lloh52:
	adrp	x8, _OSD_TRANSPBMPIDX@GOTPAGE
Lloh53:
	ldr	x8, [x8, _OSD_TRANSPBMPIDX@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_osd_modify
	b	LBB0_19
LBB0_14:
Lloh55:
	adrp	x9, _VPBE_VERSION_3@GOTPAGE
Lloh56:
	ldr	x9, [x9, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.15:
Lloh58:
	adrp	x8, _OSD_TRANSPVALL_RGBL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _OSD_TRANSPVALL_RGBL@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	and	w1, w8, w21
Lloh61:
	adrp	x8, _OSD_TRANSPVALL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _OSD_TRANSPVALL@GOTPAGEOFF]
LBB0_16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_osd_write
LBB0_17:
	cmp	w20, #137
	b.eq	LBB0_20
; %bb.18:
	cmp	w20, #136
	b.ne	LBB0_22
LBB0_19:
Lloh63:
	adrp	x8, _OSD_OSDWIN1MD@GOTPAGE
Lloh64:
	ldr	x8, [x8, _OSD_OSDWIN1MD@GOTPAGEOFF]
Lloh65:
	adrp	x9, _OSD_OSDWIN1MD_TE1@GOTPAGE
Lloh66:
	ldr	x9, [x9, _OSD_OSDWIN1MD_TE1@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh67:
	adrp	x8, _OSD_OSDWIN0MD@GOTPAGE
Lloh68:
	ldr	x8, [x8, _OSD_OSDWIN0MD@GOTPAGEOFF]
Lloh69:
	adrp	x9, _OSD_OSDWIN0MD_TE0@GOTPAGE
Lloh70:
	ldr	x9, [x9, _OSD_OSDWIN0MD_TE0@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_osd_set
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_VPBE_VERSION_3,4,2             ; @VPBE_VERSION_3
	.comm	_OSD_TRANSPBMPIDX_BMP0,4,2      ; @OSD_TRANSPBMPIDX_BMP0
	.comm	_OSD_TRANSPBMPIDX_BMP0_SHIFT,4,2 ; @OSD_TRANSPBMPIDX_BMP0_SHIFT
	.comm	_OSD_TRANSPBMPIDX,4,2           ; @OSD_TRANSPBMPIDX
	.comm	_OSD_TRANSPBMPIDX_BMP1,4,2      ; @OSD_TRANSPBMPIDX_BMP1
	.comm	_OSD_TRANSPBMPIDX_BMP1_SHIFT,4,2 ; @OSD_TRANSPBMPIDX_BMP1_SHIFT
	.comm	_VPBE_VERSION_1,4,2             ; @VPBE_VERSION_1
	.comm	_OSD_TRANSPVAL_RGBTRANS,4,2     ; @OSD_TRANSPVAL_RGBTRANS
	.comm	_OSD_TRANSPVAL,4,2              ; @OSD_TRANSPVAL
	.comm	_OSD_TRANSPVALL_RGBL,4,2        ; @OSD_TRANSPVALL_RGBL
	.comm	_OSD_TRANSPVALL,4,2             ; @OSD_TRANSPVALL
	.comm	_OSD_TRANSPVALU_Y,4,2           ; @OSD_TRANSPVALU_Y
	.comm	_OSD_TRANSPVALU,4,2             ; @OSD_TRANSPVALU
	.comm	_OSD_TRANSPVALU_RGBU,4,2        ; @OSD_TRANSPVALU_RGBU
	.comm	_OSD_OSDWIN0MD_TE0,4,2          ; @OSD_OSDWIN0MD_TE0
	.comm	_OSD_OSDWIN0MD,4,2              ; @OSD_OSDWIN0MD
	.comm	_OSD_OSDWIN1MD_TE1,4,2          ; @OSD_OSDWIN1MD_TE1
	.comm	_OSD_OSDWIN1MD,4,2              ; @OSD_OSDWIN1MD
	.no_dead_strip	__osd_enable_color_key
.subsections_via_symbols
