	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_set_selection
_isp_video_set_selection:               ## @isp_video_set_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r15), %ecx
	movl	%ecx, -52(%rbp)
	movl	8(%r15), %ecx
	movl	%ecx, -44(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movl	4(%r14), %eax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
	jmp	LBB0_4
LBB0_5:
	movl	4(%r14), %eax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
LBB0_6:
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_isp_video_remote_subdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %rbx
	movl	-36(%rbp), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %esi
	movq	_set_selection@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	movl	-52(%rbp), %eax
	movl	%eax, 4(%r15)
LBB0_9:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r12d
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmovel	%r12d, %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_set_selection,4,2              ## @set_selection
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_isp_video_set_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_set_selection
_isp_video_set_selection:               ; @isp_video_set_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	d0, [x19]
	str	d0, [sp, #8]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh2:
	ldr	w8, [x8]
	stp	w9, w8, [sp, #20]
	fmov	w8, s0
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.2:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.5:
	add	x1, sp, #4
	mov	x0, x20
	bl	_isp_video_remote_subdev
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	ldr	w8, [sp, #4]
	str	w8, [sp, #16]
	mov	x0, x20
	bl	_mutex_lock
	ldr	w1, [sp, #4]
Lloh7:
	adrp	x8, _set_selection@GOTPAGE
Lloh8:
	ldr	x8, [x8, _set_selection@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x3, #0
	bl	_v4l2_subdev_call
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbnz	w21, LBB0_8
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
LBB0_8:
Lloh10:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ENOTTY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENOTTY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmn	w21, w8
	csneg	w0, w21, w9, ne
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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	_set_selection,4,2              ; @set_selection
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_isp_video_set_selection
.subsections_via_symbols
