	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d12_init_history
_d3d12_init_history:                    ## @d3d12_init_history
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	24(%rdi), %rdi
	callq	_assert
	movq	24(%r13), %rax
	cmpl	$-1, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	20(%r13), %r12
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rsi
	movl	%r15d, 8(%rax,%rbx)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%rax,%rbx)
	movl	20(%rax), %ecx
	movl	%ecx, 20(%rax,%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 16(%rax,%rbx)
	movq	%r12, (%rax,%rbx)
	movl	16(%r13), %edi
	callq	_d3d12_init_texture
	incq	%r14
	movq	24(%r13), %rax
	movl	(%rax), %eax
	incl	%eax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jb	LBB0_2
LBB0_3:
	movl	$0, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_d3d12_init_history
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d12_init_history
_d3d12_init_history:                    ; @d3d12_init_history
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	add	x24, x19, #20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x22
	stp	w21, w20, [x1, #8]
	ldr	d0, [x8, #16]
	str	d0, [x1, #16]
	str	x24, [x1]
	ldr	w0, [x19, #16]
	bl	_d3d12_init_texture
	add	x23, x23, #1
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	add	w8, w8, #1
	add	x22, x22, #24
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_3:
	str	wzr, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_d3d12_init_history
.subsections_via_symbols
