	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_usb_ctrl_feed
_dvb_usb_ctrl_feed:                     ## @dvb_usb_ctrl_feed
	.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	8(%rdi), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_19
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	cmpl	$1, %esi
	sbbl	%ebx, %ebx
	orl	$1, %ebx
	addl	(%r13), %ebx
	je	LBB0_2
LBB0_5:
	cmpq	$0, 40(%r13)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	testl	%r15d, %r15d
	movl	%ebx, (%r13)
	movl	(%r12), %ecx
	movl	4(%r12), %r8d
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_deb_ts
	movq	_DVB_USB_ADAP_HAS_PID_FILTER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 16(%r13)
	je	LBB0_9
## %bb.6:
	cmpq	$0, 40(%r13)
	je	LBB0_9
## %bb.7:
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	*%rax
LBB0_9:
	movl	(%r13), %eax
	cmpl	%r15d, %eax
	jne	LBB0_20
## %bb.10:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.11:
	leaq	L_.str.7(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_deb_ts
	leaq	48(%r13), %rdi
	callq	_usb_urb_submit
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	movl	16(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.12:
	movq	_DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.13:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	40(%r13), %rsi
	movq	%r13, %rdi
	callq	*%rax
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.9(%rip), %rdi
	callq	_err
LBB0_16:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.17:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	leaq	L_.str.11(%rip), %rdi
	callq	_err
LBB0_19:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	leaq	48(%r13), %rdi
	callq	_usb_urb_kill
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop feeding\n"

L_.str.1:                               ## @.str.1
	.asciz	"error while stopping stream."

L_.str.2:                               ## @.str.2
	.asciz	"setting pid (%s): %5d %04x at index %d '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"yes"

L_.str.4:                               ## @.str.4
	.asciz	"no"

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

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

	.comm	_DVB_USB_ADAP_HAS_PID_FILTER,4,2 ## @DVB_USB_ADAP_HAS_PID_FILTER
L_.str.7:                               ## @.str.7
	.asciz	"submitting all URBs\n"

L_.str.8:                               ## @.str.8
	.asciz	"controlling pid parser\n"

	.comm	_DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF,4,2 ## @DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF
L_.str.9:                               ## @.str.9
	.asciz	"could not handle pid_parser"

L_.str.10:                              ## @.str.10
	.asciz	"start feeding\n"

L_.str.11:                              ## @.str.11
	.asciz	"error while enabling fifo."

	.no_dead_strip	_dvb_usb_ctrl_feed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_usb_ctrl_feed
_dvb_usb_ctrl_feed:                     ; @dvb_usb_ctrl_feed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	cbz	x19, LBB0_15
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x19]
	sub	w9, w8, #1
	cmp	w1, #0
	csinc	w22, w9, w8, eq
	cbz	w22, LBB0_18
LBB0_2:
	str	w22, [x19]
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x9, l_.str.3@PAGE
Lloh1:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh2:
	adrp	x10, l_.str.4@PAGE
Lloh3:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
Lloh4:
	adrp	x9, l_.str.5@PAGE
Lloh5:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh6:
	adrp	x10, l_.str.6@PAGE
Lloh7:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	w20, #0
	csel	x9, x10, x9, eq
	ldp	w10, w11, [x21]
	stp	x11, x9, [sp, #24]
	stp	x10, x10, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_ts
	ldr	w8, [x19, #16]
Lloh10:
	adrp	x22, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x20
	blr	x8
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, w20
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_16
; %bb.7:
Lloh12:
	adrp	x0, l_.str.7@PAGE
Lloh13:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_deb_ts
	add	x0, x19, #48
	bl	_usb_urb_submit
Lloh14:
	adrp	x0, l_.str.8@PAGE
Lloh15:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_deb_ts
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
Lloh16:
	adrp	x9, _DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x1, [x19, #40]
	mov	x0, x19
	blr	x8
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh19:
	adrp	x0, l_.str.9@PAGE
Lloh20:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_err
LBB0_12:
Lloh21:
	adrp	x0, l_.str.10@PAGE
Lloh22:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_deb_ts
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	w1, #1
	blr	x8
	cbz	w0, LBB0_17
; %bb.14:
Lloh23:
	adrp	x0, l_.str.11@PAGE
Lloh24:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_err
LBB0_15:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_ts
	add	x0, x19, #48
	bl	_usb_urb_kill
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.19:
	mov	x0, x19
	mov	w1, #0
	blr	x8
	cbz	w0, LBB0_2
; %bb.20:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop feeding\n"

l_.str.1:                               ; @.str.1
	.asciz	"error while stopping stream."

l_.str.2:                               ; @.str.2
	.asciz	"setting pid (%s): %5d %04x at index %d '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"yes"

l_.str.4:                               ; @.str.4
	.asciz	"no"

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

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

	.comm	_DVB_USB_ADAP_HAS_PID_FILTER,4,2 ; @DVB_USB_ADAP_HAS_PID_FILTER
l_.str.7:                               ; @.str.7
	.asciz	"submitting all URBs\n"

l_.str.8:                               ; @.str.8
	.asciz	"controlling pid parser\n"

	.comm	_DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF,4,2 ; @DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF
l_.str.9:                               ; @.str.9
	.asciz	"could not handle pid_parser"

l_.str.10:                              ; @.str.10
	.asciz	"start feeding\n"

l_.str.11:                              ; @.str.11
	.asciz	"error while enabling fifo."

	.no_dead_strip	_dvb_usb_ctrl_feed
.subsections_via_symbols
