	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_emscripten_init
_gfx_ctx_emscripten_init:               ## @gfx_ctx_emscripten_init
	.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
	movl	$1, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_emscripten_initial_width@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_emscripten_initial_height@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	_emscripten_initial_width@GOTPCREL(%rip), %rsi
	movq	_emscripten_initial_height@GOTPCREL(%rip), %rdx
	callq	_emscripten_get_canvas_element_size
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_emscripten_initial_width,8,3   ## @emscripten_initial_width
	.comm	_emscripten_initial_height,8,3  ## @emscripten_initial_height
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#canvas"

	.comm	_EGL_DEFAULT_DISPLAY,8,3        ## @EGL_DEFAULT_DISPLAY
	.comm	_g_egl_inited,8,3               ## @g_egl_inited
	.no_dead_strip	_gfx_ctx_emscripten_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_emscripten_init
_gfx_ctx_emscripten_init:               ; @gfx_ctx_emscripten_init
	.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
	mov	w0, #1
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _emscripten_initial_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _emscripten_initial_width@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _emscripten_initial_height@GOTPAGE
Lloh4:
	ldr	x9, [x9, _emscripten_initial_height@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, _emscripten_initial_width@GOTPAGE
Lloh9:
	ldr	x1, [x1, _emscripten_initial_width@GOTPAGEOFF]
Lloh10:
	adrp	x2, _emscripten_initial_height@GOTPAGE
Lloh11:
	ldr	x2, [x2, _emscripten_initial_height@GOTPAGEOFF]
	bl	_emscripten_get_canvas_element_size
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_emscripten_initial_width,8,3   ; @emscripten_initial_width
	.comm	_emscripten_initial_height,8,3  ; @emscripten_initial_height
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#canvas"

	.comm	_EGL_DEFAULT_DISPLAY,8,3        ; @EGL_DEFAULT_DISPLAY
	.comm	_g_egl_inited,8,3               ; @g_egl_inited
	.no_dead_strip	_gfx_ctx_emscripten_init
.subsections_via_symbols
