	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_get_selection
_isp_video_get_selection:               ## @isp_video_get_selection
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movl	(%r14), %ecx
	movl	%ecx, -96(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%edx, -84(%rbp)
	leal	-131(%rcx), %edx
	cmpl	$3, %edx
	jb	LBB0_5
## %bb.1:
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_4
## %bb.2:
	movl	(%rax), %ecx
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
	jmp	LBB0_4
LBB0_5:
	movl	(%rax), %ecx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_4
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_isp_video_remote_subdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	movq	%rsi, -80(%rbp)
	movq	_get_selection@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %r8
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax
	movq	%rax, 24(%r14)
	movups	-72(%rbp), %xmm0
	movups	%xmm0, 8(%r14)
LBB0_9:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	%ebx, %eax
	jne	LBB0_13
## %bb.10:
	movq	-48(%rbp), %rsi
	movq	%rsi, -128(%rbp)
	movl	(%r12), %eax
	movl	%eax, -132(%rbp)
	movq	_get_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-144(%rbp), %r8
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movl	-136(%rbp), %eax
	movl	%eax, 12(%r14)
	movl	-140(%rbp), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_13
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	movl	(%r13), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_get_selection,4,2              ## @get_selection
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_get_fmt,4,2                    ## @get_fmt
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_isp_video_get_selection
.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_selection
_isp_video_get_selection:               ; @isp_video_get_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x2
	bl	_video_drvdata
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh0:
	adrp	x21, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w9, [x21]
	str	w8, [sp, #16]
	str	w9, [sp, #28]
	sub	w9, w8, #131
	cmp	w9, #3
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_11
; %bb.2:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x0]
Lloh4:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.5:
	add	x1, sp, #8
	bl	_isp_video_remote_subdev
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	ldr	x1, [sp, #8]
	str	x1, [sp, #32]
Lloh6:
	adrp	x8, _get_selection@GOTPAGE
Lloh7:
	ldr	x8, [x8, _get_selection@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, sp, #16
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_8
; %bb.7:
	ldur	q0, [sp, #40]
	stur	q0, [x19, #8]
	ldr	x8, [sp, #56]
	str	x8, [x19, #24]
LBB0_8:
Lloh9:
	adrp	x22, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ENOIOCTLCMD@GOTPAGEOFF]
	ldr	w8, [x22]
	cmn	w0, w8
	b.ne	LBB0_12
; %bb.9:
	ldr	x1, [sp, #8]
	str	x1, [sp, #80]
	ldr	w8, [x21]
	str	w8, [sp, #76]
Lloh11:
	adrp	x8, _get_fmt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _get_fmt@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x4, sp, #64
	mov	x0, x20
	mov	x3, #0
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_13
; %bb.10:
	mov	w0, #0
	stp	xzr, xzr, [x19, #16]
	ldur	d0, [sp, #68]
	str	d0, [x19, #8]
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_13:
	ldr	w8, [x22]
Lloh17:
	adrp	x9, _ENOTTY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENOTTY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmn	w0, w8
	csneg	w0, w0, w9, ne
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_get_selection,4,2              ; @get_selection
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_get_fmt,4,2                    ; @get_fmt
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_isp_video_get_selection
.subsections_via_symbols
