	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl2_init_renderer
_sdl2_init_renderer:                    ## @sdl2_init_renderer
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_SDL_RENDERER_ACCELERATED@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rdi)
	movl	$0, %ebx
	je	LBB0_2
## %bb.1:
	movq	_SDL_RENDERER_PRESENTVSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_SDL_ClearHints
	movq	_SDL_HINT_RENDER_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$0, 8(%r14)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_SDL_HINT_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SDL_SetHintWithPriority
	movl	4(%r14), %edi
	movl	$-1, %esi
	movl	%ebx, %edx
	callq	_SDL_CreateRenderer
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$255, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SDL_SetRenderDrawColor         ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	callq	_SDL_GetError
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RARCH_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_RENDERER_ACCELERATED,4,2   ## @SDL_RENDERER_ACCELERATED
	.comm	_SDL_RENDERER_PRESENTVSYNC,4,2  ## @SDL_RENDERER_PRESENTVSYNC
	.comm	_SDL_HINT_RENDER_VSYNC,4,2      ## @SDL_HINT_RENDER_VSYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1"

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

	.comm	_SDL_HINT_OVERRIDE,4,2          ## @SDL_HINT_OVERRIDE
L_.str.2:                               ## @.str.2
	.asciz	"[SDL2]: Failed to initialize renderer: %s"

	.no_dead_strip	_sdl2_init_renderer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl2_init_renderer
_sdl2_init_renderer:                    ; @sdl2_init_renderer
	.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	x19, x0
Lloh0:
	adrp	x8, _SDL_RENDERER_ACCELERATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_RENDERER_ACCELERATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _SDL_RENDERER_PRESENTVSYNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SDL_RENDERER_PRESENTVSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
	bl	_SDL_ClearHints
Lloh6:
	adrp	x8, _SDL_HINT_RENDER_VSYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDL_HINT_RENDER_VSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	ldr	x10, [x19, #8]
	cmp	x10, #0
	csel	x1, x9, x8, eq
Lloh13:
	adrp	x8, _SDL_HINT_OVERRIDE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDL_HINT_OVERRIDE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_SDL_SetHintWithPriority
	ldr	w0, [x19, #4]
	mov	w1, #-1
	mov	x2, x20
	bl	_SDL_CreateRenderer
	str	w0, [x19]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #255
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SDL_SetRenderDrawColor
LBB0_2:
	bl	_SDL_GetError
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RARCH_ERR
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_RENDERER_ACCELERATED,4,2   ; @SDL_RENDERER_ACCELERATED
	.comm	_SDL_RENDERER_PRESENTVSYNC,4,2  ; @SDL_RENDERER_PRESENTVSYNC
	.comm	_SDL_HINT_RENDER_VSYNC,4,2      ; @SDL_HINT_RENDER_VSYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1"

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

	.comm	_SDL_HINT_OVERRIDE,4,2          ; @SDL_HINT_OVERRIDE
l_.str.2:                               ; @.str.2
	.asciz	"[SDL2]: Failed to initialize renderer: %s"

	.no_dead_strip	_sdl2_init_renderer
.subsections_via_symbols
