	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sor_show_crc
_tegra_sor_show_crc:                    ## @tegra_sor_show_crc
	.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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %r12
	movq	(%r12), %rbx
	movq	(%rcx), %r15
	movq	%r15, %rdi
	callq	_drm_modeset_lock_all
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_SOR_STATE1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_tegra_sor_readl
	movq	_SOR_STATE_ASY_CRC_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_tegra_sor_writel
	movq	_SOR_CRC_CNTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_tegra_sor_readl
	movq	_SOR_CRC_CNTRL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_tegra_sor_writel
	movq	_SOR_TEST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_tegra_sor_readl
	movq	_SOR_TEST_CRC_POST_SERIALIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_tegra_sor_writel
	movq	%r12, %rdi
	movl	$100, %esi
	callq	_tegra_sor_crc_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_SOR_CRCA_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOR_CRCA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tegra_sor_writel
	movq	_SOR_CRCB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_tegra_sor_readl
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_seq_printf
	jmp	LBB0_5
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_drm_modeset_unlock_all
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SOR_STATE1,4,2                 ## @SOR_STATE1
	.comm	_SOR_STATE_ASY_CRC_MODE_MASK,4,2 ## @SOR_STATE_ASY_CRC_MODE_MASK
	.comm	_SOR_CRC_CNTRL,4,2              ## @SOR_CRC_CNTRL
	.comm	_SOR_CRC_CNTRL_ENABLE,4,2       ## @SOR_CRC_CNTRL_ENABLE
	.comm	_SOR_TEST,4,2                   ## @SOR_TEST
	.comm	_SOR_TEST_CRC_POST_SERIALIZE,4,2 ## @SOR_TEST_CRC_POST_SERIALIZE
	.comm	_SOR_CRCA_RESET,4,2             ## @SOR_CRCA_RESET
	.comm	_SOR_CRCA,4,2                   ## @SOR_CRCA
	.comm	_SOR_CRCB,4,2                   ## @SOR_CRCB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08x\n"

	.no_dead_strip	_tegra_sor_show_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_sor_show_crc
_tegra_sor_show_crc:                    ; @tegra_sor_show_crc
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldp	x8, x9, [x8]
	ldr	x21, [x9]
	ldr	x22, [x21]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_drm_modeset_lock_all
	cbz	x22, LBB0_4
; %bb.1:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x22, _SOR_STATE1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOR_STATE1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_tegra_sor_readl
Lloh2:
	adrp	x8, _SOR_STATE_ASY_CRC_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOR_STATE_ASY_CRC_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x22]
	mov	x0, x21
	bl	_tegra_sor_writel
Lloh5:
	adrp	x22, _SOR_CRC_CNTRL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SOR_CRC_CNTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_tegra_sor_readl
Lloh7:
	adrp	x8, _SOR_CRC_CNTRL_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOR_CRC_CNTRL_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x21
	bl	_tegra_sor_writel
Lloh10:
	adrp	x22, _SOR_TEST@GOTPAGE
Lloh11:
	ldr	x22, [x22, _SOR_TEST@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_tegra_sor_readl
Lloh12:
	adrp	x8, _SOR_TEST_CRC_POST_SERIALIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOR_TEST_CRC_POST_SERIALIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x22]
	mov	x0, x21
	bl	_tegra_sor_writel
	mov	x0, x21
	mov	w1, #100
	bl	_tegra_sor_crc_wait
	mov	x22, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh15:
	adrp	x8, _SOR_CRCA_RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOR_CRCA_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SOR_CRCA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOR_CRCA@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_tegra_sor_writel
Lloh21:
	adrp	x8, _SOR_CRCB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOR_CRCB@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_tegra_sor_readl
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_seq_printf
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x19
	bl	_drm_modeset_unlock_all
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SOR_STATE1,4,2                 ; @SOR_STATE1
	.comm	_SOR_STATE_ASY_CRC_MODE_MASK,4,2 ; @SOR_STATE_ASY_CRC_MODE_MASK
	.comm	_SOR_CRC_CNTRL,4,2              ; @SOR_CRC_CNTRL
	.comm	_SOR_CRC_CNTRL_ENABLE,4,2       ; @SOR_CRC_CNTRL_ENABLE
	.comm	_SOR_TEST,4,2                   ; @SOR_TEST
	.comm	_SOR_TEST_CRC_POST_SERIALIZE,4,2 ; @SOR_TEST_CRC_POST_SERIALIZE
	.comm	_SOR_CRCA_RESET,4,2             ; @SOR_CRCA_RESET
	.comm	_SOR_CRCA,4,2                   ; @SOR_CRCA
	.comm	_SOR_CRCB,4,2                   ; @SOR_CRCB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08x\n"

	.no_dead_strip	_tegra_sor_show_crc
.subsections_via_symbols
