	.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_1
## %bb.3:
	movq	(%r13), %rax
	cmpq	8(%r13), %rax
	jae	LBB0_4
## %bb.5:
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	cmpl	$1, %esi
	sbbl	%ebx, %ebx
	orl	$1, %ebx
	addl	16(%r13), %ebx
	je	LBB0_6
LBB0_9:
	movl	%ebx, 16(%r13)
	movq	24(%r13), %rcx
	shlq	$4, %rax
	cmpq	$0, 8(%rcx,%rax)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	testl	%r15d, %r15d
	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	(%r13), %rdx
	movq	32(%r13), %rax
	movq	%rdx, %rcx
	shlq	$5, %rcx
	movq	_DVB_USB_ADAP_HAS_PID_FILTER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	testl	%esi, 8(%rax,%rcx)
	je	LBB0_13
## %bb.10:
	movq	24(%r13), %rsi
	shlq	$4, %rdx
	cmpq	$0, 8(%rsi,%rdx)
	je	LBB0_13
## %bb.11:
	movq	24(%rax,%rcx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	*%rax
LBB0_13:
	movl	16(%r13), %eax
	cmpl	%r15d, %eax
	jne	LBB0_24
## %bb.14:
	testl	%eax, %eax
	jle	LBB0_24
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	movq	%rax, %rdx
	shlq	$5, %rdx
	movl	8(%rcx,%rdx), %esi
	testl	%esi, (%rbx)
	je	LBB0_20
## %bb.16:
	movq	_DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_20
## %bb.17:
	movq	16(%rcx,%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.18:
	movq	24(%r13), %rdx
	shlq	$4, %rax
	movq	8(%rdx,%rax), %rsi
	movq	%r13, %rdi
	callq	*%rcx
	testl	%eax, %eax
	js	LBB0_19
LBB0_20:
	leaq	L_.str.9(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_deb_ts
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	shlq	$5, %rax
	movq	(%rcx,%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_22
LBB0_23:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	movq	(%r13), %rdi
	shlq	$4, %rdi
	addq	24(%r13), %rdi
	callq	_usb_urb_submit
	jmp	LBB0_24
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	movq	(%r13), %rdi
	shlq	$4, %rdi
	addq	24(%r13), %rdi
	callq	_usb_urb_kill
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	movq	%rax, %rdx
	shlq	$5, %rdx
	movq	(%rcx,%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*%rcx
	testl	%eax, %eax
	js	LBB0_25
## %bb.8:
	movq	(%r13), %rax
	jmp	LBB0_9
LBB0_22:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rdi
	callq	_err
	movl	%r15d, %r14d
	jmp	LBB0_24
LBB0_25:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	jmp	LBB0_24
LBB0_19:
	movl	%eax, %r14d
	leaq	L_.str.8(%rip), %rdi
	callq	_err
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	"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.8:                               ## @.str.8
	.asciz	"could not handle pid_parser"

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

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

L_.str.11:                              ## @.str.11
	.asciz	"submitting all URBs\n"

	.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, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x8, [x0, #8]
	ldr	x19, [x8]
	cbz	x19, LBB0_16
; %bb.1:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.hs	LBB0_17
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	ldr	w9, [x19, #16]
	sub	w10, w9, #1
	cmp	w1, #0
	csinc	w23, w10, w9, eq
	cbz	w23, LBB0_20
LBB0_3:
	str	w23, [x19, #16]
	ldr	x9, [x19, #24]
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
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	x8, [x19, #32]
	ldr	x9, [x19]
	add	x10, x8, x9, lsl #5
	ldr	w10, [x10, #8]
Lloh10:
	adrp	x22, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGEOFF]
	ldr	w11, [x22]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.4:
	ldr	x10, [x19, #24]
	add	x10, x10, x9, lsl #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_7
; %bb.5:
	add	x8, x8, x9, lsl #5
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_7
; %bb.6:
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	x3, x20
	blr	x8
LBB0_7:
	ldr	w8, [x19, #16]
	cmp	w8, w20
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_15
; %bb.8:
Lloh12:
	adrp	x0, l_.str.7@PAGE
Lloh13:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_deb_ts
	ldr	x9, [x19, #32]
	ldr	x8, [x19]
	add	x10, x9, x8, lsl #5
	ldr	w10, [x10, #8]
	ldr	w11, [x22]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.9:
Lloh14:
	adrp	x11, _DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.10:
	add	x9, x9, x8, lsl #5
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	x10, [x19, #24]
	add	x8, x10, x8, lsl #4
	ldr	x1, [x8, #8]
	mov	x0, x19
	blr	x9
	tbnz	w0, #31, LBB0_25
LBB0_12:
Lloh17:
	adrp	x0, l_.str.9@PAGE
Lloh18:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_deb_ts
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	lsl	x9, x9, #5
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #1
	blr	x8
	tbnz	w0, #31, LBB0_23
LBB0_14:
Lloh19:
	adrp	x0, l_.str.11@PAGE
Lloh20:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_deb_ts
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	add	x0, x8, x9, lsl #4
	bl	_usb_urb_submit
LBB0_15:
	mov	w22, #0
	b	LBB0_19
LBB0_16:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_ts
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	add	x0, x8, x9, lsl #4
	bl	_usb_urb_kill
	ldr	x9, [x19, #32]
	ldr	x8, [x19]
	lsl	x10, x8, #5
	ldr	x9, [x9, x10]
	cbz	x9, LBB0_3
; %bb.21:
	mov	x0, x19
	mov	w1, #0
	blr	x9
	tbnz	w0, #31, LBB0_24
; %bb.22:
	ldr	x8, [x19]
	b	LBB0_3
LBB0_23:
	mov	x22, x0
Lloh27:
	adrp	x0, l_.str.10@PAGE
Lloh28:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_err
	b	LBB0_19
LBB0_24:
	mov	x22, x0
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_19
LBB0_25:
	mov	x22, x0
Lloh31:
	adrp	x0, l_.str.8@PAGE
Lloh32:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_err
	b	LBB0_19
	.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	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	"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.8:                               ; @.str.8
	.asciz	"could not handle pid_parser"

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

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

l_.str.11:                              ; @.str.11
	.asciz	"submitting all URBs\n"

	.no_dead_strip	_dvb_usb_ctrl_feed
.subsections_via_symbols
