	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbdmx_allocate_ts_feed
_dvbdmx_allocate_ts_feed:               ## @dvbdmx_allocate_ts_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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_dvb_dmx_feed_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	_DMX_TYPE_TS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 88(%rbx)
	movl	%r12d, 80(%rbx)
	movq	%r14, 72(%rbx)
	movabsq	$281449206972415, %rax          ## imm = 0xFFFA0000FFFF
	movq	%rax, (%rbx)
	movq	$0, 64(%rbx)
	movq	%rbx, %rax
	addq	$24, %rax
	movq	%rax, (%r15)
	movq	%r14, 56(%rbx)
	movq	(%r15), %rax
	movq	$0, 24(%rax)
	movq	(%r15), %rax
	movq	$0, 16(%rax)
	movq	_dmx_ts_feed_start_filtering@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_dmx_ts_feed_stop_filtering@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_dmx_ts_feed_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_dvb_dmx_filter_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r13), %rcx
	movq	%rcx, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_DMX_STATE_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DMX_TYPE_TS,8,3                ## @DMX_TYPE_TS
	.comm	_dmx_ts_feed_start_filtering,4,2 ## @dmx_ts_feed_start_filtering
	.comm	_dmx_ts_feed_stop_filtering,4,2 ## @dmx_ts_feed_stop_filtering
	.comm	_dmx_ts_feed_set,4,2            ## @dmx_ts_feed_set
	.comm	_DMX_STATE_FREE,4,2             ## @DMX_STATE_FREE
	.comm	_DMX_STATE_READY,4,2            ## @DMX_STATE_READY
	.no_dead_strip	_dvbdmx_allocate_ts_feed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dvbdmx_allocate_ts_feed
lCPI0_0:
	.long	65535                           ; 0xffff
	.long	65530                           ; 0xfffa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dvbdmx_allocate_ts_feed:               ; @dvbdmx_allocate_ts_feed
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_dvb_dmx_feed_alloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x23, _DMX_TYPE_TS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMX_TYPE_TS@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x0, #88]
	str	w22, [x0, #80]
	str	x19, [x0, #72]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	add	x8, x0, #24
	str	x8, [x21]
	stp	x19, xzr, [x0, #56]
	ldr	x8, [x21]
	str	xzr, [x8, #24]
	ldr	x8, [x21]
	str	xzr, [x8, #16]
Lloh6:
	adrp	x9, _dmx_ts_feed_start_filtering@GOTPAGE
Lloh7:
	ldr	x9, [x9, _dmx_ts_feed_start_filtering@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh9:
	adrp	x9, _dmx_ts_feed_stop_filtering@GOTPAGE
Lloh10:
	ldr	x9, [x9, _dmx_ts_feed_stop_filtering@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _dmx_ts_feed_set@GOTPAGE
Lloh13:
	ldr	x10, [x10, _dmx_ts_feed_set@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	mov	x0, x19
	bl	_dvb_dmx_filter_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x23]
	stp	x20, x8, [x0, #8]
Lloh15:
	adrp	x8, _DMX_STATE_READY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMX_STATE_READY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x8, _DMX_STATE_FREE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMX_STATE_FREE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DMX_TYPE_TS,8,3                ; @DMX_TYPE_TS
	.comm	_dmx_ts_feed_start_filtering,4,2 ; @dmx_ts_feed_start_filtering
	.comm	_dmx_ts_feed_stop_filtering,4,2 ; @dmx_ts_feed_stop_filtering
	.comm	_dmx_ts_feed_set,4,2            ; @dmx_ts_feed_set
	.comm	_DMX_STATE_FREE,4,2             ; @DMX_STATE_FREE
	.comm	_DMX_STATE_READY,4,2            ; @DMX_STATE_READY
	.no_dead_strip	_dvbdmx_allocate_ts_feed
.subsections_via_symbols
