	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdisp_hw_color_format
_bdisp_hw_color_format:                 ## @bdisp_hw_color_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_BDISP_YUV_3B@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_BDISP_ARGB8888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BLT_TTY_COL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_BLT_TTY_ALPHA_R@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_BDISP_XRGB8888@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_BDISP_RGB565@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_BLT_TTY_COL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_BDISP_RGB888@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_BDISP_NV12@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	_BLT_TTY_COL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_BLT_TTY_BIG_END@GOTPCREL(%rip), %rcx
LBB0_10:
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_BDISP_YUV_3B,4,2               ## @BDISP_YUV_3B
	.comm	_BLT_TTY_COL_SHIFT,4,2          ## @BLT_TTY_COL_SHIFT
	.comm	_BDISP_NV12,4,2                 ## @BDISP_NV12
	.comm	_BLT_TTY_BIG_END,4,2            ## @BLT_TTY_BIG_END
	.comm	_BDISP_RGB565,4,2               ## @BDISP_RGB565
	.comm	_BDISP_XRGB8888,4,2             ## @BDISP_XRGB8888
	.comm	_BDISP_RGB888,4,2               ## @BDISP_RGB888
	.comm	_BDISP_ARGB8888,4,2             ## @BDISP_ARGB8888
	.comm	_BLT_TTY_ALPHA_R,4,2            ## @BLT_TTY_ALPHA_R
	.no_dead_strip	_bdisp_hw_color_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdisp_hw_color_format
_bdisp_hw_color_format:                 ; @bdisp_hw_color_format
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
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:
Lloh2:
	adrp	x8, _BDISP_YUV_3B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BDISP_YUV_3B@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _BDISP_ARGB8888@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BDISP_ARGB8888@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _BLT_TTY_COL_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BLT_TTY_COL_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh10:
	adrp	x9, _BLT_TTY_ALPHA_R@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BLT_TTY_ALPHA_R@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x8, _BDISP_XRGB8888@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BDISP_XRGB8888@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _BDISP_RGB565@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BDISP_RGB565@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _BLT_TTY_COL_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BLT_TTY_COL_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	ret
LBB0_7:
Lloh19:
	adrp	x8, _BDISP_RGB888@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BDISP_RGB888@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _BDISP_NV12@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BDISP_NV12@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _BLT_TTY_COL_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BLT_TTY_COL_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh26:
	adrp	x9, _BLT_TTY_BIG_END@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BLT_TTY_BIG_END@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_BDISP_YUV_3B,4,2               ; @BDISP_YUV_3B
	.comm	_BLT_TTY_COL_SHIFT,4,2          ; @BLT_TTY_COL_SHIFT
	.comm	_BDISP_NV12,4,2                 ; @BDISP_NV12
	.comm	_BLT_TTY_BIG_END,4,2            ; @BLT_TTY_BIG_END
	.comm	_BDISP_RGB565,4,2               ; @BDISP_RGB565
	.comm	_BDISP_XRGB8888,4,2             ; @BDISP_XRGB8888
	.comm	_BDISP_RGB888,4,2               ; @BDISP_RGB888
	.comm	_BDISP_ARGB8888,4,2             ; @BDISP_ARGB8888
	.comm	_BLT_TTY_ALPHA_R,4,2            ; @BLT_TTY_ALPHA_R
	.no_dead_strip	_bdisp_hw_color_format
.subsections_via_symbols
