	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function texture1d_init
_texture1d_init:                        ## @texture1d_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%r8), %r14
	movq	8(%r8), %rdx
	cmpl	$2, %r12d
	jl	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	_EXT_TEXTURE_ARRAY@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_6
LBB0_2:
	movq	_WINED3DFMT_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jge	LBB0_5
## %bb.3:
	movl	8(%r13), %eax
	movq	_WINED3DUSAGE_LEGACY_CUBEMAP@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_8
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_14
LBB0_8:
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	_WINED3DUSAGE_DYNAMIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %edi
	callq	_wined3d_resource_access_is_managed
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movl	8(%r13), %eax
LBB0_11:
	movq	_WINED3DUSAGE_SCRATCH@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_17
LBB0_12:
	movl	24(%r13), %edi
	callq	_wined3d_debug_resource_access
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
LBB0_13:
	xorl	%eax, %eax
	callq	_WARN
LBB0_14:
	movq	_WINED3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %r15
LBB0_16:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r14), %rax
	movq	_ARB_TEXTURE_NON_POWER_OF_TWO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_21
## %bb.18:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	20(%r13), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_is_power_of_two
	movq	%rbx, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:
	movl	(%rcx), %eax
	testl	%eax, 8(%r13)
	je	LBB0_43
## %bb.20:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_21:
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$1, %ecx
	je	LBB0_24
## %bb.22:
	movq	_WINED3DUSAGE_QUERY_GENMIPMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r13), %eax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_7
LBB0_24:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	_texture_resource_ops@GOTPCREL(%rip), %r10
	movq	_texture1d_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_wined3d_texture_init
	addq	$32, %rsp
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_16
LBB0_26:
	movq	(%rbx), %rax
	movl	$1065353216, (%rax)             ## imm = 0x3F800000
	movl	$1065353216, 20(%rax)           ## imm = 0x3F800000
	movl	$1065353216, 40(%rax)           ## imm = 0x3F800000
	movl	$1065353216, 60(%rax)           ## imm = 0x3F800000
	cmpl	$2, %r12d
	jl	LBB0_28
## %bb.27:
	movq	_GL_TEXTURE_1D_ARRAY@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_28:
	movq	_GL_TEXTURE_1D@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wined3d_texture_use_pbo
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	leaq	24(%rcx), %rdi
	callq	_wined3d_resource_free_sysmem
	movq	%rbx, %rcx
	movq	_WINED3D_LOCATION_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_31:
	movl	$-1, %eax
	cltd
	idivl	%r12d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %eax
	jl	LBB0_42
## %bb.32:
	imull	%r12d, %edi
	movl	$24, %esi
	callq	_heap_calloc
	movq	%rbx, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_42
## %bb.33:
	movl	8(%rcx), %ebx
	testl	%ebx, %ebx
	je	LBB0_41
## %bb.34:
	movl	12(%rcx), %eax
	xorl	%r13d, %r13d
LBB0_35:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	testl	%eax, %eax
	je	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	xorl	%r14d, %r14d
