	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vimc_deb_set_fmt
_vimc_deb_set_fmt:                      ## @vimc_deb_set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 40(%r12)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_v4l2_subdev_get_try_format
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_3:
	movq	%r12, %r14
	addq	$12, %r14
LBB0_5:
	movl	36(%r13), %edi
	callq	_IS_SRC
	leaq	8(%r13), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movups	(%r14), %xmm0
	movups	12(%r14), %xmm1
	movups	%xmm1, 12(%r15)
	movups	%xmm0, (%r15)
	movl	8(%r12), %eax
	movl	%eax, 24(%r13)
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_vimc_deb_adjust_sink_fmt
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movl	24(%r14), %ecx
	movl	20(%r14), %r8d
	movl	16(%r14), %r9d
	movl	12(%r14), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	32(%r13), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	28(%r13), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %ebx
	movl	20(%r13), %r11d
	movl	16(%r13), %r10d
	movl	8(%r13), %eax
	movl	12(%r13), %r13d
	movl	8(%r14), %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r12d
	movl	4(%r14), %esi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r13
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_dbg
	addq	$96, %rsp
	movups	(%r15), %xmm0
	movups	12(%r15), %xmm1
	movups	%xmm0, (%r14)
	movups	%xmm1, 12(%r14)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: sink format update: old:%dx%d (0x%x, %d, %d, %d, %d) new:%dx%d (0x%x, %d, %d, %d, %d)\n"

	.no_dead_strip	_vimc_deb_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vimc_deb_set_fmt
_vimc_deb_set_fmt:                      ; @vimc_deb_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_v4l2_get_subdevdata
	mov	x22, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_v4l2_subdev_get_try_format
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	add	x20, x22, #12
LBB0_5:
	ldr	w0, [x19, #36]
	bl	_IS_SRC
	add	x21, x19, #8
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #0
	ldr	q0, [x20]
	ldur	q1, [x20, #12]
	stur	q1, [x21, #12]
	str	q0, [x21]
	ldr	w8, [x22, #8]
	str	w8, [x19, #24]
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_vimc_deb_adjust_sink_fmt
	ldp	w2, w0, [x22]
	ldp	w4, w3, [x20, #20]
	ldp	w6, w5, [x20, #12]
	ldp	w8, w7, [x20, #4]
	ldr	w9, [x20]
	ldp	w11, w10, [x19, #28]
	ldp	w13, w12, [x19, #20]
	ldp	w15, w14, [x19, #12]
	ldr	w16, [x19, #8]
	stp	w15, w16, [sp, #28]
	stp	w13, w14, [sp, #20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	stp	w11, w12, [sp, #12]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	bl	_dev_dbg
	mov	w0, #0
	ldur	q0, [x21, #12]
	ldr	q1, [x21]
	str	q1, [x20]
	stur	q0, [x20, #12]
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: sink format update: old:%dx%d (0x%x, %d, %d, %d, %d) new:%dx%d (0x%x, %d, %d, %d, %d)\n"

	.no_dead_strip	_vimc_deb_set_fmt
.subsections_via_symbols
