	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_registers
_get_registers:                         ## @get_registers
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ACPI_HANDLE
	movl	%eax, %r15d
	movq	_METHOD_NAME__CRS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_acpi_has_method
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -40(%rbp)
	movq	%r14, -48(%rbp)
	movl	$0, -56(%rbp)
	movl	(%r12), %esi
	movq	_get_registers_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movl	%r15d, %edi
	callq	_acpi_walk_resources
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	-56(%rbp), %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METHOD_NAME__CRS,4,2           ## @METHOD_NAME__CRS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_get_registers_cb,4,2           ## @get_registers_cb
	.no_dead_strip	_get_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_registers
_get_registers:                         ; @get_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	bl	_ACPI_HANDLE
	mov	x19, x0
Lloh0:
	adrp	x22, _METHOD_NAME__CRS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _METHOD_NAME__CRS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_acpi_has_method
	cbz	w0, LBB0_2
; %bb.1:
	stp	x20, x21, [sp, #16]
	str	wzr, [sp, #8]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _get_registers_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _get_registers_cb@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_acpi_walk_resources
	bl	_ACPI_FAILURE
	ldr	w8, [sp, #8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_METHOD_NAME__CRS,4,2           ; @METHOD_NAME__CRS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_get_registers_cb,4,2           ; @get_registers_cb
	.no_dead_strip	_get_registers
.subsections_via_symbols
