	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ggov
_ggov:                                  ## @ggov
	.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	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -32(%rbp)
	movl	%edi, -32(%rbp)
	movq	_SB_GGOV_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-36(%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
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	$1, -80(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	-36(%rbp), %edi
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%esi, %esi
	callq	_acpi_evaluate_object
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-36(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_acpi_handle_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	-64(%rbp), %rdi
	movq	(%rdi), %rbx
	cmpq	(%r14), %rbx
	jne	LBB0_6
## %bb.5:
	callq	_kfree
	jmp	LBB0_8
LBB0_6:
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	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	_SB_GGOV_METHOD,8,3             ## @SB_GGOV_METHOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get handle"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"GGOV: call failed.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ggov
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ggov
_ggov:                                  ; @ggov
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -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]
	str	wzr, [sp, #16]
Lloh6:
	adrp	x20, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
	ldr	x8, [x20]
	stur	x8, [x29, #-32]
	stur	w0, [x29, #-32]
Lloh8:
	adrp	x8, _SB_GGOV_METHOD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SB_GGOV_METHOD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x2, x29, #36
	mov	x0, #0
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #24]
	sub	x8, x29, #32
	str	x8, [sp, #32]
	ldur	w0, [x29, #-36]
	add	x2, sp, #24
	mov	x3, sp
	mov	x1, #0
	bl	_acpi_evaluate_object
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	ldur	w0, [x29, #-36]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_acpi_handle_err
	b	LBB0_7
LBB0_4:
	ldr	x0, [sp]
	ldr	x19, [x0]
	ldr	x8, [x20]
	cmp	x19, x8
	b.ne	LBB0_6
; %bb.5:
	bl	_kfree
	b	LBB0_9
LBB0_6:
	bl	_kfree
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	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_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	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	_SB_GGOV_METHOD,8,3             ; @SB_GGOV_METHOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get handle"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"GGOV: call failed.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ggov
.subsections_via_symbols
