	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_histogram_init            ## -- Begin function vsp1_histogram_init
	.p2align	4, 0x90
_vsp1_histogram_init:                   ## @vsp1_histogram_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	32(%rbp), %eax
	movq	24(%rbp), %rcx
	movl	16(%rbp), %edx
	movq	%r9, (%rsi)
	movl	%edx, 8(%rsi)
	movq	%rcx, 16(%rsi)
	movl	%eax, 192(%rsi)
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 176(%rsi)
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rsi)
	leaq	144(%rsi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_init
	leaq	188(%rbx), %rdi
	callq	_spin_lock_init
	leaq	184(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	180(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	152(%rbx), %rsi
	movq	%r13, 168(%rbx)
	movl	%r14d, 152(%rbx)
	movq	_MEDIA_ENT_F_PROC_VIDEO_STATISTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_histo_ops@GOTPCREL(%rip), %r8
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	_vsp1_entity_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	leaq	176(%rbx), %rdx
	leaq	80(%rbx), %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	leaq	24(%rbx), %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	4(%r15), %rax
	movq	%rax, 72(%rbx)
	movq	_histo_v4l2_fops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movl	56(%rbx), %edi
	movq	160(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_histo_v4l2_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_V4L2_CAP_META_CAPTURE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	_V4L2_BUF_TYPE_META_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	88(%rbx), %r14
	movl	%eax, 136(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 88(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 128(%rbx)
	movq	%rbx, 120(%rbx)
	movl	$4, 92(%rbx)
	movq	_histo_video_queue_qops@GOTPCREL(%rip), %rax
	movq	%rax, 112(%rbx)
	movq	_vb2_vmalloc_memops@GOTPCREL(%rip), %rax
	movq	%rax, 104(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movl	(%r15), %eax
	movl	%eax, 96(%rbx)
	movq	%r14, %rdi
	callq	_vb2_queue_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	%r14, 32(%rbx)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_vsp1_histogram_cleanup
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_VFL_DIR_RX,4,2                 ## @VFL_DIR_RX
	.comm	_histo_ops,4,2                  ## @histo_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_STATISTICS,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_STATISTICS
	.comm	_histo_v4l2_fops,4,2            ## @histo_v4l2_fops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s histo"

	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.comm	_histo_v4l2_ioctl_ops,4,2       ## @histo_v4l2_ioctl_ops
	.comm	_V4L2_CAP_META_CAPTURE,4,2      ## @V4L2_CAP_META_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_BUF_TYPE_META_CAPTURE,4,2 ## @V4L2_BUF_TYPE_META_CAPTURE
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ## @VB2_USERPTR
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_histo_video_queue_qops,4,2     ## @histo_video_queue_qops
	.comm	_vb2_vmalloc_memops,4,2         ## @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_COPY,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_COPY
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize vb2 queue\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to register video device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_histogram_init            ; -- Begin function vsp1_histogram_init
	.p2align	2
_vsp1_histogram_init:                   ; @vsp1_histogram_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x29, #16]
	str	x5, [x1]
	str	w6, [x1, #8]
	str	x7, [x1, #16]
Lloh0:
	adrp	x9, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x22, x1
	str	w9, [x22, #176]!
	str	w8, [x1, #192]
Lloh3:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #84]
	add	x21, x1, #144
	mov	x0, x21
	bl	_mutex_init
	add	x0, x19, #188
	bl	_spin_lock_init
	add	x0, x19, #184
	bl	_INIT_LIST_HEAD
	add	x0, x19, #180
	bl	_init_waitqueue_head
	mov	x24, x19
	str	w26, [x24, #152]!
	str	x23, [x24, #16]
Lloh6:
	adrp	x8, _MEDIA_ENT_F_PROC_VIDEO_STATISTICS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEDIA_ENT_F_PROC_VIDEO_STATISTICS@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x4, _histo_ops@GOTPAGE
Lloh10:
	ldr	x4, [x4, _histo_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	w3, #2
	bl	_vsp1_entity_init
	tbnz	w0, #31, LBB0_5
; %bb.1:
	add	x0, x19, #80
	mov	w1, #1
	mov	x2, x22
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_5
; %bb.2:
	sub	x22, x24, #128
	add	x8, x20, #4
Lloh11:
	adrp	x9, _histo_v4l2_fops@GOTPAGE
Lloh12:
	ldr	x9, [x9, _histo_v4l2_fops@GOTPAGEOFF]
	stp	x9, x8, [x19, #64]
	ldr	w0, [x19, #56]
	ldr	x3, [x19, #160]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	w23, #4
	mov	w1, #4
	bl	_snprintf
Lloh15:
	adrp	x25, _VFL_TYPE_GRABBER@GOTPAGE
Lloh16:
	ldr	x25, [x25, _VFL_TYPE_GRABBER@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh17:
	adrp	x9, _video_device_release_empty@GOTPAGE
Lloh18:
	ldr	x9, [x9, _video_device_release_empty@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh20:
	adrp	x8, _histo_v4l2_ioctl_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _histo_v4l2_ioctl_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh22:
	adrp	x8, _V4L2_CAP_META_CAPTURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_CAP_META_CAPTURE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	mov	x0, x22
	mov	x1, x19
	bl	_video_set_drvdata
Lloh28:
	adrp	x8, _V4L2_BUF_TYPE_META_CAPTURE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_BUF_TYPE_META_CAPTURE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _VB2_MMAP@GOTPAGE
Lloh32:
	ldr	x9, [x9, _VB2_MMAP@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _VB2_USERPTR@GOTPAGE
Lloh35:
	ldr	x10, [x10, _VB2_USERPTR@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh37:
	adrp	x10, _VB2_DMABUF@GOTPAGE
Lloh38:
	ldr	x10, [x10, _VB2_DMABUF@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x24, x19
	str	w9, [x24, #88]!
	str	w8, [x19, #136]
Lloh40:
	adrp	x8, _histo_video_queue_qops@GOTPAGE
Lloh41:
	ldr	x8, [x8, _histo_video_queue_qops@GOTPAGEOFF]
	stp	x19, x21, [x19, #120]
Lloh42:
	adrp	x9, _vb2_vmalloc_memops@GOTPAGE
Lloh43:
	ldr	x9, [x9, _vb2_vmalloc_memops@GOTPAGEOFF]
Lloh44:
	adrp	x10, _V4L2_BUF_FLAG_TIMESTAMP_COPY@GOTPAGE
Lloh45:
	ldr	x10, [x10, _V4L2_BUF_FLAG_TIMESTAMP_COPY@GOTPAGEOFF]
	stp	x9, x8, [x19, #104]
Lloh46:
	ldr	w8, [x10]
	str	w8, [x19, #100]
	ldr	w8, [x20]
	stp	w23, w8, [x19, #92]
	mov	x0, x24
	bl	_vb2_queue_init
	tbnz	w0, #31, LBB0_6
; %bb.3:
	str	x24, [x19, #32]
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #-1
	bl	_video_register_device
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w23, #0
	b	LBB0_9
LBB0_5:
	mov	x23, x0
	b	LBB0_9
LBB0_6:
	mov	x23, x0
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x23, x0
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	ldr	w0, [x20]
	bl	_dev_err
	mov	x0, x19
	bl	_vsp1_histogram_cleanup
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_VFL_DIR_RX,4,2                 ; @VFL_DIR_RX
	.comm	_histo_ops,4,2                  ; @histo_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_STATISTICS,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_STATISTICS
	.comm	_histo_v4l2_fops,4,2            ; @histo_v4l2_fops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s histo"

	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.comm	_histo_v4l2_ioctl_ops,4,2       ; @histo_v4l2_ioctl_ops
	.comm	_V4L2_CAP_META_CAPTURE,4,2      ; @V4L2_CAP_META_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_BUF_TYPE_META_CAPTURE,4,2 ; @V4L2_BUF_TYPE_META_CAPTURE
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ; @VB2_USERPTR
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_histo_video_queue_qops,4,2     ; @histo_video_queue_qops
	.comm	_vb2_vmalloc_memops,4,2         ; @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_COPY,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_COPY
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize vb2 queue\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to register video device\n"

.subsections_via_symbols
