	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_format
_convert_format:                        ## @convert_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	_EGL_PIXEL_FORMAT_USAGE_MASK_BRCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edi, %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_XBGR_8888@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_vcos_assert
	jmp	LBB0_9
LBB0_4:
	movq	_RGB_565@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_A_8@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ABGR_8888@GOTPCREL(%rip), %rax
	movq	_IMAGE_FORMAT_PRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_ABGR_8888@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EGL_PIXEL_FORMAT_USAGE_MASK_BRCM,4,2 ## @EGL_PIXEL_FORMAT_USAGE_MASK_BRCM
	.comm	_ABGR_8888,4,2                  ## @ABGR_8888
	.comm	_IMAGE_FORMAT_PRE,4,2           ## @IMAGE_FORMAT_PRE
	.comm	_XBGR_8888,4,2                  ## @XBGR_8888
	.comm	_RGB_565,4,2                    ## @RGB_565
	.comm	_A_8,4,2                        ## @A_8
	.no_dead_strip	_convert_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_format
_convert_format:                        ; @convert_format
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _EGL_PIXEL_FORMAT_USAGE_MASK_BRCM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGL_PIXEL_FORMAT_USAGE_MASK_BRCM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %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, _XBGR_8888@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XBGR_8888@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	w0, #0
	bl	_vcos_assert
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh7:
	adrp	x8, _RGB_565@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RGB_565@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _A_8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _A_8@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _ABGR_8888@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABGR_8888@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IMAGE_FORMAT_PRE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IMAGE_FORMAT_PRE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh17:
	adrp	x8, _ABGR_8888@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABGR_8888@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.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_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_EGL_PIXEL_FORMAT_USAGE_MASK_BRCM,4,2 ; @EGL_PIXEL_FORMAT_USAGE_MASK_BRCM
	.comm	_ABGR_8888,4,2                  ; @ABGR_8888
	.comm	_IMAGE_FORMAT_PRE,4,2           ; @IMAGE_FORMAT_PRE
	.comm	_XBGR_8888,4,2                  ; @XBGR_8888
	.comm	_RGB_565,4,2                    ; @RGB_565
	.comm	_A_8,4,2                        ; @A_8
	.no_dead_strip	_convert_format
.subsections_via_symbols
