	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_parse_device
_ec_parse_device:                       ## @ec_parse_device
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%edi, %r14d
	movq	$0, -32(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdx)
	movq	_METHOD_NAME__CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ec_parse_io_ports@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	callq	_acpi_walk_resources
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	-32(%rbp), %rax
	movq	%rax, (%r15)
	movq	$0, -32(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movq	-32(%rbp), %rax
	movq	%rax, 8(%r15)
	movl	%r14d, 16(%r15)
	movq	_AE_CTRL_TERMINATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METHOD_NAME__CRS,4,2           ## @METHOD_NAME__CRS
	.comm	_ec_parse_io_ports,4,2          ## @ec_parse_io_ports
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_GPE"

L_.str.1:                               ## @.str.1
	.asciz	"_GLK"

	.comm	_AE_CTRL_TERMINATE,4,2          ## @AE_CTRL_TERMINATE
	.no_dead_strip	_ec_parse_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_parse_device
_ec_parse_device:                       ; @ec_parse_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
	str	xzr, [sp, #8]
	stp	xzr, xzr, [x2, #24]
Lloh0:
	adrp	x8, _METHOD_NAME__CRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METHOD_NAME__CRS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ec_parse_io_ports@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ec_parse_io_ports@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_acpi_walk_resources
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_acpi_evaluate_integer
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	str	xzr, [sp, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_acpi_evaluate_integer
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	str	w20, [x19, #16]
Lloh10:
	adrp	x8, _AE_CTRL_TERMINATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_CTRL_TERMINATE@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_METHOD_NAME__CRS,4,2           ; @METHOD_NAME__CRS
	.comm	_ec_parse_io_ports,4,2          ; @ec_parse_io_ports
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_GPE"

l_.str.1:                               ; @.str.1
	.asciz	"_GLK"

	.comm	_AE_CTRL_TERMINATE,4,2          ; @AE_CTRL_TERMINATE
	.no_dead_strip	_ec_parse_device
.subsections_via_symbols
