	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_struct_type
_new_struct_type:                       ## @new_struct_type
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$40, %edi
	callq	_d3dcompiler_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_HLSL_CLASS_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	%r12, (%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rbx)
	movl	%r15d, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	_hlsl_ctx@GOTPCREL(%rip), %rdi
	callq	_list_add_tail
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory.\n"

	.comm	_HLSL_CLASS_STRUCT,4,2          ## @HLSL_CLASS_STRUCT
	.comm	_hlsl_ctx,4,2                   ## @hlsl_ctx
	.no_dead_strip	_new_struct_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_struct_type
_new_struct_type:                       ; @new_struct_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #40
	bl	_d3dcompiler_alloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HLSL_CLASS_STRUCT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HLSL_CLASS_STRUCT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	x22, [x19]
	movi.2s	v0, #1
	str	d0, [x19, #8]
	stp	w21, w8, [x19, #32]
	str	x20, [x19, #24]
	add	x1, x19, #16
Lloh3:
	adrp	x0, _hlsl_ctx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _hlsl_ctx@GOTPAGEOFF]
	bl	_list_add_tail
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory.\n"

	.comm	_HLSL_CLASS_STRUCT,4,2          ; @HLSL_CLASS_STRUCT
	.comm	_hlsl_ctx,4,2                   ; @hlsl_ctx
	.no_dead_strip	_new_struct_type
.subsections_via_symbols
