	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_crtc_save                  ## -- Begin function gma_crtc_save
	.p2align	4, 0x90
_gma_crtc_save:                         ## @gma_crtc_save
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	callq	_to_gma_crtc
	movq	8(%rax), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movq	(%r14), %r14
	movq	(%rax), %rax
	movq	%rax, %rcx
	shlq	$7, %rcx
	leaq	(%rcx,%rax,8), %r15
	movq	128(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 128(%r12)
	movq	120(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 120(%r12)
	movq	112(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 112(%r12)
	movq	104(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 104(%r12)
	movq	96(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 96(%r12)
	movq	88(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 88(%r12)
	movq	80(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 80(%r12)
	movq	72(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 72(%r12)
	movq	64(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 64(%r12)
	movq	56(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 56(%r12)
	movq	48(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 48(%r12)
	movq	40(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 40(%r12)
	movq	32(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 32(%r12)
	movq	24(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 24(%r12)
	movq	16(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 16(%r12)
	movq	8(%r14,%r15), %rdi
	callq	_REG_READ
	movq	%rax, 8(%r12)
	movq	(%r14,%r15), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbx), %rdi
	callq	_REG_READ
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,2)
	addq	$4, %rbx
	cmpq	$1024, %rbx                     ## imm = 0x400
	jne	LBB0_2
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No CRTC state found\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_crtc_save                  ; -- Begin function gma_crtc_save
	.p2align	2
_gma_crtc_save:                         ; @gma_crtc_save
	.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]
	ldr	x19, [x21, #8]
	bl	_to_gma_crtc
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x0]
	mov	w10, #136
	madd	x19, x9, x10, x8
	ldr	x0, [x19, #128]
	bl	_REG_READ
	str	x0, [x20, #128]
	ldr	x0, [x19, #120]
	bl	_REG_READ
	str	x0, [x20, #120]
	ldr	x0, [x19, #112]
	bl	_REG_READ
	str	x0, [x20, #112]
	ldr	x0, [x19, #104]
	bl	_REG_READ
	str	x0, [x20, #104]
	ldr	x0, [x19, #96]
	bl	_REG_READ
	str	x0, [x20, #96]
	ldr	x0, [x19, #88]
	bl	_REG_READ
	str	x0, [x20, #88]
	ldr	x0, [x19, #80]
	bl	_REG_READ
	str	x0, [x20, #80]
	ldr	x0, [x19, #72]
	bl	_REG_READ
	str	x0, [x20, #72]
	ldr	x0, [x19, #64]
	bl	_REG_READ
	str	x0, [x20, #64]
	ldr	x0, [x19, #56]
	bl	_REG_READ
	str	x0, [x20, #56]
	ldr	x0, [x19, #48]
	bl	_REG_READ
	str	x0, [x20, #48]
	ldr	x0, [x19, #40]
	bl	_REG_READ
	str	x0, [x20, #40]
	ldr	x0, [x19, #32]
	bl	_REG_READ
	str	x0, [x20, #32]
	ldr	x0, [x19, #24]
	bl	_REG_READ
	str	x0, [x20, #24]
	ldr	x0, [x19, #16]
	bl	_REG_READ
	str	x0, [x20, #16]
	ldr	x0, [x19, #8]
	bl	_REG_READ
	mov	x21, #0
	str	x0, [x20, #8]
	ldr	x19, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_REG_READ
	ldr	x8, [x20]
	str	x0, [x8, x21]
	add	x19, x19, #4
	add	x21, x21, #8
	cmp	x21, #2048
	b.ne	LBB0_2
; %bb.3:
	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_4:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No CRTC state found\n"

.subsections_via_symbols
