	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memory_set_cur_bandwidth
_memory_set_cur_bandwidth:              ## @memory_set_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	leaq	-24(%rbp), %rsi
	callq	_memory_get_max_bandwidth
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	cmpq	%rbx, -24(%rbp)
	jae	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	$1, -48(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	%rbx, -32(%rbp)
	movq	_MEMORY_SET_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	callq	_acpi_evaluate_integer
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pr_info
	movl	%r14d, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_MEMORY_SET_BANDWIDTH,4,2       ## @MEMORY_SET_BANDWIDTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bandwidth value was %ld: status is %d\n"

	.no_dead_strip	_memory_set_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_set_cur_bandwidth
_memory_set_cur_bandwidth:              ; @memory_set_cur_bandwidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w20, [x8]
	add	x1, sp, #8
	bl	_memory_get_max_bandwidth
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.hs	LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #32]
	add	x8, sp, #24
	str	x8, [sp, #40]
	str	x19, [sp, #24]
Lloh4:
	adrp	x8, _MEMORY_SET_BANDWIDTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MEMORY_SET_BANDWIDTH@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #32
	add	x3, sp, #16
	mov	x0, x20
	bl	_acpi_evaluate_integer
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_pr_info
	mov	x0, x20
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_MEMORY_SET_BANDWIDTH,4,2       ; @MEMORY_SET_BANDWIDTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bandwidth value was %ld: status is %d\n"

	.no_dead_strip	_memory_set_cur_bandwidth
.subsections_via_symbols
