	.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
	pushq	%rax
	.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, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rdi), %r14
	movq	%r14, %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_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_TS_DECODER@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.6:
	movq	_DMX_PES_OTHER@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jbe	LBB0_7
## %bb.8:
	movq	16(%r14), %rcx
	movl	%r15d, %eax
	movq	(%rcx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	cmpq	%rbx, %rdx
	je	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_1
LBB0_10:
	movq	%rbx, (%rcx,%rax,8)
	movq	8(%r14), %rcx
	movq	%r12, (%rcx,%rax,8)
LBB0_11:
	movq	%rbx, %rdi
	callq	_dvb_demux_feed_add
	movq	%r12, 16(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx)
	movl	%r13d, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_12
	.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_PES_OTHER,4,2              ## @DMX_PES_OTHER
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
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	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x22, [x0, #24]
	mov	x0, x22
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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, w23
	b.eq	LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _DMX_PES_OTHER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMX_PES_OTHER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ls	LBB0_11
; %bb.8:
	ldr	x8, [x22, #16]
	ldr	x9, [x8, w21, uxtw #3]
	cmp	x9, #0
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_11
; %bb.9:
	mov	w9, w21
	lsl	x9, x9, #3
	str	x20, [x8, x9]
	ldr	x8, [x22, #8]
	str	x24, [x8, x9]
LBB0_10:
	mov	x0, x20
	bl	_dvb_demux_feed_add
	str	x24, [x20, #16]
	stp	w23, w21, [x20]
Lloh13:
	adrp	x8, _DMX_STATE_READY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMX_STATE_READY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w8, w19, [x20, #8]
	mov	x0, x22
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_11:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_1
	.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
	.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_PES_OTHER,4,2              ; @DMX_PES_OTHER
	.comm	_DMX_STATE_READY,4,2            ; @DMX_STATE_READY
	.no_dead_strip	_dmx_ts_feed_set
.subsections_via_symbols
