	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_write                  ## -- Begin function acpi_hw_write
	.p2align	4, 0x90
_acpi_hw_write:                         ## @acpi_hw_write
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_hw_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_acpi_hw_validate_register
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r15), %rax
	movq	_ACPI_ADR_SPACE_SYSTEM_MEMORY@GOTPCREL(%rip), %rcx
	movl	-32(%rbp), %edi
	movl	8(%r15), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rsi
	callq	_acpi_os_write_memory
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rsi
	callq	_acpi_hw_write_port
LBB0_4:
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_ACPI_FORMAT_UINT64
	movq	(%r15), %rdi
	callq	_acpi_ut_get_region_name
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_write,4,2                   ## @hw_write
	.comm	_ACPI_ADR_SPACE_SYSTEM_MEMORY,8,3 ## @ACPI_ADR_SPACE_SYSTEM_MEMORY
	.comm	_ACPI_DB_IO,4,2                 ## @ACPI_DB_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_write                  ; -- Begin function acpi_hw_write
	.p2align	2
_acpi_hw_write:                         ; @acpi_hw_write
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _hw_write@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_write@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #32
	bl	_acpi_hw_validate_register
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ACPI_ADR_SPACE_SYSTEM_MEMORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_ADR_SPACE_SYSTEM_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [sp, #8]
	ldr	w2, [x19, #8]
	mov	x1, x20
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	bl	_acpi_os_write_memory
	b	LBB0_4
LBB0_3:
	bl	_acpi_hw_write_port
LBB0_4:
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_ACPI_FORMAT_UINT64
	ldr	x0, [x19]
	bl	_acpi_ut_get_region_name
	bl	_ACPI_DEBUG_PRINT
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_write,4,2                   ; @hw_write
	.comm	_ACPI_ADR_SPACE_SYSTEM_MEMORY,8,3 ; @ACPI_ADR_SPACE_SYSTEM_MEMORY
	.comm	_ACPI_DB_IO,4,2                 ; @ACPI_DB_IO
.subsections_via_symbols
