	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realloc_texture
_realloc_texture:                       ## @realloc_texture
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ebx
	leaq	-80(%rbp), %rsi
	leaq	-84(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_SDL_QueryTexture
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -60(%rbp)
	jne	LBB0_5
## %bb.3:
	cmpl	%r15d, -56(%rbp)
	jne	LBB0_5
## %bb.4:
	xorl	%r13d, %r13d
	cmpq	%r12, -80(%rbp)
	je	LBB0_14
LBB0_5:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	movl	%ebx, %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_7
## %bb.6:
	callq	_SDL_DestroyTexture
LBB0_7:
	movq	_renderer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDL_TEXTUREACCESS_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_SDL_CreateTexture
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_SDL_SetTextureBlendMode
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.10:
	movq	(%r14), %rdi
	leaq	-72(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	xorl	%esi, %esi
	callq	_SDL_LockTexture
	testq	%rax, %rax
	js	LBB0_13
## %bb.11:
	movq	-72(%rbp), %rdi
	movl	-52(%rbp), %edx
	imull	%r15d, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rdi
	callq	_SDL_UnlockTexture
LBB0_12:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_SDL_GetPixelFormatName
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_av_log
	jmp	LBB0_14
LBB0_13:
	movl	$-1, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_renderer,4,2                   ## @renderer
	.comm	_SDL_TEXTUREACCESS_STREAMING,4,2 ## @SDL_TEXTUREACCESS_STREAMING
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Created %dx%d texture with %s.\n"

	.no_dead_strip	_realloc_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realloc_texture
_realloc_texture:                       ; @realloc_texture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x5
	mov	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.1:
	add	x1, sp, #40
	add	x2, sp, #36
	add	x3, sp, #32
	add	x4, sp, #28
	bl	_SDL_QueryTexture
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldp	w9, w8, [sp, #28]
	ldr	x10, [sp, #40]
	cmp	w8, w20
	ccmp	w9, w19, #0, eq
	ccmp	x10, x21, #0, eq
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	ldr	x0, [x22]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_SDL_DestroyTexture
LBB0_6:
Lloh0:
	adrp	x8, _renderer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _renderer@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SDL_TEXTUREACCESS_STREAMING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDL_TEXTUREACCESS_STREAMING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	mov	x3, x20
	mov	x4, x19
	bl	_SDL_CreateTexture
	str	x0, [x22]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x1, x24
	bl	_SDL_SetTextureBlendMode
	tbnz	x0, #63, LBB0_12
; %bb.8:
	cbz	w23, LBB0_11
; %bb.9:
	ldr	x0, [x22]
	add	x2, sp, #16
	add	x3, sp, #12
	mov	x1, #0
	bl	_SDL_LockTexture
	tbnz	x0, #63, LBB0_12
; %bb.10:
	ldr	x0, [sp, #16]
	ldr	w8, [sp, #12]
	mul	w2, w8, w19
	mov	w1, #0
	bl	_memset
	ldr	x0, [x22]
	bl	_SDL_UnlockTexture
LBB0_11:
Lloh6:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_SDL_GetPixelFormatName
	mov	x5, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	bl	_av_log
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_renderer,4,2                   ; @renderer
	.comm	_SDL_TEXTUREACCESS_STREAMING,4,2 ; @SDL_TEXTUREACCESS_STREAMING
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Created %dx%d texture with %s.\n"

	.no_dead_strip	_realloc_texture
.subsections_via_symbols
