	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_s_crop
_client_s_crop:                         ## @client_s_crop
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	24(%rdx), %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_crop@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_v4l2_subdev_call
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_client_g_rect
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	24(%r14), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edx
	movl	28(%r15), %ecx
	movq	32(%r15), %r8
	movq	40(%r15), %r9
	movl	24(%r14), %eax
	movl	28(%r14), %esi
	movups	32(%r14), %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%esi, 8(%rsp)
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_geo
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_cropcap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-152(%rbp), %rcx
	movq	%r12, %rdi
	callq	_v4l2_subdev_call
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_25
## %bb.5:
	movq	%r14, %rbx
	addq	$28, %r14
	leaq	32(%rbx), %rdi
	addq	$40, %rbx
	movq	-144(%rbp), %rdx
	movl	-152(%rbp), %r8d
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, %ecx
	callq	_soc_camera_limit_side
	movq	-136(%rbp), %rdx
	movl	-148(%rbp), %r8d
	movq	%rbx, %rdi
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rsi
	movl	$4, %ecx
	callq	_soc_camera_limit_side
	movl	24(%r15), %edi
	movl	$2, %esi
	callq	_max
	movl	%eax, %r14d
	movl	28(%r15), %edi
	movl	$2, %esi
	callq	_max
	testl	%r13d, %r13d
	jne	LBB0_22
