	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_config_match_pixmap_info   ## -- Begin function egl_config_match_pixmap_info
	.p2align	4, 0x90
_egl_config_match_pixmap_info:          ## @egl_config_match_pixmap_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	(%rax,%rcx,4), %r14d
	testl	%ecx, %ecx
	setns	%al
	movq	_EGL_MAX_CONFIGS@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	movl	(%rsi), %r12d
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_vcos_assert
	movl	%r12d, %edi
	callq	_khrn_image_get_red_size
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_FEATURES_UNPACK_RED
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.1:
	movl	%r12d, %edi
	callq	_khrn_image_get_green_size
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_FEATURES_UNPACK_GREEN
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.2:
	movl	%r12d, %edi
	callq	_khrn_image_get_blue_size
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_FEATURES_UNPACK_BLUE
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	movl	%r12d, %edi
	callq	_khrn_image_get_alpha_size
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_FEATURES_UNPACK_ALPHA
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	sete	%r15b
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_formats,8,3                    ## @formats
	.comm	_EGL_MAX_CONFIGS,4,2            ## @EGL_MAX_CONFIGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_config_match_pixmap_info   ; -- Begin function egl_config_match_pixmap_info
	.p2align	2
_egl_config_match_pixmap_info:          ; @egl_config_match_pixmap_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w19, [x8, w0, sxtw #2]
	ldr	w20, [x1]
	cmp	w0, #0
Lloh3:
	adrp	x8, _EGL_MAX_CONFIGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_MAX_CONFIGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, gt
	bl	_vcos_assert
	mov	x0, x20
	bl	_khrn_image_get_red_size
	mov	x21, x0
	mov	x0, x19
	bl	_FEATURES_UNPACK_RED
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_khrn_image_get_green_size
	mov	x21, x0
	mov	x0, x19
	bl	_FEATURES_UNPACK_GREEN
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_khrn_image_get_blue_size
	mov	x21, x0
	mov	x0, x19
	bl	_FEATURES_UNPACK_BLUE
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_khrn_image_get_alpha_size
	mov	x20, x0
	mov	x0, x19
	bl	_FEATURES_UNPACK_ALPHA
	cmp	x20, x0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_formats,8,3                    ; @formats
	.comm	_EGL_MAX_CONFIGS,4,2            ; @EGL_MAX_CONFIGS
.subsections_via_symbols
