	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_sensor_410
_config_sensor_410:                     ## @config_sensor_410
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_STV_IMAGE_CIF_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	cmovll	%eax, %ebx
	movq	_STV_IMAGE_CIF_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	cmovll	%eax, %r13d
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_cpia2_match_video_size
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_DBG
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DBG
	testl	%r15d, %r15d
	jns	LBB0_1
## %bb.3:
	leaq	L_.str.6(%rip), %rdi
	callq	_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_config_sensor_410.cold.1
	xorl	%eax, %eax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function config_sensor_410.cold.1
_config_sensor_410.cold.1:              ## @config_sensor_410.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_set_vw_size
	movl	(%rbx), %r14d
	movl	4(%rbx), %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DBG
	cmpl	$241, %ebx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rcx
	cmovgeq	%rcx, %rax
	cmpl	$321, %r14d                     ## imm = 0x141
	cmovgeq	%rcx, %rax
	cmpl	$145, %ebx
	leaq	L_.str.3(%rip), %rdi
	cmovgeq	%rax, %rdi
	cmpl	$177, %r14d
	cmovgeq	%rax, %rdi
	xorl	%eax, %eax
	callq	_DBG
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_STV_IMAGE_CIF_COLS,4,2         ## @STV_IMAGE_CIF_COLS
	.comm	_STV_IMAGE_CIF_ROWS,4,2         ## @STV_IMAGE_CIF_ROWS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Config 410: width = %d, height = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Image size returned is %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"After set_vw_size(), width = %d, height = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"image type = VIDEOSIZE_QCIF\n"

	.comm	_VIDEOSIZE_QCIF,4,2             ## @VIDEOSIZE_QCIF
L_.str.4:                               ## @.str.4
	.asciz	"image type = VIDEOSIZE_QVGA\n"

	.comm	_VIDEOSIZE_QVGA,4,2             ## @VIDEOSIZE_QVGA
L_.str.5:                               ## @.str.5
	.asciz	"image type = VIDEOSIZE_CIF\n"

	.comm	_VIDEOSIZE_CIF,4,2              ## @VIDEOSIZE_CIF
