	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_vb_with_fmt
_check_vb_with_fmt:                     ## @check_vb_with_fmt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	(%rsi), %eax
	jne	LBB0_7
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %edx
	movl	$2, %edi
	movq	%r12, %rsi
	movl	%ebx, %ecx
	movq	%r13, %r8
	callq	_mfc_debug
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_mfc_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid plane number for the format\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get plane cookie\n"

L_.str.2:                               ## @.str.2
	.asciz	"index: %d, plane[%d] cookie: %pad\n"

	.no_dead_strip	_check_vb_with_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_vb_with_fmt
_check_vb_with_fmt:                     ; @check_vb_with_fmt
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	w9, [x1]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
Lloh0:
	adrp	x22, l_.str.2@PAGE
Lloh1:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_vb2_dma_contig_plane_dma_addr
	str	w0, [sp, #12]
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x19, #4]
	add	x4, sp, #12
	mov	w0, #2
	mov	x1, x22
	mov	x3, x21
	bl	_mfc_debug
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_mfc_err
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid plane number for the format\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get plane cookie\n"

l_.str.2:                               ; @.str.2
	.asciz	"index: %d, plane[%d] cookie: %pad\n"

	.no_dead_strip	_check_vb_with_fmt
.subsections_via_symbols
