	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_dword
_put_dword:                             ## @put_dword
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	(%rbx), %esi
	movl	4(%rbx), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_2
## %bb.3:
	leal	(%rsi,%rsi), %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	shll	$3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_d3dcompiler_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %ecx
	jmp	LBB0_5
LBB0_2:
	movq	8(%rbx), %rax
LBB0_5:
	leal	1(%rcx), %edx
	movl	%edx, 4(%rbx)
	movslq	%ecx, %rcx
	movl	%r14d, (%rax,%rcx,4)
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to grow the buffer data memory\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_put_dword
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_dword
_put_dword:                             ; @put_dword
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.1:
	ldp	w9, w8, [x19]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.2:
	lsl	w8, w9, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
	lsl	w1, w9, #3
	bl	_d3dcompiler_realloc
	cbz	x0, LBB0_6
; %bb.3:
	str	x0, [x19, #8]
	ldr	w8, [x19, #4]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
LBB0_5:
	add	w9, w8, #1
	str	w9, [x19, #4]
	str	w20, [x0, w8, sxtw #2]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh2:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to grow the buffer data memory\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_put_dword
.subsections_via_symbols
