	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gx_egl_attrib_colours
_gx_egl_attrib_colours:                 ## @gx_egl_attrib_colours
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	_gx_egl_attrib_colours.rgba(%rip), %rdi
	callq	_countof
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movslq	%ebx, %rax
	leaq	l_reltable.gx_egl_attrib_colours(%rip), %rcx
	movslq	(%rcx,%rax,4), %r13
	xorl	%ebx, %ebx
	leaq	_gx_egl_attrib_colours.rgba(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movl	%eax, (%r15,%r12,8)
	leaq	(,%r12,4), %rax
	addq	%r13, %rax
	leaq	l_reltable.gx_egl_attrib_colours(%rip), %rcx
	movl	(%rcx,%rax), %eax
	movl	%eax, 4(%r15,%r12,8)
	incq	%r12
	leaq	_gx_egl_attrib_colours.rgba(%rip), %rdi
	callq	_countof
	cltq
	addq	$4, %r14
	addl	$2, %ebx
	cmpq	%rax, %r12
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%edi, %edi
	callq	_vcos_assert
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @gx_egl_attrib_colours.rgba
_gx_egl_attrib_colours.rgba:
	.long	131                             ## 0x83
	.long	132                             ## 0x84
	.long	133                             ## 0x85
	.long	134                             ## 0x86

	.section	__TEXT,__const
	.p2align	4                               ## @gx_egl_attrib_colours.rgb565
_gx_egl_attrib_colours.rgb565:
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	0                               ## 0x0

	.p2align	4                               ## @gx_egl_attrib_colours.rgb888
_gx_egl_attrib_colours.rgb888:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	0                               ## 0x0

	.p2align	4                               ## @gx_egl_attrib_colours.rgb32a
_gx_egl_attrib_colours.rgb32a:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8

	.no_dead_strip	_gx_egl_attrib_colours
	.p2align	2                               ## @reltable.gx_egl_attrib_colours
l_reltable.gx_egl_attrib_colours:
	.long	_gx_egl_attrib_colours.rgb32a-l_reltable.gx_egl_attrib_colours
	.long	_gx_egl_attrib_colours.rgb888-l_reltable.gx_egl_attrib_colours
	.long	_gx_egl_attrib_colours.rgb565-l_reltable.gx_egl_attrib_colours

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gx_egl_attrib_colours
_gx_egl_attrib_colours:                 ; @gx_egl_attrib_colours
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	w23, w1, #128
	cmp	w23, #3
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _gx_egl_attrib_colours.rgba@PAGE
Lloh1:
	add	x21, x21, _gx_egl_attrib_colours.rgba@PAGEOFF
	mov	x0, x21
	bl	_countof
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	mov	x20, #0
Lloh2:
	adrp	x8, l_switch.table.gx_egl_attrib_colours@PAGE
Lloh3:
	add	x8, x8, l_switch.table.gx_egl_attrib_colours@PAGEOFF
	ldr	x23, [x8, w23, sxtw #3]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x22, #2
	ldr	w9, [x21, x8]
	add	x10, x19, x20, lsl #2
	str	w9, [x10]
	ldr	w8, [x23, x8]
	add	x20, x20, #2
	str	w8, [x10, #4]
	add	x22, x22, #1
	mov	x0, x21
	bl	_countof
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	bl	_vcos_assert
	mov	w20, #-1
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @gx_egl_attrib_colours.rgba
_gx_egl_attrib_colours.rgba:
	.long	131                             ; 0x83
	.long	132                             ; 0x84
	.long	133                             ; 0x85
	.long	134                             ; 0x86

	.section	__TEXT,__const
	.p2align	2                               ; @gx_egl_attrib_colours.rgb565
_gx_egl_attrib_colours.rgb565:
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	0                               ; 0x0

	.p2align	2                               ; @gx_egl_attrib_colours.rgb888
_gx_egl_attrib_colours.rgb888:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	0                               ; 0x0

	.p2align	2                               ; @gx_egl_attrib_colours.rgb32a
_gx_egl_attrib_colours.rgb32a:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8

	.no_dead_strip	_gx_egl_attrib_colours
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gx_egl_attrib_colours
l_switch.table.gx_egl_attrib_colours:
	.quad	_gx_egl_attrib_colours.rgb32a
	.quad	_gx_egl_attrib_colours.rgb888
	.quad	_gx_egl_attrib_colours.rgb565

.subsections_via_symbols
