	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_loop
_create_loop:                           ## @create_loop
	.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
	movq	%r9, %r15
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	$24, %edi
	callq	_d3dcompiler_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rbx, %rdi
	callq	_list_init
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_move_head
LBB0_3:
	movl	$24, %edi
	callq	_d3dcompiler_alloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r14
	movq	_HLSL_IR_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rsi
	addq	$8, %rsi
	movl	%eax, 16(%r14)
	movl	(%r15), %eax
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	callq	_list_add_tail
	movl	$24, %edi
	callq	_d3dcompiler_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rdi
	callq	_list_init
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_loop_condition
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %r15
	movq	_LOOP_DO_WHILE@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	leaq	8(%r15), %rsi
	callq	_list_add_tail
LBB0_8:
	movq	(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_move_tail
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_LOOP_DO_WHILE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	addq	$8, %r15
	movq	%r15, %rsi
	callq	_list_add_tail
LBB0_12:
	movq	%r12, %rdi
	callq	_d3dcompiler_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_d3dcompiler_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_d3dcompiler_free
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	(%r14), %rdi
	callq	_d3dcompiler_free
LBB0_15:
	movq	%r14, %rdi
	callq	_d3dcompiler_free
	xorl	%edi, %edi
	callq	_d3dcompiler_free
	movq	%rbx, %rdi
	callq	_d3dcompiler_free
	movq	%r12, %rdi
	callq	_free_instr_list
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_instr_list
	movq	%r13, %rdi
	callq	_free_instr
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_instr_list
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HLSL_IR_LOOP,4,2               ## @HLSL_IR_LOOP
	.comm	_LOOP_DO_WHILE,4,2              ## @LOOP_DO_WHILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory.\n"

	.no_dead_strip	_create_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_loop
_create_loop:                           ; @create_loop
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x26, x5
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
	mov	w0, #24
	bl	_d3dcompiler_alloc
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.1:
	mov	x0, x21
	bl	_list_init
	cbz	x22, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	bl	_list_move_head
LBB0_3:
	mov	w0, #24
	bl	_d3dcompiler_alloc
	cbz	x0, LBB0_13
; %bb.4:
	mov	x25, x0
Lloh0:
	adrp	x8, _HLSL_IR_LOOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HLSL_IR_LOOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x1, x0, #8
	str	w8, [x0, #16]
	ldr	w8, [x26]
	str	w8, [x0, #12]
	mov	x0, x21
	bl	_list_add_tail
	mov	w0, #24
	bl	_d3dcompiler_alloc
	str	x0, [x25]
	cbz	x0, LBB0_14
; %bb.5:
	bl	_list_init
	mov	x0, x20
	bl	_loop_condition
	cbz	x0, LBB0_14
; %bb.6:
	mov	x26, x0
Lloh3:
	adrp	x27, _LOOP_DO_WHILE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _LOOP_DO_WHILE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w24
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x25]
	add	x1, x26, #8
	bl	_list_add_tail
LBB0_8:
	ldr	x0, [x25]
	mov	x1, x19
	bl	_list_move_tail
	cbz	x23, LBB0_10
; %bb.9:
	ldr	x0, [x25]
	mov	x1, x23
	bl	_list_add_tail
LBB0_10:
	ldr	w8, [x27]
	cmp	w8, w24
	b.ne	LBB0_12
; %bb.11:
	ldr	x0, [x25]
	add	x1, x26, #8
	bl	_list_add_tail
LBB0_12:
	mov	x0, x22
	bl	_d3dcompiler_free
	mov	x0, x20
	bl	_d3dcompiler_free
	mov	x0, x19
	bl	_d3dcompiler_free
	b	LBB0_16
LBB0_13:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	mov	x25, #0
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	ldr	x0, [x25]
	bl	_d3dcompiler_free
LBB0_15:
	mov	x0, x25
	bl	_d3dcompiler_free
	mov	x0, #0
	bl	_d3dcompiler_free
	mov	x0, x21
	bl	_d3dcompiler_free
	mov	x0, x22
	bl	_free_instr_list
	mov	x0, x20
	bl	_free_instr_list
	mov	x0, x23
	bl	_free_instr
	mov	x0, x19
	bl	_free_instr_list
	mov	x21, #0
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HLSL_IR_LOOP,4,2               ; @HLSL_IR_LOOP
	.comm	_LOOP_DO_WHILE,4,2              ; @LOOP_DO_WHILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory.\n"

	.no_dead_strip	_create_loop
.subsections_via_symbols
