	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opera1_streaming_ctrl
_opera1_streaming_ctrl:                 ## @opera1_streaming_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	testl	%esi, %esi
	leaq	_opera1_streaming_ctrl.buf_stop(%rip), %rax
	leaq	_opera1_streaming_ctrl.buf_start(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -32(%rbp)
	movl	$2, -24(%rbp)
	movq	_ADDR_B1A6_STREAM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_dvb_usb_opera1_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_info
LBB0_2:
	movq	(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @opera1_streaming_ctrl.buf_start
_opera1_streaming_ctrl.buf_start:
	.long	255                             ## 0xff
	.long	3                               ## 0x3

	.p2align	2                               ## @opera1_streaming_ctrl.buf_stop
_opera1_streaming_ctrl.buf_stop:
	.long	255                             ## 0xff
	.long	0                               ## 0x0

	.comm	_ADDR_B1A6_STREAM_CTRL,4,2      ## @ADDR_B1A6_STREAM_CTRL
	.comm	_dvb_usb_opera1_debug,8,3       ## @dvb_usb_opera1_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"streaming %s"

L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

	.no_dead_strip	_opera1_streaming_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opera1_streaming_ctrl
_opera1_streaming_ctrl:                 ; @opera1_streaming_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _opera1_streaming_ctrl.buf_start@PAGE
Lloh4:
	add	x8, x8, _opera1_streaming_ctrl.buf_start@PAGEOFF
Lloh5:
	adrp	x9, _opera1_streaming_ctrl.buf_stop@PAGE
Lloh6:
	add	x9, x9, _opera1_streaming_ctrl.buf_stop@PAGEOFF
	cmp	w1, #0
	csel	x8, x9, x8, eq
	str	x8, [sp, #8]
	mov	w8, #2
Lloh7:
	adrp	x9, _ADDR_B1A6_STREAM_CTRL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADDR_B1A6_STREAM_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh10:
	adrp	x8, _dvb_usb_opera1_debug@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dvb_usb_opera1_debug@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x1, x9, x8, eq
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
LBB0_2:
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @opera1_streaming_ctrl.buf_start
_opera1_streaming_ctrl.buf_start:
	.long	255                             ; 0xff
	.long	3                               ; 0x3

	.p2align	2                               ; @opera1_streaming_ctrl.buf_stop
_opera1_streaming_ctrl.buf_stop:
	.long	255                             ; 0xff
	.long	0                               ; 0x0

	.comm	_ADDR_B1A6_STREAM_CTRL,4,2      ; @ADDR_B1A6_STREAM_CTRL
	.comm	_dvb_usb_opera1_debug,8,3       ; @dvb_usb_opera1_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"streaming %s"

l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

	.no_dead_strip	_opera1_streaming_ctrl
.subsections_via_symbols
