	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ec_register_query_methods
_acpi_ec_register_query_methods:        ## @acpi_ec_register_query_methods
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%edi, %ebx
	movl	$5, -48(%rbp)
	leaq	-25(%rbp), %rax
	movq	%rax, -40(%rbp)
	movl	$0, -20(%rbp)
	movq	_ACPI_SINGLE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_acpi_get_name
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-25(%rbp), %rdi
	leaq	-20(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_acpi_ec_add_query_handler
LBB0_3:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SINGLE_NAME,4,2           ## @ACPI_SINGLE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_Q%x"

	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_ec_register_query_methods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ec_register_query_methods
_acpi_ec_register_query_methods:        ; @acpi_ec_register_query_methods
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x2
	mov	x19, x0
	mov	w8, #5
	stp	wzr, w8, [sp, #4]
	sub	x8, x29, #21
	str	x8, [sp, #16]
Lloh0:
	adrp	x8, _ACPI_SINGLE_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_SINGLE_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_acpi_get_name
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #21
	add	x2, sp, #4
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [sp, #4]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_acpi_ec_add_query_handler
LBB0_3:
Lloh5:
	adrp	x8, _AE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SINGLE_NAME,4,2           ; @ACPI_SINGLE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_Q%x"

	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_ec_register_query_methods
.subsections_via_symbols