L_.str.6:                               ## @.str.6
	.asciz	"ConfigSensor410 failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAMERAACCESS_TYPE_RANDOM,4,2   ## @CAMERAACCESS_TYPE_RANDOM
	.comm	_CAMERAACCESS_VC,4,2            ## @CAMERAACCESS_VC
	.comm	_TRANSFER_WRITE,4,2             ## @TRANSFER_WRITE
	.comm	_CPIA2_VC_VC_FORMAT,4,2         ## @CPIA2_VC_VC_FORMAT
	.comm	_CPIA2_VC_VC_FORMAT_UFIRST,4,2  ## @CPIA2_VC_VC_FORMAT_UFIRST
	.comm	_CPIA2_VC_VC_FORMAT_SHORTLINE,4,2 ## @CPIA2_VC_VC_FORMAT_SHORTLINE
	.comm	_CPIA2_VC_VC_CLOCKS,4,2         ## @CPIA2_VC_VC_CLOCKS
	.comm	_DEVICE_STV_672,8,3             ## @DEVICE_STV_672
	.comm	_CPIA2_VC_VC_672_CLOCKS_CIF_DIV_BY_3,4,2 ## @CPIA2_VC_VC_672_CLOCKS_CIF_DIV_BY_3
	.comm	_CPIA2_VC_VC_672_CLOCKS_SCALING,4,2 ## @CPIA2_VC_VC_672_CLOCKS_SCALING
	.comm	_CPIA2_VC_VC_CLOCKS_LOGDIV2,4,2 ## @CPIA2_VC_VC_CLOCKS_LOGDIV2
	.comm	_CPIA2_VC_VC_676_CLOCKS_CIF_DIV_BY_3,4,2 ## @CPIA2_VC_VC_676_CLOCKS_CIF_DIV_BY_3
	.comm	_CPIA2_VC_VC_CLOCKS_LOGDIV0,4,2 ## @CPIA2_VC_VC_CLOCKS_LOGDIV0
	.comm	_CPIA2_VC_VC_676_CLOCKS_SCALING,4,2 ## @CPIA2_VC_VC_676_CLOCKS_SCALING
	.comm	_CPIA2_VC_VC_IHSIZE_LO,4,2      ## @CPIA2_VC_VC_IHSIZE_LO
	.comm	_STV_IMAGE_QCIF_COLS,4,2        ## @STV_IMAGE_QCIF_COLS
	.comm	_CPIA2_VC_VC_XLIM_HI,4,2        ## @CPIA2_VC_VC_XLIM_HI
	.comm	_CPIA2_VC_VC_XLIM_LO,4,2        ## @CPIA2_VC_VC_XLIM_LO
	.comm	_CPIA2_VC_VC_YLIM_HI,4,2        ## @CPIA2_VC_VC_YLIM_HI
	.comm	_CPIA2_VC_VC_YLIM_LO,4,2        ## @CPIA2_VC_VC_YLIM_LO
	.comm	_CPIA2_VC_VC_OHSIZE,4,2         ## @CPIA2_VC_VC_OHSIZE
	.comm	_CPIA2_VC_VC_OVSIZE,4,2         ## @CPIA2_VC_VC_OVSIZE
	.comm	_CPIA2_VC_VC_HCROP,4,2          ## @CPIA2_VC_VC_HCROP
	.comm	_CPIA2_VC_VC_VCROP,4,2          ## @CPIA2_VC_VC_VCROP
	.comm	_STV_IMAGE_QCIF_ROWS,4,2        ## @STV_IMAGE_QCIF_ROWS
	.comm	_CPIA2_VC_VC_HPHASE,4,2         ## @CPIA2_VC_VC_HPHASE
	.comm	_CPIA2_VC_VC_VPHASE,4,2         ## @CPIA2_VC_VC_VPHASE
	.comm	_CPIA2_VC_VC_HISPAN,4,2         ## @CPIA2_VC_VC_HISPAN
	.comm	_CPIA2_VC_VC_VISPAN,4,2         ## @CPIA2_VC_VC_VISPAN
	.comm	_CPIA2_VC_VC_HICROP,4,2         ## @CPIA2_VC_VC_HICROP
	.comm	_CPIA2_VC_VC_VICROP,4,2         ## @CPIA2_VC_VC_VICROP
	.comm	_CPIA2_VC_VC_HFRACT,4,2         ## @CPIA2_VC_VC_HFRACT
	.comm	_CPIA2_VC_VC_VFRACT,4,2         ## @CPIA2_VC_VC_VFRACT
	.no_dead_strip	_config_sensor_410
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_sensor_410
_config_sensor_410:                     ; @config_sensor_410
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _STV_IMAGE_CIF_COLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV_IMAGE_CIF_COLS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	csel	w21, w8, w1, lt
Lloh3:
	adrp	x8, _STV_IMAGE_CIF_ROWS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STV_IMAGE_CIF_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	csel	w22, w8, w2, lt
	mov	x0, x21
	mov	x1, x22
	bl	_cpia2_match_video_size
	mov	x20, x0
	stp	x21, x22, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	tbz	w20, #31, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.6@PAGE
Lloh11:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ERR
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_config_sensor_410.cold.1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function config_sensor_410.cold.1
_config_sensor_410.cold.1:              ; @config_sensor_410.cold.1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_set_vw_size
	ldp	w20, w19, [x19]
	stp	x20, x19, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	cmp	w19, #241
	mov	w8, #321
	ccmp	w20, w8, #0, lt
Lloh17:
	adrp	x8, l_.str.5@PAGE
Lloh18:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh19:
	adrp	x9, l_.str.4@PAGE
Lloh20:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x8, x9, x8, lt
	cmp	w19, #145
	mov	w9, #177
	ccmp	w20, w9, #0, lt
Lloh21:
	adrp	x9, l_.str.3@PAGE
Lloh22:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x0, x9, x8, lt
	bl	_DBG
	brk	#0x1
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STV_IMAGE_CIF_COLS,4,2         ; @STV_IMAGE_CIF_COLS
	.comm	_STV_IMAGE_CIF_ROWS,4,2         ; @STV_IMAGE_CIF_ROWS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Config 410: width = %d, height = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Image size returned is %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"After set_vw_size(), width = %d, height = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"image type = VIDEOSIZE_QCIF\n"

	.comm	_VIDEOSIZE_QCIF,4,2             ; @VIDEOSIZE_QCIF
l_.str.4:                               ; @.str.4
	.asciz	"image type = VIDEOSIZE_QVGA\n"

	.comm	_VIDEOSIZE_QVGA,4,2             ; @VIDEOSIZE_QVGA
l_.str.5:                               ; @.str.5
	.asciz	"image type = VIDEOSIZE_CIF\n"

	.comm	_VIDEOSIZE_CIF,4,2              ; @VIDEOSIZE_CIF
