	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_m2m_cancel_job
_v4l2_m2m_cancel_job:                   ## @v4l2_m2m_cancel_job
	.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	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_TRANS_ABORT@GOTPCREL(%rip), %rcx
	movl	(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_TRANS_RUNNING@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	callq	*%rax
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_dprintk
	movl	8(%rbx), %edi
	movl	(%r15), %eax
	xorl	%esi, %esi
	andl	(%rbx), %eax
	sete	%sil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event                     ## TAILCALL
LBB0_4:
	movq	_TRANS_QUEUED@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	leaq	4(%rbx), %rdi
	callq	_list_del
	movl	(%r15), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_ABORT,4,2                ## @TRANS_ABORT
	.comm	_TRANS_RUNNING,4,2              ## @TRANS_RUNNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m2m_ctx %p running, will wait to complete\n"

	.comm	_TRANS_QUEUED,4,2               ## @TRANS_QUEUED
L_.str.1:                               ## @.str.1
	.asciz	"m2m_ctx: %p had been on queue and was removed\n"

	.no_dead_strip	_v4l2_m2m_cancel_job
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_m2m_cancel_job
_v4l2_m2m_cancel_job:                   ; @v4l2_m2m_cancel_job
	.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, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _TRANS_ABORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_ABORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh3:
	adrp	x21, _TRANS_RUNNING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TRANS_RUNNING@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	blr	x8
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dprintk
	ldr	w0, [x19, #8]
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w1, eq
	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	_wait_event
LBB0_4:
Lloh7:
	adrp	x22, _TRANS_QUEUED@GOTPAGE
Lloh8:
	ldr	x22, [x22, _TRANS_QUEUED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	add	x0, x19, #4
	bl	_list_del
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	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	_dprintk
LBB0_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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_ABORT,4,2                ; @TRANS_ABORT
	.comm	_TRANS_RUNNING,4,2              ; @TRANS_RUNNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m2m_ctx %p running, will wait to complete\n"

	.comm	_TRANS_QUEUED,4,2               ; @TRANS_QUEUED
l_.str.1:                               ; @.str.1
	.asciz	"m2m_ctx: %p had been on queue and was removed\n"

	.no_dead_strip	_v4l2_m2m_cancel_job
.subsections_via_symbols
