	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_parallel_subdevice_attach
_rvin_parallel_subdevice_attach:        ## @rvin_parallel_subdevice_attach
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rvin_find_pad
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.1:
	movq	8(%r15), %rax
	movl	%ebx, (%rax)
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rvin_find_pad
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovlel	%ebx, %eax
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	48(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r14, 8(%rcx)
LBB0_22:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$0, (%r15)
	movq	$0, -56(%rbp)
	movl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	movq	_pad@GOTPCREL(%rip), %r13
	movq	_enum_mbus_code@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	-56(%rbp)
	movl	-60(%rbp), %ecx
	leal	-128(%rcx), %eax
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, (%r15)
	movl	4(%r14), %edx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_vin_dbg
	jmp	LBB0_7
LBB0_15:
	cmpl	$0, (%r15)
	je	LBB0_16
LBB0_8:
	movq	_video@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_g_tvnorms@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	32(%r15), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jns	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_11
## %bb.10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_22
LBB0_11:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	40(%r15), %rcx
	movl	%eax, 40(%r15)
	movl	(%r12), %esi
	movq	_g_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_22
LBB0_13:
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_v4l2_ctrl_handler_init
	testl	%eax, %eax
	js	LBB0_14
## %bb.17:
	movq	_V4L2_CID_ALPHA_COMPONENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, (%rsp)
	movq	_rvin_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_22
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_16:
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_vin_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_19:
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_v4l2_ctrl_add_handler
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movq	%r12, 24(%r15)
	movq	8(%r15), %rax
	movq	%r14, 8(%rax)
	jmp	LBB0_22
LBB0_20:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r13d, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_pad,4,2                        ## @pad
	.comm	_enum_mbus_code,4,2             ## @enum_mbus_code
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found media bus format for %s: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported media bus format for %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_g_tvnorms,4,2                  ## @g_tvnorms
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_g_std,4,2                      ## @g_std
	.comm	_rvin_ctrl_ops,4,2              ## @rvin_ctrl_ops
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ## @V4L2_CID_ALPHA_COMPONENT
	.no_dead_strip	_rvin_parallel_subdevice_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_parallel_subdevice_attach
_rvin_parallel_subdevice_attach:        ; @rvin_parallel_subdevice_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
	stp	xzr, xzr, [sp, #8]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rvin_find_pad
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	str	w21, [x8]
Lloh6:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rvin_find_pad
	cmp	w0, #0
	csel	w9, w0, wzr, gt
	ldr	x8, [x20, #8]
	str	w9, [x8, #4]
	ldr	x9, [x20, #48]
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.2:
	mov	w21, #0
LBB0_3:
	str	x19, [x8, #8]
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	str	wzr, [x20]
	str	xzr, [sp, #16]
	ldr	w8, [x8]
Lloh9:
	adrp	x22, _pad@GOTPAGE
Lloh10:
	ldr	x22, [x22, _pad@GOTPAGEOFF]
	str	w8, [sp, #8]
Lloh11:
	adrp	x23, _enum_mbus_code@GOTPAGE
Lloh12:
	ldr	x23, [x23, _enum_mbus_code@GOTPAGEOFF]
	add	x24, sp, #8
Lloh13:
	adrp	x21, l_.str@PAGE
Lloh14:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w2, [x23]
	str	x24, [sp]
	mov	x0, x19
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]
	add	x8, x8, #1
	str	x8, [sp, #16]
	ldr	w3, [sp, #12]
	sub	w8, w3, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w3, [x20]
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_vin_dbg
	b	LBB0_6
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_20
LBB0_11:
Lloh15:
	adrp	x22, _video@GOTPAGE
Lloh16:
	ldr	x22, [x22, _video@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh17:
	adrp	x8, _g_tvnorms@GOTPAGE
Lloh18:
	ldr	x8, [x8, _g_tvnorms@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, x20, #32
	mov	x0, x19
	bl	_v4l2_subdev_call
	tbz	w0, #31, LBB0_14
; %bb.12:
	mov	x21, x0
Lloh20:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_4
LBB0_14:
Lloh26:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mov	x3, x20
	str	w8, [x3, #40]!
	ldr	w1, [x22]
Lloh29:
	adrp	x8, _g_std@GOTPAGE
Lloh30:
	ldr	x8, [x8, _g_std@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_v4l2_subdev_call
	tbz	w0, #31, LBB0_16
; %bb.15:
	mov	x21, x0
Lloh32:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
LBB0_16:
	add	x22, x20, #16
	mov	x0, x22
	mov	w1, #16
	bl	_v4l2_ctrl_handler_init
	tbnz	w0, #31, LBB0_19
; %bb.17:
Lloh35:
	adrp	x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x1, _rvin_ctrl_ops@GOTPAGE
Lloh39:
	ldr	x1, [x1, _rvin_ctrl_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #255
	bl	_v4l2_ctrl_new_std
	ldr	w21, [x22]
	cbz	w21, LBB0_21
LBB0_18:
	mov	x0, x22
	bl	_v4l2_ctrl_handler_free
	b	LBB0_4
LBB0_19:
	mov	x21, x0
	b	LBB0_4
LBB0_20:
	ldr	w2, [x19, #4]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_vin_err
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_21:
	ldr	w1, [x19]
	mov	x0, x22
	mov	x2, #0
	mov	w3, #1
	bl	_v4l2_ctrl_add_handler
	tbnz	w0, #31, LBB0_23
; %bb.22:
	mov	w21, #0
	str	x22, [x20, #24]
	ldr	x8, [x20, #8]
	b	LBB0_3
LBB0_23:
	mov	x21, x0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_pad,4,2                        ; @pad
	.comm	_enum_mbus_code,4,2             ; @enum_mbus_code
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found media bus format for %s: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported media bus format for %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_g_tvnorms,4,2                  ; @g_tvnorms
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_g_std,4,2                      ; @g_std
	.comm	_rvin_ctrl_ops,4,2              ; @rvin_ctrl_ops
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ; @V4L2_CID_ALPHA_COMPONENT
	.no_dead_strip	_rvin_parallel_subdevice_attach
.subsections_via_symbols
