	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_validate_register      ## -- Begin function acpi_hw_validate_register
	.p2align	4, 0x90
_acpi_hw_validate_register:             ## @acpi_hw_validate_register
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	24(%rdi), %rsi
	movq	%rdx, %rdi
	callq	_ACPI_MOVE_64_TO_64
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rdi
	movq	_ACPI_ADR_SPACE_SYSTEM_MEMORY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_7
## %bb.5:
	movq	_ACPI_ADR_SPACE_SYSTEM_IO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_7
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_SUPPORT@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_3:
	movq	_AE_BAD_ADDRESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_7:
	movl	8(%r15), %edi
	cmpq	$32, %rdi
	ja	LBB0_9
## %bb.8:
	movabsq	$4295033088, %rax               ## imm = 0x100010100
	btq	%rdi, %rax
	jae	LBB0_9
LBB0_10:
	movq	16(%r15), %rdi
	movq	_AE_OK@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_WARNING
LBB0_12:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	%r14d, %edi
	jne	LBB0_6
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_BAD_ADDRESS,4,2             ## @AE_BAD_ADDRESS
	.comm	_ACPI_ADR_SPACE_SYSTEM_MEMORY,8,3 ## @ACPI_ADR_SPACE_SYSTEM_MEMORY
	.comm	_ACPI_ADR_SPACE_SYSTEM_IO,8,3   ## @ACPI_ADR_SPACE_SYSTEM_IO
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AE_SUPPORT,4,2                 ## @AE_SUPPORT
	.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_hw_validate_register      ; -- Begin function acpi_hw_validate_register
	.p2align	2
_acpi_hw_validate_register:             ; @acpi_hw_validate_register
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x1, x0, #24
	mov	x0, x2
	bl	_ACPI_MOVE_64_TO_64
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _ACPI_ADR_SPACE_SYSTEM_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ADR_SPACE_SYSTEM_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ACPI_ADR_SPACE_SYSTEM_IO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_ADR_SPACE_SYSTEM_IO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_11
; %bb.3:
	ldr	w0, [x19, #8]
	cmp	w0, #32
	b.hi	LBB0_10
; %bb.4:
	mov	w8, #1
	lsl	x8, x8, x0
	mov	x9, #256
	movk	x9, #1, lsl #16
	movk	x9, #1, lsl #32
	tst	x8, x9
	b.eq	LBB0_10
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_WARNING
LBB0_7:
Lloh6:
	adrp	x8, _AE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh8:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh10:
	adrp	x8, _AE_BAD_ADDRESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_BAD_ADDRESS@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	cmp	w0, w20
	b.eq	LBB0_5
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh12:
	adrp	x8, _AE_SUPPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_SUPPORT@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_BAD_ADDRESS,4,2             ; @AE_BAD_ADDRESS
	.comm	_ACPI_ADR_SPACE_SYSTEM_MEMORY,8,3 ; @ACPI_ADR_SPACE_SYSTEM_MEMORY
	.comm	_ACPI_ADR_SPACE_SYSTEM_IO,8,3   ; @ACPI_ADR_SPACE_SYSTEM_IO
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_SUPPORT,4,2                 ; @AE_SUPPORT
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
