	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dxbc_add_section               ## -- Begin function dxbc_add_section
	.p2align	4, 0x90
_dxbc_add_section:                      ## @dxbc_add_section
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	%esi, -36(%rbp)
	leaq	-36(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_TRACE
	movq	(%rbx), %rcx
	movq	8(%rbx), %r12
	cmpq	%r12, %rcx
	jae	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%rbx), %rdx
	movl	%r12d, %ecx
	shll	$5, %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapReAlloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	addl	%r12d, %r12d
	movslq	%r12d, %rcx
	movq	%rax, 16(%rbx)
	movq	%rcx, 8(%rbx)
	movq	(%rbx), %rcx
LBB0_4:
	movl	-36(%rbp), %edx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movl	%edx, (%rax,%rsi)
	movl	%r15d, 4(%rax,%rsi)
	movq	%r14, 8(%rax,%rsi)
	incq	%rcx
	movq	%rcx, (%rbx)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dxbc %p, tag %s, size %#x.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate dxbc section memory\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dxbc_add_section               ; -- Begin function dxbc_add_section
	.p2align	2
_dxbc_add_section:                      ; @dxbc_add_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	str	w1, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	bl	_debugstr_an
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x3, x21
	bl	_TRACE
	ldp	x8, x22, [x19]
	cmp	x8, x22
	b.hs	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	b	LBB0_4
LBB0_2:
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	lsl	w3, w22, #5
	mov	w1, #0
	bl	_HeapReAlloc
	cbz	x0, LBB0_5
; %bb.3:
	lsl	w8, w22, #1
	sxtw	x8, w8
	stp	x8, x0, [x19, #8]
	ldr	x8, [x19]
LBB0_4:
	ldr	w9, [sp, #12]
	add	x10, x0, x8, lsl #4
	stp	w9, w21, [x10]
	str	x20, [x10, #8]
	add	x8, x8, #1
	str	x8, [x19]
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
Lloh6:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dxbc %p, tag %s, size %#x.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate dxbc section memory\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
