	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __query_block
___query_block:                         ## @__query_block
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movb	$0, -60(%rbp)
	movl	$17239, -64(%rbp)               ## imm = 0x4357
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	cmpq	%rsi, 16(%rdi)
	jle	LBB0_1
## %bb.3:
	movq	%rdx, %r14
	movl	24(%r13), %eax
	movq	_ACPI_WMI_EVENT@GOTPCREL(%rip), %rcx
	movq	_ACPI_WMI_METHOD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movl	%r12d, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r13), %rcx
	movl	(%rcx), %r15d
	movl	$1, -80(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movq	%rsi, -56(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_8
## %bb.6:
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.7:
	movl	$0, -80(%rbp)
LBB0_8:
	movq	_ACPI_WMI_EXPENSIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	28(%r13), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncat
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_acpi_execute_simple_method
	movl	%eax, %r12d
LBB0_10:
	leaq	L_.str(%rip), %rsi
	leaq	-85(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strcpy
	movl	28(%r13), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncat
	leaq	-80(%rbp), %rdx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_acpi_evaluate_object
	movl	%eax, %ebx
	movq	_ACPI_WMI_EXPENSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r13)
	je	LBB0_13
## %bb.11:
	movl	%r12d, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_acpi_execute_simple_method
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.section	__TEXT,__const
l___const.__query_block.wc_method:      ## @__const.__query_block.wc_method
	.asciz	"WC\000\000"

	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_WMI_EVENT,4,2             ## @ACPI_WMI_EVENT
	.comm	_ACPI_WMI_METHOD,4,2            ## @ACPI_WMI_METHOD
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_WMI_EXPENSIVE,4,2         ## @ACPI_WMI_EXPENSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WQ"

	.no_dead_strip	___query_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __query_block
___query_block:                         ; @__query_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	strb	wzr, [sp, #8]
	mov	w8, #17239
	str	w8, [sp, #4]
	cbz	x2, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cmp	x8, x1
	b.le	LBB0_4
; %bb.2:
	ldr	w8, [x19, #24]
Lloh6:
	adrp	x9, _ACPI_WMI_EVENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_WMI_EVENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ACPI_WMI_METHOD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ACPI_WMI_METHOD@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	mov	x20, x22
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
LBB0_5:
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	x20, x2
	ldr	x9, [x19, #8]
	ldr	w21, [x9]
	mov	w9, #1
	str	w9, [sp, #16]
	add	x9, sp, #32
	stp	x9, x1, [sp, #24]
	cbnz	x1, LBB0_10
; %bb.8:
	ldr	x9, [x19]
	cbz	x9, LBB0_10
; %bb.9:
	str	wzr, [sp, #16]
LBB0_10:
Lloh18:
	adrp	x23, _ACPI_WMI_EXPENSIVE@GOTPAGE
Lloh19:
	ldr	x23, [x23, _ACPI_WMI_EXPENSIVE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x19, #28]
	add	x0, sp, #4
	mov	w2, #2
	bl	_strncat
	add	x1, sp, #4
	mov	x0, x21
	mov	w2, #1
	bl	_acpi_execute_simple_method
	mov	x22, x0
LBB0_12:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #11
	bl	_strcpy
	ldr	w1, [x19, #28]
	add	x0, sp, #11
	mov	w2, #2
	bl	_strncat
	add	x1, sp, #11
	add	x2, sp, #16
	mov	x0, x21
	mov	x3, x20
	bl	_acpi_evaluate_object
	mov	x20, x0
	ldr	w8, [x19, #24]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.13:
	mov	x0, x22
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_5
; %bb.14:
	add	x1, sp, #4
	mov	x0, x21
	mov	w2, #0
	bl	_acpi_execute_simple_method
	mov	x20, x0
	b	LBB0_5
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.section	__TEXT,__const
l___const.__query_block.wc_method:      ; @__const.__query_block.wc_method
	.asciz	"WC\000\000"

	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_WMI_EVENT,4,2             ; @ACPI_WMI_EVENT
	.comm	_ACPI_WMI_METHOD,4,2            ; @ACPI_WMI_METHOD
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_WMI_EXPENSIVE,4,2         ; @ACPI_WMI_EXPENSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WQ"

	.no_dead_strip	___query_block
.subsections_via_symbols
