	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_camif_vidioc_s_fmt
_s3c_camif_vidioc_s_fmt:                ## @s3c_camif_vidioc_s_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	$0, -40(%rbp)
	movl	28(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	24(%rbx), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_2:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___camif_video_try_format
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rax
	movq	%rax, 16(%rbx)
	movl	12(%r15), %ecx
	movl	%ecx, (%rbx)
	movq	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	movdqu	%xmm1, 32(%rbx)
	pxor	%xmm1, %xmm1
	movdqu	%xmm1, 48(%rbx)
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%r14, 8(%rbx)
LBB0_6:
	movl	(%rax), %ebx
	movl	4(%rax), %r8d
	pextrd	$1, %xmm0, %edx
	movd	%xmm0, %esi
	movl	%edx, %r9d
	imull	%esi, %r9d
	imull	%ebx, %r9d
	movl	8(%r15), %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rcx
	pushq	%rbx
	callq	_pr_debug
	addq	$32, %rsp
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[vp%d]\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"%ux%u. payload: %u. fmt: 0x%08x. %d %d. sizeimage: %d. bpl: %d\n"

	.no_dead_strip	_s3c_camif_vidioc_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_camif_vidioc_s_fmt
_s3c_camif_vidioc_s_fmt:                ; @s3c_camif_vidioc_s_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	bl	_video_drvdata
	mov	x21, x0
	stur	xzr, [x29, #-40]
	ldr	w1, [x0, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	add	x0, x21, #24
	bl	_vb2_is_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	sub	x2, x29, #40
	mov	x0, x21
	mov	x1, x19
	bl	___camif_video_try_format
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldur	x10, [x29, #-40]
	str	x10, [x21, #16]
	ldr	w8, [x19, #12]
	str	w8, [x21]
	ldp	w1, w9, [x19]
	stp	w1, w9, [x21, #32]
	stp	w1, w9, [x21, #40]
	stp	xzr, xzr, [x21, #48]
	ldr	x11, [x21, #8]
	cbnz	x11, LBB0_5
; %bb.4:
	str	x20, [x21, #8]
LBB0_5:
	mul	w11, w9, w1
	ldp	w12, w10, [x10]
	mul	w11, w11, w12
	ldr	w13, [x19, #8]
	stp	x8, x13, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	str	x10, [sp, #16]
	bl	_pr_debug
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[vp%d]\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"%ux%u. payload: %u. fmt: 0x%08x. %d %d. sizeimage: %d. bpl: %d\n"

	.no_dead_strip	_s3c_camif_vidioc_s_fmt
.subsections_via_symbols
