	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pb0100_start
_pb0100_start:                          ## @pb0100_start
	.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
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %r13d
	movl	16(%rdi), %edi
	movl	12(%r12), %esi
	callq	_usb_ifnum_to_if
	movl	8(%r12), %esi
	movq	%rax, %rdi
	callq	_usb_altnum_to_altsetting
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	(%r12), %rcx
	movq	32(%r12), %rdx
	movq	(%rdx), %rdx
	xorl	%edi, %edi
	cmpl	(%rdx,%rcx,4), %eax
	setl	%dil
	movq	_PB_ROWSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	$5, %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_stv06xx_write_sensor
	movq	_PB0100_CROP_TO_VGA@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	$319, %r14d                     ## imm = 0x13F
	movl	$239, %r15d
	movl	$20, %ebx
	movl	$30, %edx
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_5:
	movl	$351, %r14d                     ## imm = 0x15F
	movl	$287, %r15d                     ## imm = 0x11F
	movl	$4, %ebx
	movl	$8, %edx
LBB0_6:
	movq	_PB_RSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv06xx_write_sensor
	movq	_PB_CSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv06xx_write_sensor
	movq	_PB_RWSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_stv06xx_write_sensor
	movq	_PB_CWSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_stv06xx_write_sensor
	movq	_PB0100_SUBSAMPLE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	andl	(%rax), %r13d
	sete	%bl
	movl	$2, %edx
	subl	%ebx, %edx
	leal	6(,%rbx,4), %r14d
	shll	$4, %ebx
	addl	$16, %ebx
	movq	_STV_Y_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv06xx_write_bridge
	movq	_STV_X_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_stv06xx_write_bridge
	movq	_STV_SCAN_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv06xx_write_bridge
	movq	_PB_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$1, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_stv06xx_write_sensor
	movl	%eax, %ebx
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_gspca_dbg
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PB_ROWSPEED,4,2                ## @PB_ROWSPEED
	.comm	_PB0100_CROP_TO_VGA,4,2         ## @PB0100_CROP_TO_VGA
	.comm	_PB_RSTART,4,2                  ## @PB_RSTART
	.comm	_PB_CSTART,4,2                  ## @PB_CSTART
	.comm	_PB_RWSIZE,4,2                  ## @PB_RWSIZE
	.comm	_PB_CWSIZE,4,2                  ## @PB_CWSIZE
	.comm	_PB0100_SUBSAMPLE,4,2           ## @PB0100_SUBSAMPLE
	.comm	_STV_Y_CTRL,4,2                 ## @STV_Y_CTRL
	.comm	_STV_X_CTRL,4,2                 ## @STV_X_CTRL
	.comm	_STV_SCAN_RATE,4,2              ## @STV_SCAN_RATE
	.comm	_PB_CONTROL,4,2                 ## @PB_CONTROL
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Started stream, status: %d\n"

	.no_dead_strip	_pb0100_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pb0100_start
_pb0100_start:                          ; @pb0100_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x9, [x0]
	ldr	w23, [x8, x9, lsl #2]
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #12]
	bl	_usb_ifnum_to_if
	ldr	w1, [x19, #8]
	bl	_usb_altnum_to_altsetting
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _PB_ROWSPEED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PB_ROWSPEED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x9]
	cmp	w0, w8
	mov	w8, #4
	cinc	w0, w8, ge
	bl	_BIT
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w21, w0, w21
	mov	w24, #1
	mov	w0, #1
	bl	_BIT
	orr	w2, w21, w0
	mov	x0, x19
	mov	x1, x20
	bl	_stv06xx_write_sensor
Lloh3:
	adrp	x8, _PB0100_CROP_TO_VGA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PB0100_CROP_TO_VGA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w23
	mov	w8, #319
	mov	w9, #239
	mov	w10, #20
	mov	w11, #30
	mov	w12, #351
	mov	w13, #287
	mov	w14, #4
	mov	w15, #8
	csel	w2, w11, w15, ne
	csel	w20, w10, w14, ne
	csel	w21, w9, w13, ne
	csel	w22, w8, w12, ne
Lloh6:
	adrp	x8, _PB_RSTART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PB_RSTART@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv06xx_write_sensor
Lloh9:
	adrp	x8, _PB_CSTART@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PB_CSTART@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stv06xx_write_sensor
Lloh12:
	adrp	x8, _PB_RWSIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PB_RWSIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_stv06xx_write_sensor
Lloh15:
	adrp	x8, _PB_CWSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PB_CWSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_stv06xx_write_sensor
Lloh18:
	adrp	x8, _PB0100_SUBSAMPLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PB0100_SUBSAMPLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w23
	cinc	w2, w24, ne
	mov	w8, #6
	mov	w9, #10
	csel	w20, w9, w8, eq
	mov	w8, #16
	mov	w9, #32
	csel	w21, w9, w8, eq
Lloh21:
	adrp	x8, _STV_Y_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STV_Y_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv06xx_write_bridge
Lloh24:
	adrp	x8, _STV_X_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STV_X_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stv06xx_write_bridge
Lloh27:
	adrp	x8, _STV_SCAN_RATE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STV_SCAN_RATE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_stv06xx_write_bridge
Lloh30:
	adrp	x8, _PB_CONTROL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PB_CONTROL@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w21, w0, w21
	mov	w0, #1
	bl	_BIT
	orr	w2, w21, w0
	mov	x0, x19
	mov	x1, x20
	bl	_stv06xx_write_sensor
	mov	x20, x0
Lloh33:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str@PAGE
Lloh37:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_gspca_dbg
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	b	LBB0_3
LBB0_2:
Lloh38:
	adrp	x8, _ENODEV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PB_ROWSPEED,4,2                ; @PB_ROWSPEED
	.comm	_PB0100_CROP_TO_VGA,4,2         ; @PB0100_CROP_TO_VGA
	.comm	_PB_RSTART,4,2                  ; @PB_RSTART
	.comm	_PB_CSTART,4,2                  ; @PB_CSTART
	.comm	_PB_RWSIZE,4,2                  ; @PB_RWSIZE
	.comm	_PB_CWSIZE,4,2                  ; @PB_CWSIZE
	.comm	_PB0100_SUBSAMPLE,4,2           ; @PB0100_SUBSAMPLE
	.comm	_STV_Y_CTRL,4,2                 ; @STV_Y_CTRL
	.comm	_STV_X_CTRL,4,2                 ; @STV_X_CTRL
	.comm	_STV_SCAN_RATE,4,2              ; @STV_SCAN_RATE
	.comm	_PB_CONTROL,4,2                 ; @PB_CONTROL
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Started stream, status: %d\n"

	.no_dead_strip	_pb0100_start
.subsections_via_symbols
