	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_m2m_try_schedule
_v4l2_m2m_try_schedule:                 ## @v4l2_m2m_try_schedule
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	cmpl	$0, 44(%rbx)
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_TRANS_QUEUED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_6:
	movq	16(%rbx), %rdi
	callq	_spin_lock_irqsave
	leaq	32(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	40(%rbx), %rdi
	callq	_list_empty
	movq	%rax, %r15
	movq	16(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_3
LBB0_10:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	8(%rbx), %edi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	leaq	4(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_m2m_try_run               ## TAILCALL
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to schedule a job for m2m_ctx: %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"Streaming needs to be on for both queues\n"

	.comm	_TRANS_QUEUED,4,2               ## @TRANS_QUEUED
L_.str.2:                               ## @.str.2
	.asciz	"On job queue already\n"

L_.str.3:                               ## @.str.3
	.asciz	"No input buffers available\n"

L_.str.4:                               ## @.str.4
	.asciz	"No output buffers available\n"

L_.str.5:                               ## @.str.5
	.asciz	"Driver not ready\n"

	.no_dead_strip	_v4l2_m2m_try_schedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_m2m_try_schedule
_v4l2_m2m_try_schedule:                 ; @v4l2_m2m_try_schedule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #48]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x20, #44]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
Lloh2:
	adrp	x22, _TRANS_QUEUED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TRANS_QUEUED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	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
	add	sp, sp, #64
	b	_dprintk
LBB0_6:
	ldr	x0, [x20, #16]
	bl	_spin_lock_irqsave
	add	x0, x20, #32
	bl	_list_empty
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #16]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_8:
	add	x0, x20, #40
	bl	_list_empty
	mov	x21, x0
	ldr	x0, [x20, #16]
	bl	_spin_unlock_irqrestore
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x20, #8]
	blr	x8
	cbz	w0, LBB0_13
LBB0_12:
	add	x0, x20, #4
	add	x1, x19, #4
	bl	_list_add_tail
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_v4l2_m2m_try_run
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to schedule a job for m2m_ctx: %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"Streaming needs to be on for both queues\n"

	.comm	_TRANS_QUEUED,4,2               ; @TRANS_QUEUED
l_.str.2:                               ; @.str.2
	.asciz	"On job queue already\n"

l_.str.3:                               ; @.str.3
	.asciz	"No input buffers available\n"

l_.str.4:                               ; @.str.4
	.asciz	"No output buffers available\n"

l_.str.5:                               ; @.str.5
	.asciz	"Driver not ready\n"

	.no_dead_strip	_v4l2_m2m_try_schedule
.subsections_via_symbols
