	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak881x_fill_fmt
_ak881x_fill_fmt:                       ## @ak881x_fill_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_to_ak881x
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	leaq	24(%r14), %rdi
	leaq	20(%r14), %r8
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$720, %edx                      ## imm = 0x2D0
	movl	$2, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_MEDIA_BUS_FMT_YUYV8_2X8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ## @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_ak881x_fill_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak881x_fill_fmt
_ak881x_fill_fmt:                       ; @ak881x_fill_fmt
	.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	_v4l2_get_subdevdata
	bl	_to_ak881x
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	add	x8, x19, #24
	add	x4, x19, #20
	ldr	w6, [x0]
	str	wzr, [sp]
	mov	x0, x8
	mov	w1, #0
	mov	w2, #720
	mov	w3, #2
	mov	w5, #0
	mov	w7, #1
	bl	_v4l_bound_align_image
	mov	w0, #0
Lloh3:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh6:
	adrp	x8, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_3:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ; @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_ak881x_fill_fmt
.subsections_via_symbols