LBB0_37:                                ##   Parent Loop BB0_35 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r14d, %ebx
	addl	%r13d, %ebx
	leaq	(%rbx,%rbx,2), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %r15
	movq	%rcx, 16(%rdx,%rax,8)
	movl	%r13d, (%rdx,%rax,8)
	movl	%r14d, 4(%rdx,%rax,8)
	leaq	(%rdx,%rax,8), %rdi
	addq	$8, %rdi
	movq	%rcx, %r12
	callq	_list_init
	movq	16(%r12), %rax
	movq	_WINED3D_LOCATION_DISCARDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdx
	shlq	$5, %rdx
	leaq	(%rax,%rdx), %r10
	movl	%ecx, 24(%rax,%rdx)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, 16(%rax,%rdx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %r9
	leaq	8(%rax,%rdx), %r8
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r10, %rbx
	movq	%r10, %rcx
	callq	*(%r9)
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	leaq	L_.str.9(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	16(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_TRACE
	leaq	L_.str.10(%rip), %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
	incl	%r14d
	movl	8(%r12), %ebx
	movl	12(%r12), %eax
	cmpl	%eax, %r14d
	movq	%r12, %rcx
	jb	LBB0_37
	jmp	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_35 Depth=1
	xorl	%eax, %eax
LBB0_40:                                ##   in Loop: Header=BB0_35 Depth=1
	incl	%r13d
	cmpl	%ebx, %r13d
	jb	LBB0_35
LBB0_41:
	movq	_WINED3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_42:
	movq	%rcx, %rdi
	callq	_wined3d_texture_cleanup_sync
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_43:
	movl	20(%r13), %esi
	movl	12(%r13), %ecx
	movl	16(%r13), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_14
LBB0_44:
	leaq	L_.str.8(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_WARN
	movq	$0, (%rbx)
	movq	%r12, %rdi
	callq	_wined3d_texture_cleanup_sync
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_TEXTURE_ARRAY,8,3          ## @EXT_TEXTURE_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenGL implementation does not support array textures.\n"

	.comm	_WINED3DERR_INVALIDCALL,8,3     ## @WINED3DERR_INVALIDCALL
	.comm	_WINED3DFMT_UNKNOWN,8,3         ## @WINED3DFMT_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"(%p) : Texture cannot be created with a format of WINED3DFMT_UNKNOWN.\n"

	.comm	_WINED3DUSAGE_LEGACY_CUBEMAP,4,2 ## @WINED3DUSAGE_LEGACY_CUBEMAP
L_.str.2:                               ## @.str.2
	.asciz	"1d textures can not be used for cube mapping, returning D3DERR_INVALIDCALL.\n"

	.comm	_WINED3DUSAGE_DYNAMIC,4,2       ## @WINED3DUSAGE_DYNAMIC
	.comm	_WINED3DUSAGE_SCRATCH,4,2       ## @WINED3DUSAGE_SCRATCH
L_.str.3:                               ## @.str.3
	.asciz	"Attempted to create a DYNAMIC texture in pool %s.\n"

	.comm	_ARB_TEXTURE_NON_POWER_OF_TWO,8,3 ## @ARB_TEXTURE_NON_POWER_OF_TWO
L_.str.4:                               ## @.str.4
	.asciz	"Creating a scratch NPOT 1d texture despite lack of HW support.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Attempted to create a NPOT 1d texture (%u, %u, %u) without GL support.\n"

	.comm	_WINED3DUSAGE_QUERY_GENMIPMAP,4,2 ## @WINED3DUSAGE_QUERY_GENMIPMAP
L_.str.6:                               ## @.str.6
	.asciz	"WINED3DUSAGE_QUERY_GENMIPMAP is set, and level count != 1, returning WINED3DERR_INVALIDCALL.\n"

	.comm	_texture1d_ops,4,2              ## @texture1d_ops
	.comm	_texture_resource_ops,4,2       ## @texture_resource_ops
L_.str.7:                               ## @.str.7
	.asciz	"Failed to initialize texture, returning %#x.\n"

	.comm	_GL_TEXTURE_1D_ARRAY,4,2        ## @GL_TEXTURE_1D_ARRAY
	.comm	_GL_TEXTURE_1D,4,2              ## @GL_TEXTURE_1D
	.comm	_WINED3D_LOCATION_BUFFER,4,2    ## @WINED3D_LOCATION_BUFFER
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_WINED3D_LOCATION_DISCARDED,4,2 ## @WINED3D_LOCATION_DISCARDED
L_.str.8:                               ## @.str.8
	.asciz	"Failed to create texture1d parent, hr %#x.\n"

L_.str.9:                               ## @.str.9
	.asciz	"parent %p, parent_ops %p.\n"

L_.str.10:                              ## @.str.10
	.asciz	"Created 1d texture surface level %u, layer %u @ %p.\n"

	.comm	_WINED3D_OK,8,3                 ## @WINED3D_OK
	.no_dead_strip	_texture1d_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function texture1d_init
_texture1d_init:                        ; @texture1d_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x21, x5
	mov	x27, x4
	mov	x23, x3
	mov	x24, x2
	mov	x26, x1
	mov	x19, x0
	ldp	x25, x22, [x4]
	cmp	w2, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _EXT_TEXTURE_ARRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXT_TEXTURE_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _WINED3DFMT_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3DFMT_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.3:
	ldr	w8, [x26, #8]
Lloh6:
	adrp	x9, _WINED3DUSAGE_LEGACY_CUBEMAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DUSAGE_LEGACY_CUBEMAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_5:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_7:
Lloh15:
	adrp	x9, _WINED3DUSAGE_DYNAMIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WINED3DUSAGE_DYNAMIC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w0, [x26, #24]
	bl	_wined3d_resource_access_is_managed
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x26, #8]
LBB0_10:
Lloh18:
	adrp	x28, _WINED3DUSAGE_SCRATCH@GOTPAGE
Lloh19:
	ldr	x28, [x28, _WINED3DUSAGE_SCRATCH@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_11:
	ldr	w0, [x26, #24]
	bl	_wined3d_debug_resource_access
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	bl	_WARN
Lloh22:
	adrp	x8, _WINED3DERR_INVALIDCALL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WINED3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_13:
	ldr	x27, [x8]
LBB0_14:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	x8, [x25]
Lloh24:
	adrp	x9, _ARB_TEXTURE_NON_POWER_OF_TWO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ARB_TEXTURE_NON_POWER_OF_TWO@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_19
; %bb.16:
	ldr	w0, [x26, #20]
	bl	_is_power_of_two
	cbnz	w0, LBB0_19
; %bb.17:
	ldr	w8, [x26, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.18:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
LBB0_19:
	cmp	w23, #1
	b.eq	LBB0_22
; %bb.20:
	ldr	w8, [x26, #8]
Lloh29:
	adrp	x9, _WINED3DUSAGE_QUERY_GENMIPMAP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WINED3DUSAGE_QUERY_GENMIPMAP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_22
; %bb.21:
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_22:
Lloh34:
	adrp	x8, _texture_resource_ops@GOTPAGE
Lloh35:
	ldr	x8, [x8, _texture_resource_ops@GOTPAGEOFF]
	stp	x20, x8, [sp]
Lloh36:
	adrp	x1, _texture1d_ops@GOTPAGE
Lloh37:
	ldr	x1, [x1, _texture1d_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x26
	mov	w5, #0
	mov	x6, x27
	mov	x7, x21
	bl	_wined3d_texture_init
	mov	x27, x0
	bl	_FAILED
	cbz	x0, LBB0_24
; %bb.23:
	str	x27, [sp]
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_WARN
	b	LBB0_14
LBB0_24:
	ldr	x8, [x19]
	mov	w9, #1065353216
	str	w9, [x8]
	str	w9, [x8, #20]
	str	w9, [x8, #40]
	str	w9, [x8, #60]
Lloh40:
	adrp	x8, _GL_TEXTURE_1D_ARRAY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GL_TEXTURE_1D_ARRAY@GOTPAGEOFF]
Lloh42:
	adrp	x9, _GL_TEXTURE_1D@GOTPAGE
Lloh43:
	ldr	x9, [x9, _GL_TEXTURE_1D@GOTPAGEOFF]
	cmp	w24, #1
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x19
	mov	x1, x25
	bl	_wined3d_texture_use_pbo
	cbz	x0, LBB0_26
; %bb.25:
	add	x0, x19, #24
	bl	_wined3d_resource_free_sysmem
Lloh44:
	adrp	x8, _WINED3D_LOCATION_BUFFER@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WINED3D_LOCATION_BUFFER@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_26:
	mov	w8, #-1
	sdiv	w8, w8, w24
	cmp	w8, w23
	b.lt	LBB0_30
; %bb.27:
	mul	w0, w23, w24
	mov	w1, #24
	bl	_heap_calloc
	cbz	x0, LBB0_30
; %bb.28:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_38
; %bb.29:
	mov	x23, x0
	mov	w24, #0
	ldr	w9, [x19, #12]
	b	LBB0_32
LBB0_30:
	mov	x0, x19
	bl	_wined3d_texture_cleanup_sync
Lloh47:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh48:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_13
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	w24, w24, #1
	cmp	w24, w8
	b.hs	LBB0_38
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	cbz	w9, LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	w28, #0
LBB0_34:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w27, w8, w28, w24
	mov	w8, #24
	umaddl	x26, w27, w8, x23
	str	x19, [x26, #16]
	stp	w24, w28, [x26]
	add	x0, x26, #8
	bl	_list_init
	ldr	x8, [x19, #16]
Lloh49:
	adrp	x9, _WINED3D_LOCATION_DISCARDED@GOTPAGE
Lloh50:
	ldr	x9, [x9, _WINED3D_LOCATION_DISCARDED@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	add	x25, x8, x27, lsl #5
	str	w9, [x25, #24]
	str	x26, [x25, #16]
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x4, x25, #8
	mov	x0, x22
	mov	x1, x19
	mov	x2, x27
	mov	x3, x25
	blr	x8
	mov	x27, x0
	bl	_FAILED
	cbnz	x0, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
Lloh52:
	adrp	x0, l_.str.9@PAGE
Lloh53:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_TRACE
	str	x26, [sp]
Lloh54:
	adrp	x0, l_.str.10@PAGE
Lloh55:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x24
	mov	x2, x28
	bl	_TRACE
	add	w28, w28, #1
	ldp	w8, w9, [x19, #8]
	cmp	w28, w9
	b.lo	LBB0_34
	b	LBB0_31
LBB0_36:
	ldp	w9, w8, [x26, #16]
	ldr	w10, [x26, #12]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh56:
	adrp	x0, l_.str.5@PAGE
Lloh57:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_37:
	str	x27, [sp]
Lloh58:
	adrp	x0, l_.str.8@PAGE
Lloh59:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_WARN
	str	xzr, [x25]
	mov	x0, x19
	bl	_wined3d_texture_cleanup_sync
	b	LBB0_14
LBB0_38:
Lloh60:
	adrp	x8, _WINED3D_OK@GOTPAGE
Lloh61:
	ldr	x8, [x8, _WINED3D_OK@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_TEXTURE_ARRAY,8,3          ; @EXT_TEXTURE_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenGL implementation does not support array textures.\n"

	.comm	_WINED3DERR_INVALIDCALL,8,3     ; @WINED3DERR_INVALIDCALL
	.comm	_WINED3DFMT_UNKNOWN,8,3         ; @WINED3DFMT_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"(%p) : Texture cannot be created with a format of WINED3DFMT_UNKNOWN.\n"

	.comm	_WINED3DUSAGE_LEGACY_CUBEMAP,4,2 ; @WINED3DUSAGE_LEGACY_CUBEMAP
l_.str.2:                               ; @.str.2
	.asciz	"1d textures can not be used for cube mapping, returning D3DERR_INVALIDCALL.\n"

	.comm	_WINED3DUSAGE_DYNAMIC,4,2       ; @WINED3DUSAGE_DYNAMIC
	.comm	_WINED3DUSAGE_SCRATCH,4,2       ; @WINED3DUSAGE_SCRATCH
l_.str.3:                               ; @.str.3
	.asciz	"Attempted to create a DYNAMIC texture in pool %s.\n"

	.comm	_ARB_TEXTURE_NON_POWER_OF_TWO,8,3 ; @ARB_TEXTURE_NON_POWER_OF_TWO
l_.str.4:                               ; @.str.4
	.asciz	"Creating a scratch NPOT 1d texture despite lack of HW support.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Attempted to create a NPOT 1d texture (%u, %u, %u) without GL support.\n"

	.comm	_WINED3DUSAGE_QUERY_GENMIPMAP,4,2 ; @WINED3DUSAGE_QUERY_GENMIPMAP
l_.str.6:                               ; @.str.6
	.asciz	"WINED3DUSAGE_QUERY_GENMIPMAP is set, and level count != 1, returning WINED3DERR_INVALIDCALL.\n"

	.comm	_texture1d_ops,4,2              ; @texture1d_ops
	.comm	_texture_resource_ops,4,2       ; @texture_resource_ops
l_.str.7:                               ; @.str.7
	.asciz	"Failed to initialize texture, returning %#x.\n"

	.comm	_GL_TEXTURE_1D_ARRAY,4,2        ; @GL_TEXTURE_1D_ARRAY
	.comm	_GL_TEXTURE_1D,4,2              ; @GL_TEXTURE_1D
	.comm	_WINED3D_LOCATION_BUFFER,4,2    ; @WINED3D_LOCATION_BUFFER
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_WINED3D_LOCATION_DISCARDED,4,2 ; @WINED3D_LOCATION_DISCARDED
l_.str.8:                               ; @.str.8
	.asciz	"Failed to create texture1d parent, hr %#x.\n"

l_.str.9:                               ; @.str.9
	.asciz	"parent %p, parent_ops %p.\n"

l_.str.10:                              ; @.str.10
	.asciz	"Created 1d texture surface level %u, layer %u @ %p.\n"

	.comm	_WINED3D_OK,8,3                 ; @WINED3D_OK
	.no_dead_strip	_texture1d_init
.subsections_via_symbols
