	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_get_video_size             ## -- Begin function egl_get_video_size
	.p2align	4, 0x90
_egl_get_video_size:                    ## @egl_get_video_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movl	$0, (%rdx)
	movq	(%rdi), %rdi
	movq	_EGL_NO_DISPLAY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rbx), %rsi
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	movq	_EGL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	_eglQuerySurface
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	movq	_EGL_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_eglQuerySurface
	movl	-32(%rbp), %eax
	movl	%eax, (%r15)
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_NO_DISPLAY,8,3             ## @EGL_NO_DISPLAY
	.comm	_EGL_NO_SURFACE,8,3             ## @EGL_NO_SURFACE
	.comm	_EGL_WIDTH,4,2                  ## @EGL_WIDTH
	.comm	_EGL_HEIGHT,4,2                 ## @EGL_HEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_get_video_size             ; -- Begin function egl_get_video_size
	.p2align	2
_egl_get_video_size:                    ; @egl_get_video_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	str	wzr, [x1]
	str	wzr, [x2]
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _EGL_NO_DISPLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x1, [x21, #8]
Lloh3:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x19, x2
Lloh6:
	adrp	x8, _EGL_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGL_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_eglQuerySurface
	ldp	x0, x1, [x21]
Lloh9:
	adrp	x8, _EGL_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EGL_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_eglQuerySurface
	ldr	w8, [sp, #12]
	str	w8, [x20]
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_NO_DISPLAY,8,3             ; @EGL_NO_DISPLAY
	.comm	_EGL_NO_SURFACE,8,3             ; @EGL_NO_SURFACE
	.comm	_EGL_WIDTH,4,2                  ; @EGL_WIDTH
	.comm	_EGL_HEIGHT,4,2                 ; @EGL_HEIGHT
.subsections_via_symbols
