	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_load_microcode
_r128_cce_load_microcode:               ## @r128_cce_load_microcode
	.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	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_platform_device_register_simple
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_FIRMWARE_NAME@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_request_firmware
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_platform_device_unregister
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_9
LBB0_3:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	cmpl	$2048, %esi                     ## imm = 0x800
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_r128_do_wait_for_idle
	movq	-48(%rbp), %rax
	movq	8(%rax), %rbx
	movq	_R128_PM4_MICROCODE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_R128_WRITE
	movl	$256, %r12d                     ## imm = 0x100
	movq	_R128_PM4_MICROCODE_DATAH@GOTPCREL(%rip), %r13
	movq	_R128_PM4_MICROCODE_DATAL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r15d
	movq	%rbx, %rdi
	callq	_be32_to_cpup
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_R128_WRITE
	movl	(%r14), %r15d
	leaq	4(%rbx), %rdi
	callq	_be32_to_cpup
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_R128_WRITE
	addq	$8, %rbx
	decq	%r12
	jne	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_4:
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"r128_cce"

L_.str.2:                               ## @.str.2
	.asciz	"r128_cce: Failed to register firmware\n"

	.comm	_FIRMWARE_NAME,4,2              ## @FIRMWARE_NAME
L_.str.3:                               ## @.str.3
	.asciz	"r128_cce: Failed to load firmware \"%s\"\n"

L_.str.4:                               ## @.str.4
	.asciz	"r128_cce: Bogus length %zu in firmware \"%s\"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_R128_PM4_MICROCODE_ADDR,4,2    ## @R128_PM4_MICROCODE_ADDR
	.comm	_R128_PM4_MICROCODE_DATAH,4,2   ## @R128_PM4_MICROCODE_DATAH
	.comm	_R128_PM4_MICROCODE_DATAL,4,2   ## @R128_PM4_MICROCODE_DATAL
	.no_dead_strip	_r128_cce_load_microcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_cce_load_microcode
_r128_cce_load_microcode:               ; @r128_cce_load_microcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_platform_device_register_simple
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_2:
Lloh6:
	adrp	x22, _FIRMWARE_NAME@GOTPAGE
Lloh7:
	ldr	x22, [x22, _FIRMWARE_NAME@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x0, sp, #24
	mov	x2, x21
	bl	_request_firmware
	mov	x20, x0
	mov	x0, x21
	bl	_platform_device_unregister
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_4:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	cmp	w8, #2048
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_r128_do_wait_for_idle
	ldr	x8, [sp, #24]
	ldr	x21, [x8, #8]
Lloh10:
	adrp	x8, _R128_PM4_MICROCODE_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R128_PM4_MICROCODE_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_R128_WRITE
	mov	x22, #0
Lloh13:
	adrp	x23, _R128_PM4_MICROCODE_DATAH@GOTPAGE
Lloh14:
	ldr	x23, [x23, _R128_PM4_MICROCODE_DATAH@GOTPAGEOFF]
Lloh15:
	adrp	x24, _R128_PM4_MICROCODE_DATAL@GOTPAGE
Lloh16:
	ldr	x24, [x24, _R128_PM4_MICROCODE_DATAL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w19, [x23]
	add	x20, x21, x22
	mov	x0, x20
	bl	_be32_to_cpup
	mov	x1, x0
	mov	x0, x19
	bl	_R128_WRITE
	ldr	w19, [x24]
	add	x0, x20, #4
	bl	_be32_to_cpup
	mov	x1, x0
	mov	x0, x19
	bl	_R128_WRITE
	add	x22, x22, #8
	cmp	x22, #2048
	b.ne	LBB0_6
; %bb.7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	ldr	w9, [x22]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	ldr	x0, [sp, #24]
	bl	_release_firmware
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"r128_cce"

l_.str.2:                               ; @.str.2
	.asciz	"r128_cce: Failed to register firmware\n"

	.comm	_FIRMWARE_NAME,4,2              ; @FIRMWARE_NAME
l_.str.3:                               ; @.str.3
	.asciz	"r128_cce: Failed to load firmware \"%s\"\n"

l_.str.4:                               ; @.str.4
	.asciz	"r128_cce: Bogus length %zu in firmware \"%s\"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_R128_PM4_MICROCODE_ADDR,4,2    ; @R128_PM4_MICROCODE_ADDR
	.comm	_R128_PM4_MICROCODE_DATAH,4,2   ; @R128_PM4_MICROCODE_DATAH
	.comm	_R128_PM4_MICROCODE_DATAL,4,2   ; @R128_PM4_MICROCODE_DATAL
	.no_dead_strip	_r128_cce_load_microcode
.subsections_via_symbols
