	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function stv680_set_size
LCPI0_0:
	.long	320                             ## 0x140
	.long	240                             ## 0xf0
	.space	4
	.space	4
LCPI0_1:
	.long	352                             ## 0x160
	.long	288                             ## 0x120
	.space	4
	.space	4
LCPI0_2:
	.long	176                             ## 0xb0
	.long	144                             ## 0x90
	.space	4
	.space	4
LCPI0_3:
	.long	160                             ## 0xa0
	.long	120                             ## 0x78
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stv680_set_size:                       ## @stv680_set_size
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	(%rdi), %r13d
	cmpl	%esi, 4(%rdi)
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	cmpl	%r14d, 8(%r15)
	je	LBB0_24
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %r12d
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_PDEBUG
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	orl	%ebx, %eax
	andl	$1, %eax
	jne	LBB0_5
## %bb.7:
	movq	12(%r15), %xmm0                 ## xmm0 = mem[0],zero
	movdqa	%xmm0, %xmm1
	psrld	$31, %xmm1
	paddd	%xmm0, %xmm1
	psrad	$1, %xmm1
	movd	%xmm1, %eax
	cmpl	%ebx, %eax
	jg	LBB0_21
## %bb.8:
	pextrd	$1, %xmm1, %eax
	cmpl	%r14d, %eax
	jg	LBB0_21
## %bb.9:
	leal	-158(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_12
## %bb.10:
	cmpl	$1, 20(%r15)
	jne	LBB0_25
## %bb.11:
	movdqa	LCPI0_3(%rip), %xmm1            ## xmm1 = <160,120,u,u>
	jmp	LBB0_21
LBB0_5:
	movl	4(%r15), %r8d
	movl	8(%r15), %r9d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_12:
	leal	-172(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.13:
	cmpl	$1, 24(%r15)
	jne	LBB0_25
## %bb.14:
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = <176,144,u,u>
	jmp	LBB0_21
LBB0_15:
	leal	-318(%rbx), %eax
	cmpl	$32, %eax
	ja	LBB0_18
## %bb.16:
	cmpl	$1, 20(%r15)
	jne	LBB0_18
## %bb.17:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <320,240,u,u>
	jmp	LBB0_21
LBB0_18:
	leal	-350(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_25
## %bb.19:
	cmpl	$1, 24(%r15)
	jne	LBB0_25
## %bb.20:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <352,288,u,u>
LBB0_21:
	testl	%r13d, %r13d
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	callq	_stv680_stop_stream
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	movd	%xmm0, %edx
	movd	%xmm0, 4(%r15)
	pextrd	$1, %xmm0, %ecx
	pextrd	$1, %xmm0, 8(%r15)
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r15, %rdi
	callq	_stv680_start_stream
	jmp	LBB0_24
LBB0_23:
	movd	%xmm1, %edx
	movd	%xmm1, 4(%r15)
	pextrd	$1, %xmm1, %ecx
	pextrd	$1, %xmm1, 8(%r15)
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_24
LBB0_25:
	movl	4(%r15), %r8d
	movl	8(%r15), %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %r12d
LBB0_6:
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_24:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STV(i): size request for %i x %i"

L_.str.1:                               ## @.str.1
	.asciz	"STV(e): set_size error: request: v.width = %i, v.height = %i  actual: stv.width = %i, stv.height = %i"

L_.str.2:                               ## @.str.2
	.asciz	"STV(e): request for non-supported size: request: v.width = %i, v.height = %i  actual: stv.width = %i, stv.height = %i"

L_.str.3:                               ## @.str.3
	.asciz	"STV(i): size set to %i x %i"

	.no_dead_strip	_stv680_set_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv680_set_size
_stv680_set_size:                       ; @stv680_set_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w24, w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.eq	LBB0_13
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	mov	x3, x20
	bl	_PDEBUG
	cbz	w21, LBB0_8
; %bb.3:
	cbz	w20, LBB0_8
; %bb.4:
	orr	w8, w20, w21
	tbnz	w8, #0, LBB0_8
; %bb.5:
	ldp	w8, w9, [x19, #12]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w23, w8, #1
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w22, w8, #1
	cmp	w23, w21
	ccmp	w22, w20, #0, le
	b.le	LBB0_9
LBB0_6:
	cbz	w24, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_stv680_stop_stream
	stp	w23, w22, [x19, #4]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x22
	bl	_PDEBUG
	mov	x0, x19
	bl	_stv680_start_stream
	b	LBB0_13
LBB0_8:
	ldp	w8, w9, [x19, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_9:
	sub	w8, w21, #158
	cmp	w8, #8
	b.hi	LBB0_14
; %bb.10:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.11:
	mov	w22, #120
	mov	w23, #160
	b	LBB0_6
LBB0_12:
	stp	w23, w22, [x19, #4]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x22
	bl	_PDEBUG
LBB0_13:
	mov	w19, #0
	b	LBB0_25
LBB0_14:
	sub	w8, w21, #172
	cmp	w8, #8
	b.hi	LBB0_17
; %bb.15:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.16:
	mov	w22, #144
	mov	w23, #176
	b	LBB0_6
LBB0_17:
	sub	w8, w21, #318
	cmp	w8, #32
	b.hi	LBB0_20
; %bb.18:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.19:
	mov	w22, #240
	mov	w23, #320
	b	LBB0_6
LBB0_20:
	sub	w8, w21, #350
	cmp	w8, #8
	b.hi	LBB0_23
; %bb.21:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.22:
	mov	w22, #288
	mov	w23, #352
	b	LBB0_6
LBB0_23:
	ldp	w8, w9, [x19, #4]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_24:
	stp	x8, x9, [sp]
	mov	w19, #1
	mov	w0, #1
	mov	x2, x21
	mov	x3, x20
	bl	_PDEBUG
LBB0_25:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STV(i): size request for %i x %i"

l_.str.1:                               ; @.str.1
	.asciz	"STV(e): set_size error: request: v.width = %i, v.height = %i  actual: stv.width = %i, stv.height = %i"

l_.str.2:                               ; @.str.2
	.asciz	"STV(e): request for non-supported size: request: v.width = %i, v.height = %i  actual: stv.width = %i, stv.height = %i"

l_.str.3:                               ; @.str.3
	.asciz	"STV(i): size set to %i x %i"

	.no_dead_strip	_stv680_set_size
.subsections_via_symbols
