	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ## @vidioc_s_fmt_vid_cap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_video_drvdata
	movq	%rax, %r12
	movq	8(%rax), %r15
	movq	%rax, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	addq	$4, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	16(%r15), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	jne	LBB0_1
LBB0_5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_vidioc_try_fmt_vid_cap
	movl	(%r14), %esi
	movl	%esi, 8(%r15)
	movl	4(%r14), %edx
	movl	%edx, 4(%r15)
	movl	8(%r14), %ecx
	movl	%ecx, (%r15)
	movq	%r15, %rdi
	callq	_cx88_set_scale
	movq	_CX2341X_ENC_SET_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_blackbird_api_cmd
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CX2341X_ENC_SET_FRAME_SIZE,4,2 ## @CX2341X_ENC_SET_FRAME_SIZE
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.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_vid_cap
_vidioc_s_fmt_vid_cap:                  ; @vidioc_s_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	x21, [x0, #8]
	bl	_vb2_is_busy
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.4:
	add	x0, x8, #4
	bl	_vb2_is_busy
	cbnz	x0, LBB0_1
; %bb.5:
	ldr	x0, [x21, #16]
	bl	_vb2_is_busy
	cbnz	x0, LBB0_1
LBB0_6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_vidioc_try_fmt_vid_cap
	ldp	w1, w2, [x19]
	str	w1, [x21, #8]
	ldr	w3, [x19, #8]
	stp	w3, w2, [x21]
	mov	x0, x21
	bl	_cx88_set_scale
Lloh3:
	adrp	x8, _CX2341X_ENC_SET_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CX2341X_ENC_SET_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w5, w4, [x19]
	mov	x0, x20
	mov	w2, #2
	mov	w3, #0
	bl	_blackbird_api_cmd
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CX2341X_ENC_SET_FRAME_SIZE,4,2 ; @CX2341X_ENC_SET_FRAME_SIZE
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols
