	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stk1160_video_register         ## -- Begin function stk1160_video_register
	.p2align	4, 0x90
_stk1160_video_register:                ## @stk1160_video_register
	.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
	leaq	8(%rdi), %r14
	movq	_v4l_template@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	leaq	60(%rdi), %rax
	movq	%rax, 32(%rdi)
	leaq	56(%rdi), %rax
	movq	%rax, 24(%rdi)
	leaq	40(%rdi), %r15
	movq	%r15, 16(%rdi)
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rdi)
	movq	_V4L2_STD_NTSC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rdi)
	movabsq	$2061584302800, %rax            ## imm = 0x1E0000002D0
	movq	%rax, (%rdi)
	movq	_format@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rdi)
	callq	_stk1160_set_std
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	44(%rbx), %r8d
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_v4l2_device_call_all
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_video_device_node_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_v4l2_info
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_stk1160_err
	movl	%ebx, %r12d
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_v4l_template,32,3              ## @v4l_template
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_READWRITE,4,2         ## @V4L2_CAP_READWRITE
	.comm	_V4L2_STD_NTSC_M,4,2            ## @V4L2_STD_NTSC_M
	.comm	_format,8,3                     ## @format
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video_register_device failed (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"V4L2 device registered as %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function stk1160_video_register
lCPI0_0:
	.long	720                             ; 0x2d0
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_stk1160_video_register
	.p2align	2
_stk1160_video_register:                ; @stk1160_video_register
	.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	x21, x0
Lloh0:
	adrp	x8, _v4l_template@GOTPAGE
Lloh1:
	ldr	x8, [x8, _v4l_template@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x19, x0
	str	x8, [x19, #8]!
	add	x9, x0, #60
	add	x8, x0, #56
	add	x20, x0, #40
	stp	x8, x9, [x0, #24]
	str	x20, [x0, #16]
Lloh3:
	adrp	x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _V4L2_CAP_READWRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CAP_READWRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh12:
	adrp	x8, _V4L2_STD_NTSC_M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_STD_NTSC_M@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #44]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
Lloh17:
	adrp	x8, _format@GOTPAGE
Lloh18:
	ldr	x8, [x8, _format@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x0, #48]
	bl	_stk1160_set_std
Lloh20:
	adrp	x8, _video@GOTPAGE
Lloh21:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _s_std@GOTPAGE
Lloh24:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	ldr	w4, [x21, #44]
	mov	x0, x20
	mov	w1, #0
	bl	_v4l2_device_call_all
	mov	x0, x19
	mov	x1, x21
	bl	_video_set_drvdata
Lloh26:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_video_register_device
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_video_device_node_name
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_info
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x21, x0
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_stk1160_err
LBB0_3:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_v4l_template,32,3              ; @v4l_template
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_READWRITE,4,2         ; @V4L2_CAP_READWRITE
	.comm	_V4L2_STD_NTSC_M,4,2            ; @V4L2_STD_NTSC_M
	.comm	_format,8,3                     ; @format
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video_register_device failed (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"V4L2 device registered as %s\n"

.subsections_via_symbols
