	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_video_link_validate_get_format
_sun6i_video_link_validate_get_format:  ## @sun6i_video_link_validate_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_is_media_entity_v4l2_subdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	callq	_media_entity_to_v4l2_subdev
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movl	(%rbx), %ecx
	movl	%ecx, (%r14)
	movq	_get_fmt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_subdev_call               ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_get_fmt,4,2                    ## @get_fmt
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sun6i_video_link_validate_get_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_video_link_validate_get_format
_sun6i_video_link_validate_get_format:  ; @sun6i_video_link_validate_get_format
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_is_media_entity_v4l2_subdev
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_media_entity_to_v4l2_subdev
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x19]
Lloh3:
	adrp	x8, _get_fmt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _get_fmt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	mov	x4, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_subdev_call
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_get_fmt,4,2                    ; @get_fmt
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sun6i_video_link_validate_get_format
.subsections_via_symbols