l_.str.6:                               ; @.str.6
	.asciz	"ConfigSensor410 failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAMERAACCESS_TYPE_RANDOM,4,2   ; @CAMERAACCESS_TYPE_RANDOM
	.comm	_CAMERAACCESS_VC,4,2            ; @CAMERAACCESS_VC
	.comm	_TRANSFER_WRITE,4,2             ; @TRANSFER_WRITE
	.comm	_CPIA2_VC_VC_FORMAT,4,2         ; @CPIA2_VC_VC_FORMAT
	.comm	_CPIA2_VC_VC_FORMAT_UFIRST,4,2  ; @CPIA2_VC_VC_FORMAT_UFIRST
	.comm	_CPIA2_VC_VC_FORMAT_SHORTLINE,4,2 ; @CPIA2_VC_VC_FORMAT_SHORTLINE
	.comm	_CPIA2_VC_VC_CLOCKS,4,2         ; @CPIA2_VC_VC_CLOCKS
	.comm	_DEVICE_STV_672,8,3             ; @DEVICE_STV_672
	.comm	_CPIA2_VC_VC_672_CLOCKS_CIF_DIV_BY_3,4,2 ; @CPIA2_VC_VC_672_CLOCKS_CIF_DIV_BY_3
	.comm	_CPIA2_VC_VC_672_CLOCKS_SCALING,4,2 ; @CPIA2_VC_VC_672_CLOCKS_SCALING
	.comm	_CPIA2_VC_VC_CLOCKS_LOGDIV2,4,2 ; @CPIA2_VC_VC_CLOCKS_LOGDIV2
	.comm	_CPIA2_VC_VC_676_CLOCKS_CIF_DIV_BY_3,4,2 ; @CPIA2_VC_VC_676_CLOCKS_CIF_DIV_BY_3
	.comm	_CPIA2_VC_VC_CLOCKS_LOGDIV0,4,2 ; @CPIA2_VC_VC_CLOCKS_LOGDIV0
	.comm	_CPIA2_VC_VC_676_CLOCKS_SCALING,4,2 ; @CPIA2_VC_VC_676_CLOCKS_SCALING
	.comm	_CPIA2_VC_VC_IHSIZE_LO,4,2      ; @CPIA2_VC_VC_IHSIZE_LO
	.comm	_STV_IMAGE_QCIF_COLS,4,2        ; @STV_IMAGE_QCIF_COLS
	.comm	_CPIA2_VC_VC_XLIM_HI,4,2        ; @CPIA2_VC_VC_XLIM_HI
	.comm	_CPIA2_VC_VC_XLIM_LO,4,2        ; @CPIA2_VC_VC_XLIM_LO
	.comm	_CPIA2_VC_VC_YLIM_HI,4,2        ; @CPIA2_VC_VC_YLIM_HI
	.comm	_CPIA2_VC_VC_YLIM_LO,4,2        ; @CPIA2_VC_VC_YLIM_LO
	.comm	_CPIA2_VC_VC_OHSIZE,4,2         ; @CPIA2_VC_VC_OHSIZE
	.comm	_CPIA2_VC_VC_OVSIZE,4,2         ; @CPIA2_VC_VC_OVSIZE
	.comm	_CPIA2_VC_VC_HCROP,4,2          ; @CPIA2_VC_VC_HCROP
	.comm	_CPIA2_VC_VC_VCROP,4,2          ; @CPIA2_VC_VC_VCROP
	.comm	_STV_IMAGE_QCIF_ROWS,4,2        ; @STV_IMAGE_QCIF_ROWS
	.comm	_CPIA2_VC_VC_HPHASE,4,2         ; @CPIA2_VC_VC_HPHASE
	.comm	_CPIA2_VC_VC_VPHASE,4,2         ; @CPIA2_VC_VC_VPHASE
	.comm	_CPIA2_VC_VC_HISPAN,4,2         ; @CPIA2_VC_VC_HISPAN
	.comm	_CPIA2_VC_VC_VISPAN,4,2         ; @CPIA2_VC_VC_VISPAN
	.comm	_CPIA2_VC_VC_HICROP,4,2         ; @CPIA2_VC_VC_HICROP
	.comm	_CPIA2_VC_VC_VICROP,4,2         ; @CPIA2_VC_VC_VICROP
	.comm	_CPIA2_VC_VC_HFRACT,4,2         ; @CPIA2_VC_VC_HFRACT
	.comm	_CPIA2_VC_VC_VFRACT,4,2         ; @CPIA2_VC_VC_VFRACT
	.no_dead_strip	_config_sensor_410
.subsections_via_symbols
