	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fmt
_vidioc_g_fmt:                          ## @vidioc_g_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r14
	movq	(%rbx), %rdx
	movl	56(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	48(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	40(%r14), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movups	24(%r14), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	16(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	8(%r14), %edx
	movl	%edx, (%rcx)
	movl	%eax, 12(%rcx)
	movl	(%r14), %eax
	movl	%eax, 8(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_mfc_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f->type = %d ctx->state = %d\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
L_.str.1:                               ## @.str.1
	.asciz	"invalid buf type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_g_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_fmt
_vidioc_g_fmt:                          ; @vidioc_g_fmt
	.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	x20, x2
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x19, x0
	ldr	x2, [x20]
	ldr	w3, [x0, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	str	xzr, [x20, #40]
Lloh5:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	stp	x8, xzr, [x20, #24]
	ldr	x8, [x19, #48]
	ldr	d0, [x8]
	str	d0, [x20, #16]
	ldr	w8, [x19, #40]
	ldr	x9, [x20, #8]
	stp	w8, w8, [x9]
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh11:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	ldr	x8, [x19, #16]
	ldr	d0, [x8]
	ldur	q1, [x19, #24]
	str	q1, [x20, #32]
	str	d0, [x20, #16]
	ldr	x8, [x20, #8]
	ldur	d0, [x19, #4]
	rev64.2s	v1, v0
	str	d1, [x8]
	str	s0, [x8, #12]
	ldr	w9, [x19]
	str	w9, [x8, #8]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_mfc_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f->type = %d ctx->state = %d\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
l_.str.1:                               ; @.str.1
	.asciz	"invalid buf type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_g_fmt
.subsections_via_symbols
