	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_fb_create
_rcar_du_fb_create:                     ## @rcar_du_fb_create
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	8(%rdx), %edi
	callq	_rcar_du_format_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%r12), %rax
	cmpl	$2, (%rax)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_3
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movl	$1, %r15d
	cmpl	$1, (%r13)
	jne	LBB0_6
## %bb.5:
	movl	4(%r13), %eax
	leal	7(%rax), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$3, %r15d
LBB0_6:
	movl	%r15d, %r14d
	shll	$12, %r14d
	subl	%r15d, %r14d
	movq	_RCAR_DU_QUIRK_ALIGN_128B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rcar_du_needs
	shll	$4, %r15d
	decl	%r15d
	testq	%rax, %rax
	movl	$127, %ecx
	cmovel	%r15d, %ecx
	movq	%rbx, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_3:
	xorl	%ecx, %ecx
	movl	$65535, %r14d                   ## imm = 0xFFFF
LBB0_7:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	testl	%ecx, %edx
	jne	LBB0_11
## %bb.8:
	cmpl	%r14d, %edx
	ja	LBB0_11
## %bb.9:
	movl	(%r13), %ecx
	cmpq	$2, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jb	LBB0_17
## %bb.10:
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rax,%rdi,4)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_15
LBB0_17:
	movq	%r15, %rdi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_gem_fb_create              ## TAILCALL
LBB0_11:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported pixel format %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RCAR_DU_QUIRK_ALIGN_128B,4,2   ## @RCAR_DU_QUIRK_ALIGN_128B
L_.str.1:                               ## @.str.1
	.asciz	"invalid pitch value %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"luma and chroma pitches do not match\n"

	.no_dead_strip	_rcar_du_fb_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_fb_create
_rcar_du_fb_create:                     ; @rcar_du_fb_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x2, #8]
	bl	_rcar_du_format_info
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #2
	b.gt	LBB0_5
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x22, #4]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w25, w8, #3
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_5:
	mov	w9, #0
	mov	w24, #65535
	b	LBB0_8
LBB0_6:
	mov	w25, #1
LBB0_7:
	lsl	w8, w25, #12
	sub	w24, w8, w25
Lloh2:
	adrp	x8, _RCAR_DU_QUIRK_ALIGN_128B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCAR_DU_QUIRK_ALIGN_128B@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_rcar_du_needs
	lsl	w8, w25, #4
	sub	w8, w8, #1
	cmp	x0, #0
	mov	w9, #127
	csel	w9, w8, w9, eq
LBB0_8:
	ldr	x10, [x19]
	ldr	w8, [x10]
	and	w9, w8, w9
	cmp	w9, #0
	ccmp	w8, w24, #2, eq
	b.ls	LBB0_10
; %bb.9:
	ldr	w0, [x20]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_10:
	ldr	w11, [x22]
	cmp	w11, #2
	b.lo	LBB0_14
; %bb.11:
	add	x9, x10, #4
	sub	x10, x11, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, w8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #4
	subs	x10, x10, #1
	b.ne	LBB0_12
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_drm_gem_fb_create
LBB0_15:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	bl	_dev_dbg
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported pixel format %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RCAR_DU_QUIRK_ALIGN_128B,4,2   ; @RCAR_DU_QUIRK_ALIGN_128B
l_.str.1:                               ; @.str.1
	.asciz	"invalid pitch value %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"luma and chroma pitches do not match\n"

	.no_dead_strip	_rcar_du_fb_create
.subsections_via_symbols