## %bb.6:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_crop@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_client_g_rect
	movl	%eax, %r13d
	movl	24(%r15), %ecx
	movl	28(%r15), %r8d
	movq	32(%r15), %r9
	movq	40(%r15), %rax
	movq	%rax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_geo
	testl	%r13d, %r13d
	jne	LBB0_21
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_is_smaller
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_is_inside
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r14d, -152(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%edi, -148(%rbp)
	jbe	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%r14d, %r14d
	addl	%edi, %edi
	movl	%r14d, 24(%r15)
	movl	%edi, 28(%r15)
	movq	32(%r15), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-144(%rbp), %rax
	movq	%rax, 32(%r15)
	movq	(%rdx), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %esi
	addq	%rax, %rsi
	movl	(%rbx), %edx
	addq	%rcx, %rdx
	cmpq	%rdx, %rsi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	subl	%eax, %edx
	movl	%edx, (%r12)
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	40(%r15), %rax
	movq	(%rsi), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-136(%rbp), %rax
	movq	%rax, 40(%r15)
	movq	(%rsi), %rcx
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %esi
	addq	%rax, %rsi
	movl	(%rbx), %edx
	addq	%rcx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	subl	%eax, %edx
	movl	%edx, 28(%r15)
	jmp	LBB0_20
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_25
LBB0_3:
	movl	24(%r14), %edx
	movl	28(%r14), %ecx
	movq	32(%r14), %r8
	movq	40(%r14), %r9
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_9:
	xorl	%r13d, %r13d
LBB0_21:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_22:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_is_smaller
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_is_inside
	testq	%rax, %rax
	je	LBB0_25
LBB0_24:
	movq	-136(%rbp), %rax
	movq	%rax, 16(%r14)
	movups	-152(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_crop@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_client_g_rect
	movl	%eax, %r13d
	movl	24(%r15), %ecx
	movl	28(%r15), %r8d
	movq	32(%r15), %r9
	movq	40(%r15), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_geo
LBB0_25:
	movl	%r13d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_video,4,2                      ## @video
	.comm	_s_crop,4,2                     ## @s_crop
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Camera S_CROP successful for %ux%u@%u:%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fix camera S_CROP for %ux%u@%u:%u to %ux%u@%u:%u\n"

	.comm	_cropcap,4,2                    ## @cropcap
L_.str.2:                               ## @.str.2
	.asciz	"Camera S_CROP %d for %ux%u@%u:%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"Camera S_CROP %d for max %ux%u@%u:%u\n"

	.no_dead_strip	_client_s_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_s_crop
_client_s_crop:                         ; @client_s_crop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	add	x21, x2, #24
	ldr	x8, [x0]
	ldr	x27, [x8]
Lloh0:
	adrp	x8, _video@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _s_crop@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_crop@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x23
	bl	_v4l2_subdev_call
	mov	x0, x22
	mov	x1, x21
	bl	_client_g_rect
	tbnz	w0, #31, LBB0_17
; %bb.1:
	add	x24, x23, #24
	mov	x0, x24
	mov	x1, x21
	mov	w2, #24
	bl	_memcmp
	cbz	w0, LBB0_18
; %bb.2:
	ldp	w2, w3, [x20, #24]
	ldp	x4, x5, [x20, #32]
	ldr	x8, [x23, #40]!
	ldur	w6, [x23, #-16]
	mov	x25, x23
	ldr	w9, [x25, #-12]!
	mov	x26, x23
	ldr	x10, [x26, #-8]!
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x27
	bl	_dev_geo
Lloh8:
	adrp	x8, _video@GOTPAGE
Lloh9:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _cropcap@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cropcap@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #32
	mov	x0, x22
	bl	_v4l2_subdev_call
	mov	x19, x0
	tbnz	w0, #31, LBB0_23
; %bb.3:
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x2, [sp, #40]
	ldr	w4, [sp, #32]
	mov	x0, x26
	mov	x1, x24
	mov	w3, #2
	bl	_soc_camera_limit_side
	ldr	x2, [sp, #48]
	ldr	w4, [sp, #36]
	mov	x0, x23
	mov	x1, x25
	mov	w3, #4
	bl	_soc_camera_limit_side
	ldr	w0, [x20, #24]
	mov	w1, #2
	bl	_max
	mov	x27, x0
	ldr	w0, [x20, #28]
	mov	w1, #2
	bl	_max
	cbnz	w19, LBB0_20
; %bb.4:
	mov	x28, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _video@GOTPAGE
Lloh15:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _s_crop@GOTPAGE
Lloh18:
	ldr	x8, [x8, _s_crop@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x20
	bl	_v4l2_subdev_call
	mov	x0, x22
	mov	x1, x21
	bl	_client_g_rect
	mov	x19, x0
	ldp	w3, w4, [x20, #24]
	ldp	x5, x6, [x20, #32]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_geo
	cbnz	w19, LBB0_20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_is_smaller
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_is_inside
	cbz	x0, LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w9, [sp, #32]
	cmp	w8, w27
	ccmp	w9, w28, #2, ls
	b.ls	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w27, w27, #1
	lsl	w28, w28, #1
	stp	w27, w28, [x20, #24]
	ldr	x8, [x20, #32]
	ldr	x9, [x26]
	cmp	x8, x9
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #40]
	str	x8, [x20, #32]
	ldr	x9, [x26]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x8, w27, uxtw
	ldr	w11, [x24]
	add	x9, x9, x11
	cmp	x10, x9
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w9, w8
	str	w8, [x21]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #40]
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #48]
	str	x8, [x20, #40]
	ldr	x9, [x23]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x8, w28, uxtw
	ldr	w11, [x25]
	add	x9, x9, x11
	cmp	x10, x9
	b.ge	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w9, w8
	str	w8, [x20, #28]
	b	LBB0_5
LBB0_17:
	mov	x19, x0
	b	LBB0_23
LBB0_18:
	ldp	w2, w3, [x23, #24]
	ldp	x4, x5, [x23, #32]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x27
	bl	_dev_dbg
	mov	w19, #0
	b	LBB0_23
LBB0_19:
	mov	w19, #0
LBB0_20:
	mov	x0, x21
	mov	x1, x24
	bl	_is_smaller
	cbnz	x0, LBB0_22
; %bb.21:
	mov	x0, x21
	mov	x1, x24
	bl	_is_inside
	cbz	x0, LBB0_23
LBB0_22:
	ldr	q0, [sp, #32]
	str	q0, [x21]
	ldr	x8, [sp, #48]
	str	x8, [x21, #16]
Lloh24:
	adrp	x8, _video@GOTPAGE
Lloh25:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _s_crop@GOTPAGE
Lloh28:
	ldr	x8, [x8, _s_crop@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x20
	bl	_v4l2_subdev_call
	mov	x0, x22
	mov	x1, x21
	bl	_client_g_rect
	mov	x19, x0
	ldp	w3, w4, [x20, #24]
	ldp	x5, x6, [x20, #32]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x19
	bl	_dev_geo
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_video,4,2                      ; @video
	.comm	_s_crop,4,2                     ; @s_crop
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Camera S_CROP successful for %ux%u@%u:%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fix camera S_CROP for %ux%u@%u:%u to %ux%u@%u:%u\n"

	.comm	_cropcap,4,2                    ; @cropcap
l_.str.2:                               ; @.str.2
	.asciz	"Camera S_CROP %d for %ux%u@%u:%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"Camera S_CROP %d for max %ux%u@%u:%u\n"

	.no_dead_strip	_client_s_crop
.subsections_via_symbols
