	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_set_texture_frame
_thread_set_texture_frame:              ## @thread_set_texture_frame
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	%r8d, %r12d
	imull	%ecx, %r12d
	shlq	$2, %r12
	movl	(%rdi), %edi
	callq	_slock_lock
	movq	40(%rbx), %rdi
	cmpq	8(%rbx), %r12
	jbe	LBB0_2
## %bb.1:
	movq	%r12, %rsi
	callq	_realloc
	movq	%rax, %rdi
	movq	%rax, 40(%rbx)
	movq	%r12, 8(%rbx)
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movl	$1, 16(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rbx)
	movl	%r15d, 24(%rbx)
	movl	%r14d, 28(%rbx)
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 32(%rbx)
LBB0_4:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slock_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_thread_set_texture_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_set_texture_frame
_thread_set_texture_frame:              ; @thread_set_texture_frame
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	fmov	s8, s0
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mul	w8, w4, w3
	lsl	x24, x8, #2
	ldr	w0, [x0]
	bl	_slock_lock
	ldr	x8, [x20, #8]
	ldr	x0, [x20, #40]
	cmp	x24, x8
	b.ls	LBB0_2
; %bb.1:
	mov	x1, x24
	bl	_realloc
	str	x0, [x20, #40]
	str	x24, [x20, #8]
LBB0_2:
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	mov	w8, #1
	stp	w8, w22, [x20, #16]
	stp	w21, w19, [x20, #24]
	str	s8, [x20, #32]
LBB0_4:
	ldr	w0, [x20]
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_slock_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_thread_set_texture_frame
.subsections_via_symbols
