	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findValidPixelFormat
_findValidPixelFormat:                  ## @findValidPixelFormat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_mir_pixel_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_mir_connection_get_available_surface_formats
	movl	-28(%rbp), %ecx
	movq	_mir_pixel_format_invalid@GOTPCREL(%rip), %r8
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movq	_mir_pixel_format_abgr_8888@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_mir_pixel_format_xbgr_8888@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_mir_pixel_format_argb_8888@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_mir_pixel_format_xrgb_8888@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	cmpq	%r9, %rdx
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rsi, %rdx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, %rdx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %rdx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	decq	%rcx
	jne	LBB0_2
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %r8
LBB0_11:
	movq	(%r8), %rax
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mir_pixel_formats,4,2          ## @mir_pixel_formats
	.comm	__glfw,4,2                      ## @_glfw
	.comm	_mir_pixel_format_abgr_8888,8,3 ## @mir_pixel_format_abgr_8888
	.comm	_mir_pixel_format_xbgr_8888,8,3 ## @mir_pixel_format_xbgr_8888
	.comm	_mir_pixel_format_argb_8888,8,3 ## @mir_pixel_format_argb_8888
	.comm	_mir_pixel_format_xrgb_8888,8,3 ## @mir_pixel_format_xrgb_8888
	.comm	_mir_pixel_format_invalid,8,3   ## @mir_pixel_format_invalid
	.no_dead_strip	_findValidPixelFormat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findValidPixelFormat
_findValidPixelFormat:                  ; @findValidPixelFormat
	.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
	sub	sp, sp, #16
	mov	x20, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _mir_pixel_formats@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mir_pixel_formats@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, __glfw@GOTPAGE
Lloh9:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	sub	x3, x29, #28
	mov	x1, x19
	mov	w2, #32
	bl	_mir_connection_get_available_surface_formats
	ldur	w8, [x29, #-28]
	cbz	w8, LBB0_5
; %bb.1:
Lloh11:
	adrp	x9, _mir_pixel_format_abgr_8888@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mir_pixel_format_abgr_8888@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _mir_pixel_format_xbgr_8888@GOTPAGE
Lloh15:
	ldr	x10, [x10, _mir_pixel_format_xbgr_8888@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
Lloh17:
	adrp	x11, _mir_pixel_format_argb_8888@GOTPAGE
Lloh18:
	ldr	x11, [x11, _mir_pixel_format_argb_8888@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
Lloh20:
	adrp	x12, _mir_pixel_format_xrgb_8888@GOTPAGE
Lloh21:
	ldr	x12, [x12, _mir_pixel_format_xrgb_8888@GOTPAGEOFF]
Lloh22:
	ldr	x13, [x12]
Lloh23:
	adrp	x12, _mir_pixel_format_invalid@GOTPAGE
Lloh24:
	ldr	x12, [x12, _mir_pixel_format_invalid@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x19]
	cmp	x14, x9
	ccmp	x14, x10, #4, ne
	ccmp	x14, x11, #4, ne
	ccmp	x14, x13, #4, ne
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x19, x12
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x19, _mir_pixel_format_invalid@GOTPAGE
Lloh26:
	ldr	x19, [x19, _mir_pixel_format_invalid@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x19]
	mov	sp, x20
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_mir_pixel_formats,4,2          ; @mir_pixel_formats
	.comm	__glfw,4,2                      ; @_glfw
	.comm	_mir_pixel_format_abgr_8888,8,3 ; @mir_pixel_format_abgr_8888
	.comm	_mir_pixel_format_xbgr_8888,8,3 ; @mir_pixel_format_xbgr_8888
	.comm	_mir_pixel_format_argb_8888,8,3 ; @mir_pixel_format_argb_8888
	.comm	_mir_pixel_format_xrgb_8888,8,3 ; @mir_pixel_format_xrgb_8888
	.comm	_mir_pixel_format_invalid,8,3   ; @mir_pixel_format_invalid
	.no_dead_strip	_findValidPixelFormat
.subsections_via_symbols
