	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_validate_buffer        ## -- Begin function acpi_ut_validate_buffer
	.p2align	4, 0x90
_acpi_ut_validate_buffer:               ## @acpi_ut_validate_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rcx
	movq	_ACPI_NO_BUFFER@GOTPCREL(%rip), %rdx
	movq	_AE_OK@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.2:
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.3:
	movq	_ACPI_ALLOCATE_LOCAL_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.4:
	cmpl	$0, 8(%rdi)
	jne	LBB0_5
LBB0_6:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_NO_BUFFER,8,3             ## @ACPI_NO_BUFFER
	.comm	_ACPI_ALLOCATE_BUFFER,8,3       ## @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_ALLOCATE_LOCAL_BUFFER,8,3 ## @ACPI_ALLOCATE_LOCAL_BUFFER
	.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_validate_buffer        ; -- Begin function acpi_ut_validate_buffer
	.p2align	2
_acpi_ut_validate_buffer:               ; @acpi_ut_validate_buffer
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x10, [x0]
Lloh2:
	adrp	x9, _ACPI_NO_BUFFER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACPI_NO_BUFFER@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x9]
Lloh5:
	adrp	x9, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x9]
Lloh8:
	adrp	x9, _ACPI_ALLOCATE_LOCAL_BUFFER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_ALLOCATE_LOCAL_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	x13, [x9]
Lloh11:
	adrp	x9, _AE_OK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AE_OK@GOTPAGEOFF]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	ccmp	x10, x13, #4, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	w10, [x0, #8]
	cmp	w10, #0
	csel	x9, x8, x9, eq
LBB0_3:
	ldr	w0, [x9]
	ret
LBB0_4:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_NO_BUFFER,8,3             ; @ACPI_NO_BUFFER
	.comm	_ACPI_ALLOCATE_BUFFER,8,3       ; @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_ALLOCATE_LOCAL_BUFFER,8,3 ; @ACPI_ALLOCATE_LOCAL_BUFFER
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
