	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_refresh_input_size
_sdl_refresh_input_size:                ## @sdl_refresh_input_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	16(%rdi), %rbx
	leaq	40(%rdi), %rax
	testl	%esi, %esi
	cmovneq	%rax, %rbx
	cmpl	$0, 20(%rbx)
	je	LBB0_5
## %bb.1:
	cmpl	%r13d, (%rbx)
	jne	LBB0_5
## %bb.2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%rbx)
	jne	LBB0_5
## %bb.3:
	cmpl	%r12d, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	cmpl	%r9d, 12(%rbx)
	je	LBB0_14
LBB0_5:
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_sdl_tex_zero
	cmpq	$0, 8(%r15)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rcx, %rsi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	movq	_SDL_PIXELFORMAT_RGBA4444@GOTPCREL(%rip), %rax
	movq	%rcx, %rsi
	jmp	LBB0_8
LBB0_6:
	movq	_SDL_PIXELFORMAT_RGB565@GOTPCREL(%rip), %rax
LBB0_8:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movq	_SDL_PIXELFORMAT_ARGB8888@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r12d
	movq	_SDL_HINT_RENDER_SCALE_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDL_HINT_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SDL_SetHintWithPriority
	movl	(%r15), %edi
	movq	_SDL_TEXTUREACCESS_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	movl	%r13d, %ecx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_SDL_CreateTexture
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	movq	_SDL_BLENDMODE_BLEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_SDL_SetTextureBlendMode
LBB0_13:
	movl	%r13d, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movl	$1, 16(%rbx)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testl	%r14d, %r14d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rbx
	cmovneq	%rax, %rbx
	xorl	%eax, %eax
	callq	_SDL_GetError
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RARCH_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_PIXELFORMAT_ARGB8888,4,2   ## @SDL_PIXELFORMAT_ARGB8888
	.comm	_SDL_PIXELFORMAT_RGBA4444,4,2   ## @SDL_PIXELFORMAT_RGBA4444
	.comm	_SDL_PIXELFORMAT_RGB565,4,2     ## @SDL_PIXELFORMAT_RGB565
	.comm	_SDL_HINT_RENDER_SCALE_QUALITY,4,2 ## @SDL_HINT_RENDER_SCALE_QUALITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linear"

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

	.comm	_SDL_HINT_OVERRIDE,4,2          ## @SDL_HINT_OVERRIDE
	.comm	_SDL_TEXTUREACCESS_STREAMING,4,2 ## @SDL_TEXTUREACCESS_STREAMING
L_.str.2:                               ## @.str.2
	.asciz	"[SDL2]: Failed to create %s texture: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"menu"

L_.str.4:                               ## @.str.4
	.asciz	"main"

	.comm	_SDL_BLENDMODE_BLEND,4,2        ## @SDL_BLENDMODE_BLEND
	.no_dead_strip	_sdl_refresh_input_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_refresh_input_size
_sdl_refresh_input_size:                ; @sdl_refresh_input_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	mov	x25, x0
	add	x8, x0, #40
	add	x9, x0, #16
	cmp	w1, #0
	csel	x23, x8, x9, ne
	ldr	w8, [x23, #20]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x23, #4]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x23, #8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x23, #12]
	cmp	w8, w19
	b.eq	LBB0_9
LBB0_5:
	mov	x0, x23
	bl	_sdl_tex_zero
Lloh0:
	adrp	x8, _SDL_PIXELFORMAT_ARGB8888@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_PIXELFORMAT_ARGB8888@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SDL_PIXELFORMAT_RGBA4444@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SDL_PIXELFORMAT_RGBA4444@GOTPAGEOFF]
Lloh4:
	adrp	x10, _SDL_PIXELFORMAT_RGB565@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SDL_PIXELFORMAT_RGB565@GOTPAGEOFF]
	cmp	w24, #0
	csel	x9, x9, x10, ne
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	x9, [x25, #8]
	cmp	x9, #0
	ccmp	w24, #0, #0, eq
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _SDL_HINT_RENDER_SCALE_QUALITY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDL_HINT_RENDER_SCALE_QUALITY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
	csel	x1, x9, x8, ne
Lloh13:
	adrp	x8, _SDL_HINT_OVERRIDE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDL_HINT_OVERRIDE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_SDL_SetHintWithPriority
	ldr	w0, [x25]
Lloh16:
	adrp	x8, _SDL_TEXTUREACCESS_STREAMING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDL_TEXTUREACCESS_STREAMING@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x26
	mov	x3, x22
	mov	x4, x21
	bl	_SDL_CreateTexture
	str	w0, [x23, #20]
	cbz	w0, LBB0_10
; %bb.6:
	cbz	w24, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _SDL_BLENDMODE_BLEND@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDL_BLENDMODE_BLEND@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_SDL_SetTextureBlendMode
LBB0_8:
	stp	w22, w21, [x23]
	stp	w20, w19, [x23, #8]
	mov	w8, #1
	str	w8, [x23, #16]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh22:
	adrp	x8, l_.str.4@PAGE
Lloh23:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w24, #0
	csel	x19, x9, x8, ne
	bl	_SDL_GetError
	mov	x2, x0
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_RARCH_ERR
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_PIXELFORMAT_ARGB8888,4,2   ; @SDL_PIXELFORMAT_ARGB8888
	.comm	_SDL_PIXELFORMAT_RGBA4444,4,2   ; @SDL_PIXELFORMAT_RGBA4444
	.comm	_SDL_PIXELFORMAT_RGB565,4,2     ; @SDL_PIXELFORMAT_RGB565
	.comm	_SDL_HINT_RENDER_SCALE_QUALITY,4,2 ; @SDL_HINT_RENDER_SCALE_QUALITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linear"

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

	.comm	_SDL_HINT_OVERRIDE,4,2          ; @SDL_HINT_OVERRIDE
	.comm	_SDL_TEXTUREACCESS_STREAMING,4,2 ; @SDL_TEXTUREACCESS_STREAMING
l_.str.2:                               ; @.str.2
	.asciz	"[SDL2]: Failed to create %s texture: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"menu"

l_.str.4:                               ; @.str.4
	.asciz	"main"

	.comm	_SDL_BLENDMODE_BLEND,4,2        ; @SDL_BLENDMODE_BLEND
	.no_dead_strip	_sdl_refresh_input_size
.subsections_via_symbols
