	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memory_get_cur_bandwidth
_memory_get_cur_bandwidth:              ## @memory_get_cur_bandwidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	$1, -40(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	_MEMORY_ARG_CUR_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_MEMORY_GET_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_MEMORY_ARG_CUR_BANDWIDTH,4,2   ## @MEMORY_ARG_CUR_BANDWIDTH
	.comm	_MEMORY_GET_BANDWIDTH,4,2       ## @MEMORY_GET_BANDWIDTH
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_memory_get_cur_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memory_get_cur_bandwidth
_memory_get_cur_bandwidth:              ; @memory_get_cur_bandwidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x8, sp
Lloh0:
	adrp	x9, _MEMORY_ARG_CUR_BANDWIDTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEMORY_ARG_CUR_BANDWIDTH@GOTPAGEOFF]
	str	x8, [sp, #16]
Lloh2:
	ldr	w8, [x9]
	str	w8, [sp]
Lloh3:
	adrp	x8, _MEMORY_GET_BANDWIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMORY_GET_BANDWIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	add	x3, sp, #24
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp, #24]
	str	x8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_MEMORY_ARG_CUR_BANDWIDTH,4,2   ; @MEMORY_ARG_CUR_BANDWIDTH
	.comm	_MEMORY_GET_BANDWIDTH,4,2       ; @MEMORY_GET_BANDWIDTH
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_memory_get_cur_bandwidth
.subsections_via_symbols
