	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_g_fmt_vid_cap
_cobalt_g_fmt_vid_cap:                  ## @cobalt_g_fmt_vid_cap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movl	24(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	4(%r14), %ecx
	movl	%ecx, 4(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rbx)
	cmpl	$1, 8(%r14)
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	20(%r14), %eax
	movl	%eax, -32(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	16(%r14), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_get_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r15
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_v4l2_subdev_call
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_v4l2_fill_pix_format
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
LBB0_3:
	imull	%ecx, %eax
	movl	12(%r14), %ecx
	movl	%ecx, 12(%rbx)
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ## @pad
	.comm	_get_fmt,4,2                    ## @get_fmt
	.no_dead_strip	_cobalt_g_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_g_fmt_vid_cap
_cobalt_g_fmt_vid_cap:                  ; @cobalt_g_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	w10, [x0, #24]
	ldp	w8, w9, [x0]
Lloh0:
	adrp	x11, _V4L2_FIELD_NONE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_FIELD_NONE@GOTPAGEOFF]
	stp	w8, w9, [x19]
Lloh2:
	ldr	w11, [x11]
	stp	w11, w10, [x19, #20]
	ldr	w10, [x0, #8]
	cmp	w10, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	str	w10, [x19, #16]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #16]
	stp	w8, w9, [sp, #4]
Lloh9:
	adrp	x8, _pad@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _get_fmt@GOTPAGE
Lloh13:
	ldr	x8, [x8, _get_fmt@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x3, #0
	bl	_v4l2_subdev_call
	mov	x1, sp
	mov	x0, x19
	bl	_v4l2_fill_pix_format
	ldp	w8, w9, [x19]
LBB0_3:
	ldr	w10, [x20, #12]
	mul	w8, w8, w9
	stp	w8, w10, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ; @pad
	.comm	_get_fmt,4,2                    ; @get_fmt
	.no_dead_strip	_cobalt_g_fmt_vid_cap
.subsections_via_symbols
