	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_get_graph_data
_isp_video_get_graph_data:              ## @isp_video_get_graph_data
	.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
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_media_graph_walk_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_18
LBB0_2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %r13
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_media_graph_walk_start
	movq	%rbx, %rdi
	callq	_media_graph_walk_next
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.3:
	movq	%rax, %r15
	leaq	16(%r14), %rbx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_media_graph_walk_next
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_media_entity_enum_set
	testq	%r12, %r12
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r13, %r15
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_is_media_entity_v4l2_video_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_media_entity_to_video_device
	movl	%eax, %edi
	callq	_to_isp_video
	movq	(%rax), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rdx), %rcx
	movl	$0, %r12d
	cmovneq	%rax, %r12
	jmp	LBB0_5
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	leaq	-48(%rbp), %rdi
	callq	_media_graph_walk_cleanup
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, 8(%rax)
	movq	%rdx, (%rax)
	jmp	LBB0_16
LBB0_14:
	testq	%r12, %r12
	je	LBB0_17
## %bb.15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, 8(%rax)
	movq	%r12, (%rax)
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_17:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_isp_video_get_graph_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_get_graph_data
_isp_video_get_graph_data:              ; @isp_video_get_graph_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x22, x0
	ldr	x21, [x22, #8]!
	mov	x0, x21
	bl	_mutex_lock
	add	x0, sp, #8
	mov	x1, x21
	bl	_media_graph_walk_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_16
LBB0_2:
	add	x0, sp, #8
	mov	x1, x22
	bl	_media_graph_walk_start
	add	x0, sp, #8
	bl	_media_graph_walk_next
	cbz	x0, LBB0_10
; %bb.3:
	mov	x24, x0
	mov	x25, #0
	add	x23, x19, #16
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_media_graph_walk_next
	mov	x24, x0
	cbz	x0, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_media_entity_enum_set
	cbnz	x25, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, x22
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_is_media_entity_v4l2_video_device
	cbz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_media_entity_to_video_device
	bl	_to_isp_video
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
	csel	x25, xzr, x0, eq
	b	LBB0_5
LBB0_10:
	mov	x25, #0
LBB0_11:
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, sp, #8
	bl	_media_graph_walk_cleanup
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w23, #0
	stp	x20, x25, [x19]
	b	LBB0_16
LBB0_13:
	cbz	x25, LBB0_15
; %bb.14:
	mov	w23, #0
	stp	x25, x20, [x19]
	b	LBB0_16
LBB0_15:
Lloh3:
	adrp	x8, _EPIPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_isp_video_get_graph_data
.subsections_via_symbols
