	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_crtc_parse_crc_source
_rcar_du_crtc_parse_crc_source:         ## @rcar_du_crtc_parse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstarts
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	_VSP1_DU_CRC_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	L_.str.1(%rip), %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.8:
	movl	-28(%rbp), %edx
	movq	8(%rax), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	cmpl	(%rsi,%rdi,4), %edx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%eax
	cmpl	%eax, %ecx
	jne	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_1:
	movq	_VSP1_DU_CRC_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_VSP1_DU_CRC_OUTPUT@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSP1_DU_CRC_NONE,4,2           ## @VSP1_DU_CRC_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auto"

	.comm	_VSP1_DU_CRC_OUTPUT,4,2         ## @VSP1_DU_CRC_OUTPUT
L_.str.1:                               ## @.str.1
	.asciz	"plane"

	.comm	_VSP1_DU_CRC_PLANE,4,2          ## @VSP1_DU_CRC_PLANE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rcar_du_crtc_parse_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_parse_crc_source
_rcar_du_crtc_parse_crc_source:         ; @rcar_du_crtc_parse_crc_source
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	cbz	x1, LBB0_9
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strstarts
	cbz	x0, LBB0_8
; %bb.3:
Lloh4:
	adrp	x8, _VSP1_DU_CRC_PLANE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VSP1_DU_CRC_PLANE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strlen
	add	x0, x21, w0, sxtw
	add	x2, sp, #12
	mov	w1, #10
	bl	_kstrtouint
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	x10, [x19]
	ldr	w8, [x10]
	cbz	w8, LBB0_8
; %bb.5:
	mov	w0, #0
	ldr	w9, [sp, #12]
	ldr	x10, [x10, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, w0, uxtw #2]
	cmp	w9, w11
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w0, w0, #1
	cmp	w8, w0
	b.ne	LBB0_6
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
	mov	w0, #0
Lloh12:
	adrp	x8, _VSP1_DU_CRC_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VSP1_DU_CRC_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _VSP1_DU_CRC_OUTPUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VSP1_DU_CRC_OUTPUT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VSP1_DU_CRC_NONE,4,2           ; @VSP1_DU_CRC_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto"

	.comm	_VSP1_DU_CRC_OUTPUT,4,2         ; @VSP1_DU_CRC_OUTPUT
l_.str.1:                               ; @.str.1
	.asciz	"plane"

	.comm	_VSP1_DU_CRC_PLANE,4,2          ; @VSP1_DU_CRC_PLANE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rcar_du_crtc_parse_crc_source
.subsections_via_symbols
