	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_ppod_edram
_setup_ppod_edram:                      ## @setup_ppod_edram
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_FW_PARAMS_MNEM_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_MNEM_V
	movl	%eax, %ebx
	movq	_FW_PARAMS_PARAM_DEV_PPOD_EDRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_PARAM_X_V
	orl	%ebx, %eax
	movl	%eax, -28(%rbp)
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	leaq	-32(%rbp), %rbx
	movq	%rbx, (%rsp)
	leaq	-28(%rbp), %r9
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_t4_query_params
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$-1, %r14d
	cmpl	$1, -32(%rbp)
	jne	LBB0_6
## %bb.3:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	%rbx, (%rsp)
	xorl	%r14d, %r14d
	leaq	-28(%rbp), %r9
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_t4_set_params
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_5:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PARAMS_MNEM_DEV,4,2         ## @FW_PARAMS_MNEM_DEV
	.comm	_FW_PARAMS_PARAM_DEV_PPOD_EDRAM,4,2 ## @FW_PARAMS_PARAM_DEV_PPOD_EDRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"querying PPOD_EDRAM support failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"setting PPOD_EDRAM failed: %d\n"

	.no_dead_strip	_setup_ppod_edram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_ppod_edram
_setup_ppod_edram:                      ; @setup_ppod_edram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _FW_PARAMS_MNEM_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PARAMS_MNEM_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FW_PARAMS_MNEM_V
	mov	x20, x0
Lloh3:
	adrp	x8, _FW_PARAMS_PARAM_DEV_PPOD_EDRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_PARAMS_PARAM_DEV_PPOD_EDRAM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FW_PARAMS_PARAM_X_V
	orr	w8, w0, w20
	str	w8, [sp, #12]
	ldp	w2, w1, [x19, #4]
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1
	bl	_t4_query_params
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldp	w2, w1, [x19, #4]
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1
	bl	_t4_set_params
	mov	x2, x0
	mov	w0, #0
	tbz	w2, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	mov	x2, x0
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PARAMS_MNEM_DEV,4,2         ; @FW_PARAMS_MNEM_DEV
	.comm	_FW_PARAMS_PARAM_DEV_PPOD_EDRAM,4,2 ; @FW_PARAMS_PARAM_DEV_PPOD_EDRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"querying PPOD_EDRAM support failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"setting PPOD_EDRAM failed: %d\n"

	.no_dead_strip	_setup_ppod_edram
.subsections_via_symbols
