	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movl	28(%rsi), %esi
	callq	_v4l2_m2m_get_vq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	28(%rbx), %edi
	callq	_get_q_data
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	20(%rax), %edx
	movl	%edx, 24(%rbx)
	movl	16(%rax), %edx
	movl	%edx, 20(%rbx)
	movq	8(%rax), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rbx)
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.3:
	leal	(%rcx,%rcx,2), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	addl	%ecx, %ecx
LBB0_5:
	movl	%ecx, 8(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x1, #28]
	bl	_v4l2_m2m_get_vq
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #28]
	bl	_get_q_data
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	d0, [x8, #16]
	stur	d0, [x19, #20]
	ldr	x10, [x8, #8]
	ldr	w10, [x10]
	lsl	w11, w9, #1
	add	w9, w9, w9, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	w10, #129
	csel	w9, w11, w9, ne
	stp	w10, w9, [x19, #4]
	ldr	w8, [x8, #4]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #12]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_g_fmt
.subsections_via_symbols
