	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcam_vidioc_s_fmt_vid_cap
_mcam_vidioc_s_fmt_vid_cap:             ## @mcam_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, %r15
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_S_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	24(%r12), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	callq	_mcam_find_format
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mcam_vidioc_try_fmt_vid_cap
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	(%r14), %eax
	movl	%eax, 20(%r12)
	movl	(%r13), %eax
	movl	%eax, 16(%r12)
	movq	8(%r12), %rax
	movq	_B_vmalloc@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_mcam_check_dma_buffers
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mcam_set_config_needed
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IDLE,8,3                     ## @S_IDLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_B_vmalloc,8,3                  ## @B_vmalloc
	.no_dead_strip	_mcam_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 mcam_vidioc_s_fmt_vid_cap
_mcam_vidioc_s_fmt_vid_cap:             ; @mcam_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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_video_drvdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	add	x0, x0, #24
	bl	_vb2_is_busy
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	ldr	w0, [x20]
	bl	_mcam_find_format
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_mcam_vidioc_try_fmt_vid_cap
	cbnz	w0, LBB0_3
; %bb.5:
	ldr	w8, [x20]
	str	w8, [x19, #20]
	ldr	w8, [x23]
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _B_vmalloc@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B_vmalloc@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_mcam_check_dma_buffers
	cbnz	w0, LBB0_3
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_mcam_set_config_needed
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IDLE,8,3                     ; @S_IDLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_B_vmalloc,8,3                  ; @B_vmalloc
	.no_dead_strip	_mcam_vidioc_s_fmt_vid_cap
.subsections_via_symbols
