	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_driver_legacy_fb_format    ## -- Begin function drm_driver_legacy_fb_format
	.p2align	4, 0x90
_drm_driver_legacy_fb_format:           ## @drm_driver_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_drm_mode_legacy_fb_format
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.1:
	movq	_DRM_FORMAT_XRGB8888@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_DRM_FORMAT_HOST_XRGB8888@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	_DRM_FORMAT_ARGB8888@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_DRM_FORMAT_HOST_ARGB8888@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	_DRM_FORMAT_RGB565@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_DRM_FORMAT_HOST_RGB565@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	movq	_DRM_FORMAT_XRGB1555@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_DRM_FORMAT_HOST_XRGB1555@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movq	_DRM_FORMAT_XRGB2101010@GOTPCREL(%rip), %rdx
	movq	%rax, %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_DRM_FORMAT_XBGR2101010@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_11:
	cmpq	$0, (%rbx)
	cmovneq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_XRGB8888,8,3        ## @DRM_FORMAT_XRGB8888
	.comm	_DRM_FORMAT_HOST_XRGB8888,8,3   ## @DRM_FORMAT_HOST_XRGB8888
	.comm	_DRM_FORMAT_ARGB8888,8,3        ## @DRM_FORMAT_ARGB8888
	.comm	_DRM_FORMAT_HOST_ARGB8888,8,3   ## @DRM_FORMAT_HOST_ARGB8888
	.comm	_DRM_FORMAT_RGB565,8,3          ## @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_HOST_RGB565,8,3     ## @DRM_FORMAT_HOST_RGB565
	.comm	_DRM_FORMAT_XRGB1555,8,3        ## @DRM_FORMAT_XRGB1555
	.comm	_DRM_FORMAT_HOST_XRGB1555,8,3   ## @DRM_FORMAT_HOST_XRGB1555
	.comm	_DRM_FORMAT_XRGB2101010,8,3     ## @DRM_FORMAT_XRGB2101010
	.comm	_DRM_FORMAT_XBGR2101010,8,3     ## @DRM_FORMAT_XBGR2101010
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_driver_legacy_fb_format    ; -- Begin function drm_driver_legacy_fb_format
	.p2align	2
_drm_driver_legacy_fb_format:           ; @drm_driver_legacy_fb_format
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_drm_mode_legacy_fb_format
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DRM_FORMAT_XRGB8888@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_FORMAT_XRGB8888@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DRM_FORMAT_HOST_XRGB8888@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_FORMAT_HOST_XRGB8888@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x8, x9, x0, eq
Lloh6:
	adrp	x9, _DRM_FORMAT_ARGB8888@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_FORMAT_ARGB8888@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _DRM_FORMAT_HOST_ARGB8888@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRM_FORMAT_HOST_ARGB8888@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x8, x10, x8, eq
Lloh12:
	adrp	x9, _DRM_FORMAT_RGB565@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DRM_FORMAT_RGB565@GOTPAGEOFF]
Lloh14:
	adrp	x10, _DRM_FORMAT_HOST_RGB565@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DRM_FORMAT_HOST_RGB565@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x8, x10, x8, eq
Lloh18:
	adrp	x9, _DRM_FORMAT_XRGB1555@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRM_FORMAT_XRGB1555@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _DRM_FORMAT_HOST_XRGB1555@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DRM_FORMAT_HOST_XRGB1555@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x0, x10, x8, eq
LBB0_2:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _DRM_FORMAT_XRGB2101010@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DRM_FORMAT_XRGB2101010@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x0, x9
	ccmp	x8, #0, #4, eq
Lloh27:
	adrp	x8, _DRM_FORMAT_XBGR2101010@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DRM_FORMAT_XBGR2101010@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	csel	x0, x8, x0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_XRGB8888,8,3        ; @DRM_FORMAT_XRGB8888
	.comm	_DRM_FORMAT_HOST_XRGB8888,8,3   ; @DRM_FORMAT_HOST_XRGB8888
	.comm	_DRM_FORMAT_ARGB8888,8,3        ; @DRM_FORMAT_ARGB8888
	.comm	_DRM_FORMAT_HOST_ARGB8888,8,3   ; @DRM_FORMAT_HOST_ARGB8888
	.comm	_DRM_FORMAT_RGB565,8,3          ; @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_HOST_RGB565,8,3     ; @DRM_FORMAT_HOST_RGB565
	.comm	_DRM_FORMAT_XRGB1555,8,3        ; @DRM_FORMAT_XRGB1555
	.comm	_DRM_FORMAT_HOST_XRGB1555,8,3   ; @DRM_FORMAT_HOST_XRGB1555
	.comm	_DRM_FORMAT_XRGB2101010,8,3     ; @DRM_FORMAT_XRGB2101010
	.comm	_DRM_FORMAT_XBGR2101010,8,3     ; @DRM_FORMAT_XBGR2101010
.subsections_via_symbols
