	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_start_streaming
_dvb_start_streaming:                   ## @dvb_start_streaming
	.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	16(%rdi), %r12
	movq	_POSEIDON_STATE_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%rdi, %r15
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_11
## %bb.3:
	movl	$0, -44(%rbp)
	movq	_PLAY_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_send_set_req
	movl	%eax, %ebx
	orl	-44(%rbp), %eax
	je	LBB0_4
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_dvb_urb_init
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	$1, (%r15)
	movq	_DVB_SBUF_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.6:
	xorl	%r13d, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r13,4), %edi
	movl	(%r12), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movq	_DVB_SBUF_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_7
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_log
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_POSEIDON_STATE_DISCONNECT,4,2  ## @POSEIDON_STATE_DISCONNECT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PLAY_SERVICE,4,2               ## @PLAY_SERVICE
	.comm	_DVB_SBUF_NUM,4,2               ## @DVB_SBUF_NUM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" submit urb error %d"

	.no_dead_strip	_dvb_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_start_streaming
_dvb_start_streaming:                   ; @dvb_start_streaming
	.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
	ldr	x21, [x0, #16]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _POSEIDON_STATE_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POSEIDON_STATE_DISCONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	add	x19, x21, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cbz	w8, LBB0_4
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	str	wzr, [sp, #12]
Lloh6:
	adrp	x8, _PLAY_SERVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLAY_SERVICE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	w2, #1
	bl	_send_set_req
	mov	x21, x0
	ldr	w8, [sp, #12]
	orr	w8, w8, w0
	cbz	w8, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
	mov	x0, x20
	bl	_dvb_urb_init
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.8:
	mov	w8, #1
	str	w8, [x20]
Lloh9:
	adrp	x22, _DVB_SBUF_NUM@GOTPAGE
Lloh10:
	ldr	x22, [x22, _DVB_SBUF_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.9:
	mov	x23, #0
Lloh11:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x24]
	bl	_usb_submit_urb
	cbnz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_10
	b	LBB0_3
LBB0_12:
	mov	x21, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_log
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_POSEIDON_STATE_DISCONNECT,4,2  ; @POSEIDON_STATE_DISCONNECT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PLAY_SERVICE,4,2               ; @PLAY_SERVICE
	.comm	_DVB_SBUF_NUM,4,2               ; @DVB_SBUF_NUM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" submit urb error %d"

	.no_dead_strip	_dvb_start_streaming
.subsections_via_symbols
