	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmi_set_block                  ## -- Begin function wmi_set_block
	.p2align	4, 0x90
_wmi_set_block:                         ## @wmi_set_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -64(%rbp)
	movb	$0, -52(%rbp)
	movl	$21335, -56(%rbp)               ## imm = 0x5357
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	leaq	-64(%rbp), %rsi
	callq	_find_guid
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-64(%rbp), %rax
	cmpq	%r14, 8(%rax)
	jle	LBB0_6
## %bb.7:
	movq	_ACPI_WMI_EVENT@GOTPCREL(%rip), %rcx
	movq	_ACPI_WMI_METHOD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 16(%rax)
	je	LBB0_8
LBB0_4:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_2:
	movq	_AE_BAD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	movq	(%rax), %rcx
	movl	(%rcx), %r15d
	movl	$2, -80(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movq	%r14, -48(%rbp)
	movl	4(%rbx), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%rbx), %ecx
	movl	%ecx, -40(%rbp)
	movl	20(%rax), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncat
	leaq	-80(%rbp), %rdx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_acpi_evaluate_object
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.wmi_set_block.method:         ## @__const.wmi_set_block.method
	.asciz	"WS\000\000"

	.comm	_AE_BAD_DATA,4,2                ## @AE_BAD_DATA
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.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_STRING,4,2            ## @ACPI_WMI_STRING
	.comm	_ACPI_TYPE_STRING,4,2           ## @ACPI_TYPE_STRING
	.comm	_ACPI_TYPE_BUFFER,4,2           ## @ACPI_TYPE_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmi_set_block                  ; -- Begin function wmi_set_block
	.p2align	2
_wmi_set_block:                         ; @wmi_set_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #32]
	strb	wzr, [sp, #12]
	mov	w8, #21335
	str	w8, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x20, x1
	add	x1, sp, #32
	bl	_find_guid
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [sp, #32]
	ldr	x9, [x8, #8]
	cmp	x9, x20
	b.le	LBB0_7
; %bb.4:
	ldr	w9, [x8, #16]
Lloh3:
	adrp	x10, _ACPI_WMI_EVENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ACPI_WMI_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ACPI_WMI_METHOD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ACPI_WMI_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _AE_BAD_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_BAD_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	ldr	x9, [x8]
	ldr	w21, [x9]
	mov	w9, #2
	str	w9, [sp, #16]
	add	x9, sp, #40
	str	x9, [sp, #24]
	str	x20, [sp, #40]
	ldr	d0, [x19]
	str	d0, [sp, #48]
	ldr	w1, [x8, #20]
	add	x0, sp, #8
	mov	w2, #2
	bl	_strncat
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x21
	mov	x3, #0
	bl	_acpi_evaluate_object
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.wmi_set_block.method:         ; @__const.wmi_set_block.method
	.asciz	"WS\000\000"

	.comm	_AE_BAD_DATA,4,2                ; @AE_BAD_DATA
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.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_STRING,4,2            ; @ACPI_WMI_STRING
	.comm	_ACPI_TYPE_STRING,4,2           ; @ACPI_TYPE_STRING
	.comm	_ACPI_TYPE_BUFFER,4,2           ; @ACPI_TYPE_BUFFER
.subsections_via_symbols
