	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_sync_init
_sdl_sync_init:                         ## @sdl_sync_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
	movq	_SDL_INIT_TIMER@GOTPCREL(%rip), %rax
	movq	_SDL_INIT_EVENTTHREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_SDL_InitSubSystem
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	callq	_SDL_CreateSemaphore
	movq	_sdl_sync@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	movq	$0, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	callq	_MessageBox
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_INIT_TIMER,4,2             ## @SDL_INIT_TIMER
	.comm	_SDL_INIT_EVENTTHREAD,4,2       ## @SDL_INIT_EVENTTHREAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDL Timer initialization failed"

L_.str.1:                               ## @.str.1
	.asciz	"Error"

	.comm	_sdl_sync,16,3                  ## @sdl_sync
	.no_dead_strip	_sdl_sync_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_sync_init
_sdl_sync_init:                         ; @sdl_sync_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _SDL_INIT_TIMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_INIT_TIMER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDL_INIT_EVENTTHREAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDL_INIT_EVENTTHREAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_SDL_InitSubSystem
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_SDL_CreateSemaphore
Lloh6:
	adrp	x8, _sdl_sync@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sdl_sync@GOTPAGEOFF]
	str	w0, [x8, #8]
	str	xzr, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	w3, #0
	bl	_MessageBox
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_INIT_TIMER,4,2             ; @SDL_INIT_TIMER
	.comm	_SDL_INIT_EVENTTHREAD,4,2       ; @SDL_INIT_EVENTTHREAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDL Timer initialization failed"

l_.str.1:                               ; @.str.1
	.asciz	"Error"

	.comm	_sdl_sync,16,3                  ; @sdl_sync
	.no_dead_strip	_sdl_sync_init
.subsections_via_symbols
