	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_crtc_set_crc_source
_rcar_du_crtc_set_crc_source:           ## @rcar_du_crtc_set_crc_source
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_to_rcar_crtc
	leaq	-52(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_rcar_du_crtc_parse_crc_source
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_acquire_init
	movl	(%r12), %edi
	callq	_drm_atomic_state_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movq	%r15, (%rax)
	movq	_EDEADLK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_drm_atomic_get_crtc_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_PTR_ERR
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_to_rcar_crtc_state
	movl	-52(%rbp), %ecx
	movl	%ecx, (%rax)
	movl	%r14d, 4(%rax)
	movq	%r13, %rdi
	callq	_drm_atomic_commit
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movl	(%r15), %eax
	addl	%ebx, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_drm_atomic_state_clear
	leaq	-48(%rbp), %rdi
	callq	_drm_modeset_backoff
	jmp	LBB0_4
LBB0_9:
	movq	%r13, %rdi
	callq	_drm_atomic_state_put
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_drm_modeset_drop_locks
	movq	%r14, %rdi
	callq	_drm_modeset_acquire_fini
	movl	%ebx, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.no_dead_strip	_rcar_du_crtc_set_crc_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_crtc_set_crc_source
_rcar_du_crtc_set_crc_source:           ; @rcar_du_crtc_set_crc_source
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	bl	_to_rcar_crtc
	add	x2, sp, #4
	mov	x1, x20
	bl	_rcar_du_crtc_parse_crc_source
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.1:
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	bl	_drm_modeset_acquire_init
	ldr	w0, [x19]
	bl	_drm_atomic_state_alloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	str	x22, [x0]
Lloh0:
	adrp	x23, _EDEADLK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EDEADLK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_drm_atomic_get_crtc_state
	mov	x22, x0
	bl	_IS_ERR
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_PTR_ERR
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_to_rcar_crtc_state
	ldr	w8, [sp, #4]
	stp	w8, w20, [x0]
	mov	x0, x21
	bl	_drm_atomic_commit
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_drm_atomic_state_clear
	add	x0, sp, #8
	bl	_drm_modeset_backoff
	b	LBB0_3
LBB0_8:
	mov	x0, x21
	bl	_drm_atomic_state_put
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	add	x0, sp, #8
	bl	_drm_modeset_drop_locks
	add	x0, sp, #8
	bl	_drm_modeset_acquire_fini
	mov	x20, x22
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.no_dead_strip	_rcar_du_crtc_set_crc_source
.subsections_via_symbols
