	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmx_ts_feed_set
_dmx_ts_feed_set:                       ## @dmx_ts_feed_set
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DMX_MAX_PID@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	48(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_TS_DECODER@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.6:
	movq	_DMX_TS_PES_OTHER@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jbe	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rcx
	movl	%r12d, %eax
	movq	(%rcx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	cmpq	%rbx, %rdx
	je	LBB0_11
## %bb.10:
	callq	_mutex_unlock
	jmp	LBB0_1
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_1
LBB0_11:
	movq	%rbx, (%rcx,%rax,8)
	movq	8(%rdi), %rcx
	movq	%r13, (%rcx,%rax,8)
LBB0_12:
	movq	%rbx, %rdi
	callq	_dvb_demux_feed_add
	movq	%r13, 40(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, (%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rbx)
	movl	%r14d, 8(%rbx)
	movl	%r12d, 12(%rbx)
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	callq	_vmalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_MAX_PID,8,3                ## @DMX_MAX_PID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_TS_DECODER,4,2                 ## @TS_DECODER
	.comm	_DMX_TS_PES_OTHER,4,2           ## @DMX_TS_PES_OTHER
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMX_STATE_READY,4,2            ## @DMX_STATE_READY
	.no_dead_strip	_dmx_ts_feed_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmx_ts_feed_set
_dmx_ts_feed_set:                       ; @dmx_ts_feed_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _DMX_MAX_PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMX_MAX_PID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x23, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x19, [x0, #48]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x8, _TS_DECODER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TS_DECODER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _DMX_TS_PES_OTHER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMX_TS_PES_OTHER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ls	LBB0_13
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, w22, uxtw #3]
	cmp	x9, #0
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_13
; %bb.9:
	mov	w9, w22
	lsl	x9, x9, #3
	str	x20, [x8, x9]
	ldr	x8, [x19, #8]
	str	x25, [x8, x9]
LBB0_10:
	mov	x0, x20
	bl	_dvb_demux_feed_add
	str	x25, [x20, #40]
	str	x21, [x20]
	str	w23, [x20, #32]
	stp	w24, w22, [x20, #8]
	cbz	x21, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_vmalloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_14
LBB0_12:
Lloh13:
	adrp	x8, _DMX_STATE_READY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMX_STATE_READY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_1
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_MAX_PID,8,3                ; @DMX_MAX_PID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_TS_DECODER,4,2                 ; @TS_DECODER
	.comm	_DMX_TS_PES_OTHER,4,2           ; @DMX_TS_PES_OTHER
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMX_STATE_READY,4,2            ; @DMX_STATE_READY
	.no_dead_strip	_dmx_ts_feed_set
.subsections_via_symbols
