	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __camif_subdev_try_format
___camif_subdev_try_format:             ## @__camif_subdev_try_format
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_VP_CODEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_camif_mbus_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi,%r13,8), %rax
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r13
	jb	LBB0_1
LBB0_3:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	movq	_CAMIF_SD_PAD_SINK@GOTPCREL(%rip), %rax
	leaq	12(%rbx), %r12
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_CAMIF_MAX_PIX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	callq	_ffs
	leaq	-1(%rax), %rcx
	leaq	8(%rbx), %r8
	movq	_CAMIF_MAX_PIX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movl	8(%r14), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	callq	_ffs
	leaq	-1(%rax), %rcx
	leaq	8(%rbx), %r8
	movl	4(%r14), %eax
LBB0_8:
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	movl	$8, %r9d
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_dbg                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VP_CODEC,8,3                   ## @VP_CODEC
	.comm	_camif_mbus_formats,8,3         ## @camif_mbus_formats
	.comm	_CAMIF_SD_PAD_SINK,4,2          ## @CAMIF_SD_PAD_SINK
	.comm	_CAMIF_MAX_PIX_WIDTH,4,2        ## @CAMIF_MAX_PIX_WIDTH
	.comm	_CAMIF_MAX_PIX_HEIGHT,4,2       ## @CAMIF_MAX_PIX_HEIGHT
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%ux%u\n"

	.no_dead_strip	___camif_subdev_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __camif_subdev_try_format
___camif_subdev_try_format:             ; @__camif_subdev_try_format
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _VP_CODEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VP_CODEC@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x22, _camif_mbus_formats@GOTPAGE
Lloh4:
	ldr	x22, [x22, _camif_mbus_formats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0, x25, lsl #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, uxtw
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w25, #0
LBB0_5:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w25, w0
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x22]
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_7:
Lloh5:
	adrp	x8, _CAMIF_SD_PAD_SINK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAMIF_SD_PAD_SINK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	x22, x20, #12
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _CAMIF_MAX_PIX_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAMIF_MAX_PIX_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	w0, [x23, x24, lsl #2]
	bl	_ffs
	sub	x3, x0, #1
	add	x4, x20, #8
Lloh11:
	adrp	x8, _CAMIF_MAX_PIX_HEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAMIF_MAX_PIX_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	b	LBB0_10
LBB0_9:
	ldr	w21, [x19, #8]
	ldr	w0, [x23, x24, lsl #2]
	bl	_ffs
	sub	x3, x0, #1
	add	x4, x20, #8
	ldr	w6, [x19, #4]
LBB0_10:
	str	wzr, [sp]
	mov	x0, x22
	mov	w1, #8
	mov	x2, x21
	mov	w5, #8
	mov	w7, #0
	bl	_v4l_bound_align_image
Lloh14:
	adrp	x8, _debug@GOTPAGE
Lloh15:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldp	w5, w4, [x20, #8]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	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	_v4l2_dbg
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VP_CODEC,8,3                   ; @VP_CODEC
	.comm	_camif_mbus_formats,8,3         ; @camif_mbus_formats
	.comm	_CAMIF_SD_PAD_SINK,4,2          ; @CAMIF_SD_PAD_SINK
	.comm	_CAMIF_MAX_PIX_WIDTH,4,2        ; @CAMIF_MAX_PIX_WIDTH
	.comm	_CAMIF_MAX_PIX_HEIGHT,4,2       ; @CAMIF_MAX_PIX_HEIGHT
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%ux%u\n"

	.no_dead_strip	___camif_subdev_try_format
.subsections_via_symbols
