	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_setup_od8_information
_vega20_setup_od8_information:          ## @vega20_setup_od8_information
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$1, (%rbx)
	jne	LBB0_17
## %bb.3:
	movq	(%rdi), %r12
	movl	20(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %rcx
	movq	_ATOM_VEGA20_ODFEATURE_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_5
## %bb.4:
	movl	20(%rbx), %edi
	callq	_le32_to_cpu
LBB0_5:
	cmpq	$0, 8(%r12)
	je	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	shll	$2, %eax
	leaq	16(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%eax, %esi
	callq	_kmemdup
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movq	_ATOM_VEGA20_ODSETTING_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	%r15, %rax
	jg	LBB0_9
## %bb.8:
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r15
LBB0_9:
	cmpq	$0, (%r12)
	jne	LBB0_1
## %bb.10:
	shll	$2, %r15d
	leaq	8(%rbx), %rdi
	movl	(%r13), %edx
	movl	%r15d, %esi
	callq	_kmemdup
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	cmpq	$0, 16(%r12)
	jne	LBB0_1
## %bb.13:
	addq	$4, %rbx
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_kmemdup
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	$0, 8(%r12)
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, (%r12)
	jmp	LBB0_15
LBB0_11:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	$0, 8(%r12)
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATOM_VEGA20_ODFEATURE_COUNT,8,3 ## @ATOM_VEGA20_ODFEATURE_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATOM_VEGA20_ODSETTING_COUNT,8,3 ## @ATOM_VEGA20_ODSETTING_COUNT
	.no_dead_strip	_vega20_setup_od8_information
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_setup_od8_information
_vega20_setup_od8_information:          ; @vega20_setup_od8_information
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.2:
	ldr	x20, [x0]
	ldr	w0, [x21, #20]
	bl	_le32_to_cpu
	mov	x8, x0
Lloh0:
	adrp	x9, _ATOM_VEGA20_ODFEATURE_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATOM_VEGA20_ODFEATURE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cmp	x8, x0
	b.gt	LBB0_4
; %bb.3:
	ldr	w0, [x21, #20]
	bl	_le32_to_cpu
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_7:
	lsl	w1, w0, #2
	add	x0, x21, #16
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_kmemdup
	str	x0, [x20, #8]
	cbz	x0, LBB0_17
; %bb.8:
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	mov	x8, x0
Lloh7:
	adrp	x9, _ATOM_VEGA20_ODSETTING_COUNT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ATOM_VEGA20_ODSETTING_COUNT@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x9]
	cmp	x8, x0
	b.gt	LBB0_10
; %bb.9:
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
LBB0_10:
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.11:
	lsl	w19, w0, #2
	add	x0, x21, #8
	ldr	w2, [x22]
	mov	x1, x19
	bl	_kmemdup
	str	x0, [x20]
	cbz	x0, LBB0_16
; %bb.12:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
; %bb.13:
	add	x0, x21, #4
	ldr	w2, [x22]
	mov	x1, x19
	bl	_kmemdup
	str	x0, [x20, #16]
	cbz	x0, LBB0_18
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x0, [x20, #8]
	bl	_kfree
	str	xzr, [x20, #8]
LBB0_17:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_18:
	ldr	x0, [x20, #8]
	bl	_kfree
	str	xzr, [x20, #8]
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATOM_VEGA20_ODFEATURE_COUNT,8,3 ; @ATOM_VEGA20_ODFEATURE_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATOM_VEGA20_ODSETTING_COUNT,8,3 ; @ATOM_VEGA20_ODSETTING_COUNT
	.no_dead_strip	_vega20_setup_od8_information
.subsections_via_symbols
