	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx3_camera_set_crop
_mx3_camera_set_crop:                   ## @mx3_camera_set_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	20(%rsi), %r15
	movl	16(%rdi), %edi
	callq	_to_soc_camera_host
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_soc_camera_to_subdev
	movq	%rax, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	32(%rbx), %rdi
	leaq	28(%rbx), %rsi
	xorl	%edx, %edx
	movl	$2, %ecx
	movl	$4096, %r8d                     ## imm = 0x1000
	callq	_soc_camera_limit_side
	leaq	24(%rbx), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$2, %ecx
	movl	$4096, %r8d                     ## imm = 0x1000
	callq	_soc_camera_limit_side
	movq	_video@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_s_crop@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	(%r14), %esi
	movq	_g_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rcx
	movq	%r13, %rdi
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movl	-80(%rbp), %edx
	testb	$7, %dl
	je	LBB0_5
## %bb.3:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_stride_align
	movl	(%r14), %esi
	movq	_s_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movl	-80(%rbp), %edx
LBB0_5:
	cmpl	(%r12), %edx
	jne	LBB0_7
## %bb.6:
	movq	-72(%rbp), %rcx
	cmpq	8(%r12), %rcx
	je	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_channel_change_requested
	testq	%rax, %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_acquire_dma_channel
	testl	%eax, %eax
	js	LBB0_11
LBB0_9:
	movl	-80(%rbp), %esi
	movq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_configure_geometry
	movl	-80(%rbp), %edx
	movq	-72(%rbp), %rcx
LBB0_10:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	-80(%rbp), %eax
	movl	%eax, (%r12)
	movq	-72(%rbp), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_video,4,2                      ## @video
	.comm	_s_crop,4,2                     ## @s_crop
	.comm	_g_fmt,4,2                      ## @g_fmt
	.comm	_s_fmt,4,2                      ## @s_fmt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor cropped %dx%d\n"

	.no_dead_strip	_mx3_camera_set_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx3_camera_set_crop
_mx3_camera_set_crop:                   ; @mx3_camera_set_crop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x1
	mov	x19, x0
	add	x21, x1, #20
	ldr	w0, [x0, #16]
	bl	_to_soc_camera_host
	ldr	x20, [x0]
	mov	x0, x19
	bl	_soc_camera_to_subdev
	mov	x23, x0
	movi.2d	v0, #0000000000000000
	str	xzr, [sp, #32]
	stp	q0, q0, [sp]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x0, x22, #32
	add	x1, x22, #28
	mov	w2, #0
	mov	w3, #2
	mov	w4, #4096
	bl	_soc_camera_limit_side
	add	x0, x22, #24
	mov	x1, x21
	mov	w2, #0
	mov	w3, #2
	mov	w4, #4096
	bl	_soc_camera_limit_side
Lloh3:
	adrp	x24, _video@GOTPAGE
Lloh4:
	ldr	x24, [x24, _video@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _s_crop@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_crop@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x3, x22
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w1, [x24]
Lloh8:
	adrp	x8, _g_fmt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_fmt@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x23
	bl	_v4l2_subdev_call
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.2:
	ldr	w2, [sp]
	tst	w2, #0x7
	b.eq	LBB0_5
; %bb.3:
	mov	x0, sp
	bl	_stride_align
	ldr	w1, [x24]
Lloh11:
	adrp	x8, _s_fmt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_fmt@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x23
	bl	_v4l2_subdev_call
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	w2, [sp]
LBB0_5:
	ldr	w8, [x19]
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x3, [sp, #8]
	ldr	x8, [x19, #8]
	cmp	x3, x8
	b.eq	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_channel_change_requested
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_acquire_dma_channel
	tbnz	w0, #31, LBB0_11
LBB0_9:
	ldr	w1, [sp]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_configure_geometry
	ldr	w2, [sp]
	ldr	x3, [sp, #8]
LBB0_10:
	ldr	w0, [x19, #16]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [sp]
	str	w8, [x19]
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_11:
	mov	x22, x0
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_video,4,2                      ; @video
	.comm	_s_crop,4,2                     ; @s_crop
	.comm	_g_fmt,4,2                      ; @g_fmt
	.comm	_s_fmt,4,2                      ; @s_fmt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor cropped %dx%d\n"

	.no_dead_strip	_mx3_camera_set_crop
.subsections_via_symbols
