	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ec_read
_acpi_ec_read:                          ## @acpi_ec_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, -16(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -48(%rbp)
	leaq	-12(%rbp), %rax
	movq	%rax, -40(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	_ACPI_EC_COMMAND_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_acpi_ec_transaction
	movl	-12(%rbp), %ecx
	movl	%ecx, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_EC_COMMAND_READ,4,2       ## @ACPI_EC_COMMAND_READ
	.no_dead_strip	_acpi_ec_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ec_read
_acpi_ec_read:                          ; @acpi_ec_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	stur	w1, [x29, #-20]
	movi.2s	v0, #1
	str	d0, [sp, #8]
	sub	x8, x29, #24
	sub	x9, x29, #20
	stp	x8, x9, [sp, #16]
Lloh0:
	adrp	x8, _ACPI_EC_COMMAND_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_EC_COMMAND_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x1, sp, #8
	bl	_acpi_ec_transaction
	ldur	w8, [x29, #-24]
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_EC_COMMAND_READ,4,2       ; @ACPI_EC_COMMAND_READ
	.no_dead_strip	_acpi_ec_read
.subsections_via_symbols
