	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_reset_format
_rvin_reset_format:                     ## @rvin_reset_format
	.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	%rdi, %rbx
	movl	$0, -40(%rbp)
	movq	80(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	callq	_vin_to_source
	movq	_pad@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_get_fmt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-40(%rbp), %r8
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	72(%rbx), %r15
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_v4l2_fill_pix_format
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rvin_format_align
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	72(%rbx), %rax
	movq	%rax, (%rbx)
	movq	16(%rbx), %rax
	movq	%rax, 64(%rbx)
	movups	(%rbx), %xmm0
	movups	%xmm0, 48(%rbx)
	movq	%rax, 40(%rbx)
	movups	%xmm0, 24(%rbx)
LBB0_2:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_rvin_reset_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_reset_format
_rvin_reset_format:                     ; @rvin_reset_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #80]
	ldr	w8, [x8]
	stp	wzr, w8, [sp]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_vin_to_source
Lloh3:
	adrp	x8, _pad@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _get_fmt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _get_fmt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x3, #0
	bl	_v4l2_subdev_call
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	add	x21, x19, #72
	mov	x1, sp
	mov	x0, x21
	bl	_v4l2_fill_pix_format
	mov	x0, x19
	mov	x1, x21
	bl	_rvin_format_align
	stp	xzr, xzr, [x19, #8]
	ldr	d0, [x19, #72]
	str	d0, [x19]
	str	xzr, [x19, #64]
	ldr	q0, [x19]
	str	q0, [x19, #48]
	str	xzr, [x19, #40]
	stur	q0, [x19, #24]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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	_rvin_reset_format
.subsections_via_symbols
