	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg_wmbb
_lg_wmbb:                               ## @lg_wmbb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$240, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movl	$0, -208(%rbp)
	movl	%edi, -192(%rbp)
	movl	%esi, -176(%rbp)
	movl	%edx, -128(%rbp)
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -64(%rbp)
	movq	%rax, -48(%rbp)
	movl	$1, -48(%rbp)
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$32, -32(%rbp)
	leaq	-192(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	_WMBB_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-196(%rbp), %rdx
	xorl	%edi, %edi
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$3, -240(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -232(%rbp)
	movl	-196(%rbp), %edi
	leaq	-240(%rbp), %rdx
	leaq	-224(%rbp), %rcx
	xorl	%esi, %esi
	callq	_acpi_evaluate_object
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-196(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_acpi_handle_err
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	-224(%rbp), %rax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$240, %rsp
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.comm	_WMBB_METHOD,8,3                ## @WMBB_METHOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get handle"

L_.str.1:                               ## @.str.1
	.asciz	"WMAB: call failed.\n"

	.no_dead_strip	_lg_wmbb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg_wmbb
_lg_wmbb:                               ; @lg_wmbb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w27, -24
	.cfi_offset w28, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
	str	w0, [sp, #56]
	str	w1, [sp, #72]
Lloh6:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
	str	w2, [sp, #120]
Lloh8:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	x8, [x29, #-56]
	mov	w8, #1
	stur	wzr, [x29, #-72]
	stur	w8, [x29, #-56]
Lloh9:
	adrp	x8, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #32
	add	x10, sp, #56
	stp	x8, x10, [x29, #-40]
	stur	w9, [x29, #-40]
Lloh12:
	adrp	x8, _WMBB_METHOD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WMBB_METHOD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #52
	mov	x0, #0
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, #0
	b	LBB0_5
LBB0_2:
	mov	w8, #3
	str	w8, [sp, #32]
	sub	x8, x29, #72
	str	x8, [sp, #40]
	ldr	w0, [sp, #52]
	add	x2, sp, #32
	add	x3, sp, #8
	mov	x1, #0
	bl	_acpi_evaluate_object
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #52]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_acpi_handle_err
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [sp, #8]
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.comm	_WMBB_METHOD,8,3                ; @WMBB_METHOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get handle"

l_.str.1:                               ; @.str.1
	.asciz	"WMAB: call failed.\n"

	.no_dead_strip	_lg_wmbb
.subsections_via_symbols
