	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt_vid_out
_vidioc_s_fmt_vid_out:                  ## @vidioc_s_fmt_vid_out
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	leaq	56(%rax), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	48(%rbx), %rax
	movq	(%rax), %rdi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_is_rotation_enabled
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	_V4L2_PIX_FMT_RGB24@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_is_rotation_90_or_270
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%cl
	sete	%dl
	movl	(%r15,%rcx,4), %eax
	movl	(%r15,%rdx,4), %ecx
	leaq	16(%rbx), %r15
	movl	%ecx, 20(%rbx)
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_omap_vout_try_format
	movl	12(%r14), %ecx
	imull	%eax, %ecx
	imull	16(%r14), %ecx
	movl	%ecx, 8(%r14)
	movl	%eax, (%rbx)
	movups	(%r14), %xmm0
	movups	%xmm0, 24(%rbx)
	movq	16(%r14), %rax
	movq	%rax, 40(%rbx)
	movl	$1, 4(%rbx)
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rax
	movq	24(%rbx), %rcx
	cmpq	%rcx, (%rax)
	sete	%al
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	leaq	24(%rbx), %rdi
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	incl	%eax
	movl	%eax, 4(%rbx)
	leaq	12(%rbx), %rdx
	addq	$8, %rbx
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_omap_vout_new_format
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_RGB24,8,3         ## @V4L2_PIX_FMT_RGB24
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ## @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ## @V4L2_PIX_FMT_UYVY
	.no_dead_strip	_vidioc_s_fmt_vid_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_fmt_vid_out
_vidioc_s_fmt_vid_out:                  ; @vidioc_s_fmt_vid_out
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	bl	_video_drvdata
	mov	x19, x0
	add	x0, x0, #56
	bl	_vb2_is_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #48]
	ldr	x0, [x8]
	ldr	x8, [x0]
	blr	x8
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	bl	_is_rotation_enabled
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _V4L2_PIX_FMT_RGB24@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_is_rotation_90_or_270
	cmp	x0, #0
	cset	w8, eq
	cset	w9, ne
	ldr	w9, [x21, w9, uxtw #2]
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x19, #20]
	mov	x21, x19
	str	w9, [x21, #16]!
	mov	x0, x20
	bl	_omap_vout_try_format
	ldp	w8, w9, [x20, #12]
	mul	w8, w8, w0
	mul	w8, w8, w9
	str	w8, [x20, #8]
	str	w0, [x19]
	add	x0, x19, #24
	ldr	x8, [x20, #16]
	ldr	q0, [x20]
	stur	q0, [x19, #24]
	str	x8, [x19, #40]
	mov	w8, #1
Lloh7:
	adrp	x9, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
	str	w8, [x19, #4]
Lloh9:
	ldr	x9, [x9]
	ldr	x10, [x19, #24]
Lloh10:
	adrp	x11, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh11:
	ldr	x11, [x11, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x11, x10
	ccmp	x9, x10, #4, ne
	cinc	w8, w8, eq
	str	w8, [x19, #4]
	add	x2, x19, #12
	add	x3, x19, #8
	mov	x1, x21
	bl	_omap_vout_new_format
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_RGB24,8,3         ; @V4L2_PIX_FMT_RGB24
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ; @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ; @V4L2_PIX_FMT_UYVY
	.no_dead_strip	_vidioc_s_fmt_vid_out
.subsections_via_symbols
