	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt
_vidioc_s_fmt:                          ## @vidioc_s_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	8(%rsi), %r14
	callq	_vidioc_try_fmt
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	(%rbx), %edi
	movl	16(%r15), %esi
	callq	_v4l2_m2m_get_vq
	movq	%rax, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	16(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_get_frame
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	callq	_find_fmt
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	4(%r15), %ecx
	movl	%ecx, 56(%r14)
	movq	8(%r15), %rcx
	movq	%rcx, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	xorps	%xmm1, %xmm1
	movups	%xmm1, 40(%r14)
	movq	%rcx, %rdx
	shrq	$32, %rdx
	movl	%edx, 36(%r14)
	movl	%ecx, 32(%r14)
	movdqu	%xmm0, 16(%r14)
	movq	%rax, 8(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue (%d) bust\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_fmt
_vidioc_s_fmt:                          ; @vidioc_s_fmt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	ldr	x20, [x1, #8]
	bl	_vidioc_try_fmt
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x21]
	ldr	w1, [x19, #16]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_is_busy
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w2, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_get_frame
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
	mov	x0, x19
	bl	_find_fmt
	cbz	x0, LBB0_9
; %bb.8:
	mov	x8, x0
	mov	w0, #0
	ldp	w10, w9, [x19, #4]
	str	w10, [x20, #56]
	ldr	w10, [x19, #12]
	stp	xzr, xzr, [x20, #40]
	stp	w9, w10, [x20, #32]
	stp	w10, w10, [x20, #24]
	stp	w9, w9, [x20, #16]
	str	x8, [x20, #8]
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_4
LBB0_9:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue (%d) bust\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_s_fmt
.subsections_via_symbols
