	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2255_read_video_callback
_s2255_read_video_callback:             ## @s2255_read_video_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdx
	movl	$50, %esi
	callq	_dprintk
	movq	(%rbx), %rax
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_save_frame
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_dprintk
LBB0_3:
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$50, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_4:
	movq	$0, (%rbx)
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"callback read video\n"

	.comm	_MAX_CHANNELS,8,3               ## @MAX_CHANNELS
L_.str.1:                               ## @.str.1
	.asciz	"invalid channel\n"

L_.str.2:                               ## @.str.2
	.asciz	"s2255: read callback failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"callback read video done\n"

	.no_dead_strip	_s2255_read_video_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2255_read_video_callback
_s2255_read_video_callback:             ; @s2255_read_video_callback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #50
	bl	_dprintk
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MAX_CHANNELS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_CHANNELS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_save_frame
	cbz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #4
	bl	_dprintk
LBB0_3:
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #50
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dprintk
LBB0_4:
	str	xzr, [x19]
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"callback read video\n"

	.comm	_MAX_CHANNELS,8,3               ; @MAX_CHANNELS
l_.str.1:                               ; @.str.1
	.asciz	"invalid channel\n"

l_.str.2:                               ; @.str.2
	.asciz	"s2255: read callback failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"callback read video done\n"

	.no_dead_strip	_s2255_read_video_callback
.subsections_via_symbols
