	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcmi_get_sensor_bounds
_dcmi_get_sensor_bounds:                ## @dcmi_get_sensor_bounds
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_V4L2_SEL_TGT_CROP_BOUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	16(%rdi), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_get_selection@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx
	movq	%rcx, 16(%r14)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r14)
LBB0_2:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_15
## %bb.3:
	movl	(%r15), %r8d
	testq	%r8, %r8
	je	LBB0_12
## %bb.4:
	movq	8(%r15), %r10
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rsi,8), %r11d
	movl	4(%r10,%rsi,8), %ebx
	movl	%ebx, %edx
	imull	%r11d, %edx
	cmpl	%edi, %edx
	cmoval	%ebx, %eax
	cmovbel	%edi, %edx
	cmoval	%r11d, %ecx
	movl	8(%r10,%rsi,8), %r11d
	movl	12(%r10,%rsi,8), %ebx
	movl	%ebx, %edi
	imull	%r11d, %edi
	cmpl	%edx, %edi
	cmoval	%ebx, %eax
	cmovbel	%edx, %edi
	cmoval	%r11d, %ecx
	addq	$2, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_7
LBB0_8:
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movl	(%r10,%rsi,8), %edx
	movl	4(%r10,%rsi,8), %ebx
	movl	%ebx, %esi
	imull	%edx, %esi
	cmpl	%edi, %esi
	cmoval	%ebx, %eax
	cmoval	%esi, %edi
	cmoval	%edx, %ecx
LBB0_10:
	testl	%edi, %edi
	je	LBB0_12
## %bb.11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movl	%ecx, (%r14)
	jmp	LBB0_14
LBB0_12:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dcmi_get_sensor_format
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
	movl	-28(%rbp), %eax
LBB0_14:
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SEL_TGT_CROP_BOUNDS,4,2   ## @V4L2_SEL_TGT_CROP_BOUNDS
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ## @pad
	.comm	_get_selection,4,2              ## @get_selection
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.no_dead_strip	_dcmi_get_sensor_bounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcmi_get_sensor_bounds
_dcmi_get_sensor_bounds:                ; @dcmi_get_sensor_bounds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
Lloh0:
	adrp	x8, _V4L2_SEL_TGT_CROP_BOUNDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SEL_TGT_CROP_BOUNDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
	ldr	w0, [x0, #16]
Lloh6:
	adrp	x8, _pad@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _get_selection@GOTPAGE
Lloh10:
	ldr	x8, [x8, _get_selection@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x4, sp, #16
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	q0, [sp, #16]
	str	q0, [x19]
	ldr	x8, [sp, #32]
	str	x8, [x19, #16]
LBB0_2:
Lloh12:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_11
; %bb.3:
	ldr	w10, [x20]
	cbz	w10, LBB0_8
; %bb.4:
	mov	w9, #0
	mov	w11, #0
	mov	w8, #0
	ldr	x12, [x20, #8]
	add	x12, x12, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w13, w14, [x12, #-4]
	mul	w15, w14, w13
	cmp	w15, w11
	csel	w8, w14, w8, hi
	csel	w11, w15, w11, hi
	csel	w9, w13, w9, hi
	add	x12, x12, #8
	subs	x10, x10, #1
	b.ne	LBB0_5
; %bb.6:
	cbz	w11, LBB0_8
; %bb.7:
	stp	xzr, xzr, [x19, #8]
	b	LBB0_10
LBB0_8:
	add	x1, sp, #8
	mov	x0, x20
	bl	_dcmi_get_sensor_format
	cbnz	w0, LBB0_11
; %bb.9:
	stp	xzr, xzr, [x19, #8]
	ldp	w9, w8, [sp, #8]
LBB0_10:
	stp	w9, w8, [x19]
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SEL_TGT_CROP_BOUNDS,4,2   ; @V4L2_SEL_TGT_CROP_BOUNDS
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ; @pad
	.comm	_get_selection,4,2              ; @get_selection
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.no_dead_strip	_dcmi_get_sensor_bounds
.subsections_via_symbols
