	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_streamon
_vidioc_streamon:                       ## @vidioc_streamon
	.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), %r14
	movq	8(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movq	_INDEX_TS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cx231xx_set_alt_setting
	movq	_CX231XX_DIGITAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cx231xx_set_mode
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_CX231XX_NUM_PACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CX231XX_NUM_BUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	movq	_cx231xx_isoc_copy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_cx231xx_init_isoc
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %ecx
	movq	_cx231xx_bulk_copy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	$320, %esi                      ## imm = 0x140
	movl	$5, %edx
	callq	_cx231xx_init_bulk
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_videobuf_streamon              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter vidioc_streamon()\n"

	.comm	_INDEX_TS1,4,2                  ## @INDEX_TS1
	.comm	_CX231XX_DIGITAL_MODE,4,2       ## @CX231XX_DIGITAL_MODE
	.comm	_CX231XX_NUM_PACKETS,4,2        ## @CX231XX_NUM_PACKETS
	.comm	_CX231XX_NUM_BUFS,4,2           ## @CX231XX_NUM_BUFS
	.comm	_cx231xx_isoc_copy,4,2          ## @cx231xx_isoc_copy
	.comm	_cx231xx_bulk_copy,4,2          ## @cx231xx_bulk_copy
L_.str.1:                               ## @.str.1
	.asciz	"exit vidioc_streamon()\n"

	.no_dead_strip	_vidioc_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_streamon
_vidioc_streamon:                       ; @vidioc_streamon
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_dprintk
Lloh2:
	adrp	x8, _INDEX_TS1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDEX_TS1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_cx231xx_set_alt_setting
Lloh5:
	adrp	x8, _CX231XX_DIGITAL_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX231XX_DIGITAL_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cx231xx_set_mode
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _CX231XX_NUM_PACKETS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CX231XX_NUM_PACKETS@GOTPAGEOFF]
Lloh10:
	adrp	x9, _CX231XX_NUM_BUFS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CX231XX_NUM_BUFS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w2, [x9]
	ldr	w3, [x20, #4]
Lloh14:
	adrp	x8, _cx231xx_isoc_copy@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cx231xx_isoc_copy@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_cx231xx_init_isoc
	b	LBB0_3
LBB0_2:
	ldr	w3, [x20]
Lloh17:
	adrp	x8, _cx231xx_bulk_copy@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cx231xx_bulk_copy@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w1, #320
	mov	w2, #5
	bl	_cx231xx_init_bulk
LBB0_3:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_videobuf_streamon
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter vidioc_streamon()\n"

	.comm	_INDEX_TS1,4,2                  ; @INDEX_TS1
	.comm	_CX231XX_DIGITAL_MODE,4,2       ; @CX231XX_DIGITAL_MODE
	.comm	_CX231XX_NUM_PACKETS,4,2        ; @CX231XX_NUM_PACKETS
	.comm	_CX231XX_NUM_BUFS,4,2           ; @CX231XX_NUM_BUFS
	.comm	_cx231xx_isoc_copy,4,2          ; @cx231xx_isoc_copy
	.comm	_cx231xx_bulk_copy,4,2          ; @cx231xx_bulk_copy
l_.str.1:                               ; @.str.1
	.asciz	"exit vidioc_streamon()\n"

	.no_dead_strip	_vidioc_streamon
.subsections_via_symbols
