	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_legacy_fb_format      ## -- Begin function drm_mode_legacy_fb_format
	.p2align	4, 0x90
_drm_mode_legacy_fb_format:             ## @drm_mode_legacy_fb_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
	movq	_DRM_FORMAT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-8, %edi
	roll	$29, %edi
	cmpl	$3, %edi
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	cmpl	$8, %esi
	jne	LBB0_17
## %bb.3:
	movq	_DRM_FORMAT_C8@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	cmpl	$16, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$15, %esi
	jne	LBB0_17
## %bb.6:
	movq	_DRM_FORMAT_XRGB1555@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	cmpl	$24, %esi
	jne	LBB0_17
## %bb.9:
	movq	_DRM_FORMAT_RGB888@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	cmpl	$32, %esi
	je	LBB0_15
## %bb.11:
	cmpl	$30, %esi
	je	LBB0_14
## %bb.12:
	cmpl	$24, %esi
	jne	LBB0_17
## %bb.13:
	movq	_DRM_FORMAT_XRGB8888@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movq	_DRM_FORMAT_RGB565@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_DRM_FORMAT_ARGB8888@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_DRM_FORMAT_XRGB2101010@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_DRM_FORMAT_INVALID,4,2         ## @DRM_FORMAT_INVALID
	.comm	_DRM_FORMAT_C8,4,2              ## @DRM_FORMAT_C8
	.comm	_DRM_FORMAT_XRGB1555,4,2        ## @DRM_FORMAT_XRGB1555
	.comm	_DRM_FORMAT_RGB565,4,2          ## @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_RGB888,4,2          ## @DRM_FORMAT_RGB888
	.comm	_DRM_FORMAT_XRGB8888,4,2        ## @DRM_FORMAT_XRGB8888
	.comm	_DRM_FORMAT_XRGB2101010,4,2     ## @DRM_FORMAT_XRGB2101010
	.comm	_DRM_FORMAT_ARGB8888,4,2        ## @DRM_FORMAT_ARGB8888
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_legacy_fb_format      ; -- Begin function drm_mode_legacy_fb_format
	.p2align	2
_drm_mode_legacy_fb_format:             ; @drm_mode_legacy_fb_format
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _DRM_FORMAT_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_FORMAT_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	sub	w8, w8, #8
	ror	w8, w8, #3
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _DRM_FORMAT_C8@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_FORMAT_C8@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w1, #8
	csel	w0, w8, w0, eq
	ret
LBB0_3:
	cmp	w1, #16
	b.eq	LBB0_11
; %bb.4:
	cmp	w1, #15
	b.ne	LBB0_15
; %bb.5:
Lloh8:
	adrp	x8, _DRM_FORMAT_XRGB1555@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_FORMAT_XRGB1555@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh10:
	adrp	x8, _DRM_FORMAT_RGB888@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_FORMAT_RGB888@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w1, #24
	csel	w0, w8, w0, eq
	ret
LBB0_7:
	cmp	w1, #32
	b.eq	LBB0_12
; %bb.8:
	cmp	w1, #30
	b.eq	LBB0_13
; %bb.9:
	cmp	w1, #24
	b.ne	LBB0_15
; %bb.10:
Lloh13:
	adrp	x8, _DRM_FORMAT_XRGB8888@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRM_FORMAT_XRGB8888@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh15:
	adrp	x8, _DRM_FORMAT_RGB565@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRM_FORMAT_RGB565@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh17:
	adrp	x8, _DRM_FORMAT_ARGB8888@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_FORMAT_ARGB8888@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _DRM_FORMAT_XRGB2101010@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DRM_FORMAT_XRGB2101010@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_DRM_FORMAT_INVALID,4,2         ; @DRM_FORMAT_INVALID
	.comm	_DRM_FORMAT_C8,4,2              ; @DRM_FORMAT_C8
	.comm	_DRM_FORMAT_XRGB1555,4,2        ; @DRM_FORMAT_XRGB1555
	.comm	_DRM_FORMAT_RGB565,4,2          ; @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_RGB888,4,2          ; @DRM_FORMAT_RGB888
	.comm	_DRM_FORMAT_XRGB8888,4,2        ; @DRM_FORMAT_XRGB8888
	.comm	_DRM_FORMAT_XRGB2101010,4,2     ; @DRM_FORMAT_XRGB2101010
	.comm	_DRM_FORMAT_ARGB8888,4,2        ; @DRM_FORMAT_ARGB8888
.subsections_via_symbols
