	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_asm_shader               ## -- Begin function parse_asm_shader
	.p2align	4, 0x90
_parse_asm_shader:                      ## @parse_asm_shader
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_asm_ctx@GOTPCREL(%rip), %rbx
	movq	$0, 40(%rbx)
	movq	_PARSE_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	callq	_asmshader_parse
	movq	_PARSE_ERR@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	40(%rbx), %r15
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_SlDeleteShader
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movl	16(%rbx), %edi
	incq	%rsi
	callq	_d3dcompiler_realloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	jmp	LBB0_10
LBB0_9:
	cmpq	$0, 24(%rbx)
	je	LBB0_11
LBB0_10:
	movl	16(%rbx), %edi
	callq	_d3dcompiler_free
	jmp	LBB0_11
LBB0_8:
	movq	$0, (%r14)
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_asm_ctx,48,3                   ## @asm_ctx
	.comm	_PARSE_SUCCESS,8,3              ## @PARSE_SUCCESS
	.comm	_PARSE_ERR,8,3                  ## @PARSE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory, no messages reported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_asm_shader               ; -- Begin function parse_asm_shader
	.p2align	2
_parse_asm_shader:                      ; @parse_asm_shader
	.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, x0
Lloh0:
	adrp	x21, _asm_ctx@GOTPAGE
Lloh1:
	ldr	x21, [x21, _asm_ctx@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PARSE_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PARSE_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x21]
	stp	xzr, xzr, [x21, #32]
	str	xzr, [x21, #24]
	mov	w8, #1
	str	w8, [x21, #8]
	bl	_asmshader_parse
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _PARSE_ERR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PARSE_ERR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x19, [x21, #40]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_SlDeleteShader
	mov	x19, #0
LBB0_3:
	cbz	x20, LBB0_7
; %bb.4:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w0, [x21, #16]
	add	x1, x8, #1
	bl	_d3dcompiler_realloc
	str	x0, [x20]
	cbnz	x0, LBB0_10
; %bb.6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	b	LBB0_8
LBB0_7:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_10
LBB0_8:
	ldr	w0, [x21, #16]
	bl	_d3dcompiler_free
	b	LBB0_10
LBB0_9:
	str	xzr, [x20]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_asm_ctx,48,3                   ; @asm_ctx
	.comm	_PARSE_SUCCESS,8,3              ; @PARSE_SUCCESS
	.comm	_PARSE_ERR,8,3                  ; @PARSE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory, no messages reported\n"

.subsections_via_symbols
