	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_initialize_buffer      ## -- Begin function acpi_ut_initialize_buffer
	.p2align	4, 0x90
_acpi_ut_initialize_buffer:             ## @acpi_ut_initialize_buffer
	.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
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	je	LBB0_12
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movl	%r14d, (%rdi)
	movq	_AE_BUFFER_OVERFLOW@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	je	LBB0_12
## %bb.3:
	cmpl	$129, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$130, %ecx
	jne	LBB0_9
## %bb.5:
	movl	%r14d, %edi
	callq	_acpi_os_allocate
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, %edi
	callq	_ACPI_ALLOCATE
LBB0_7:
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_ACPI_MEMSET
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	cmpl	%r14d, %ecx
	jl	LBB0_12
## %bb.10:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_8
LBB0_11:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_BUFFER_OVERFLOW,4,2         ## @AE_BUFFER_OVERFLOW
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_initialize_buffer      ; -- Begin function acpi_ut_initialize_buffer
	.p2align	2
_acpi_ut_initialize_buffer:             ; @acpi_ut_initialize_buffer
	.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
Lloh0:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x1
	cbz	w1, LBB0_11
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0]
	str	w19, [x0]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_acpi_os_allocate
	str	w0, [x20, #4]
	cbnz	w0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_ACPI_ALLOCATE
	str	w0, [x20, #4]
	cbz	w0, LBB0_6
LBB0_8:
	mov	w1, #0
	mov	x2, x19
	bl	_ACPI_MEMSET
Lloh4:
	adrp	x8, _AE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	cmp	w8, w19
	b.ge	LBB0_12
LBB0_10:
Lloh6:
	adrp	x8, _AE_BUFFER_OVERFLOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_BUFFER_OVERFLOW@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w0, [x20, #4]
	cbnz	w0, LBB0_8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_BUFFER_OVERFLOW,4,2         ; @AE_BUFFER_OVERFLOW
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
