	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbdmx_allocate_section_feed
_dvbdmx_allocate_section_feed:          ## @dvbdmx_allocate_section_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_dvb_dmx_feed_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_DMX_TYPE_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 116(%rax)
	movl	%r15d, 112(%rax)
	movq	%rbx, 104(%rax)
	movl	$65535, (%rax)                  ## imm = 0xFFFF
	movq	%rax, %rcx
	addq	$8, %rcx
	movl	80(%rax), %edx
	movl	%edx, 84(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%rax)
	movups	%xmm0, 56(%rax)
	movq	$0, 72(%rax)
	movq	%rcx, (%r14)
	movq	$0, 48(%rax)
	movq	%rbx, 40(%rax)
	movq	(%r14), %rax
	movq	$0, 24(%rax)
	movq	_dmx_section_feed_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 16(%rcx)
	movq	_dmx_section_feed_allocate_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_dmx_section_feed_start_filtering@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_dmx_section_feed_stop_filtering@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_dmx_section_feed_release_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DMX_TYPE_SEC,4,2               ## @DMX_TYPE_SEC
	.comm	_dmx_section_feed_set,4,2       ## @dmx_section_feed_set
	.comm	_dmx_section_feed_allocate_filter,4,2 ## @dmx_section_feed_allocate_filter
	.comm	_dmx_section_feed_start_filtering,4,2 ## @dmx_section_feed_start_filtering
	.comm	_dmx_section_feed_stop_filtering,4,2 ## @dmx_section_feed_stop_filtering
	.comm	_dmx_section_feed_release_filter,4,2 ## @dmx_section_feed_release_filter
	.no_dead_strip	_dvbdmx_allocate_section_feed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbdmx_allocate_section_feed
_dvbdmx_allocate_section_feed:          ; @dvbdmx_allocate_section_feed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_dvb_dmx_feed_alloc
	cbz	x0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _DMX_TYPE_SEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMX_TYPE_SEC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w21, w8, [x0, #112]
	stp	xzr, x19, [x0, #96]
	mov	w8, #65535
	str	w8, [x0]
	add	x8, x0, #8
	ldr	w9, [x0, #80]
	str	w9, [x0, #84]
	str	xzr, [x0, #88]
	stp	xzr, xzr, [x0, #64]
	stp	xzr, xzr, [x0, #48]
	str	x8, [x20]
	str	x19, [x0, #40]
	ldr	x8, [x20]
	str	xzr, [x8, #24]
Lloh5:
	adrp	x8, _dmx_section_feed_set@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dmx_section_feed_set@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #16]
Lloh8:
	adrp	x8, _dmx_section_feed_allocate_filter@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dmx_section_feed_allocate_filter@GOTPAGEOFF]
Lloh10:
	adrp	x10, _dmx_section_feed_start_filtering@GOTPAGE
Lloh11:
	ldr	x10, [x10, _dmx_section_feed_start_filtering@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
Lloh14:
	adrp	x8, _dmx_section_feed_stop_filtering@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dmx_section_feed_stop_filtering@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, _dmx_section_feed_release_filter@GOTPAGE
Lloh18:
	ldr	x10, [x10, _dmx_section_feed_release_filter@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DMX_TYPE_SEC,4,2               ; @DMX_TYPE_SEC
	.comm	_dmx_section_feed_set,4,2       ; @dmx_section_feed_set
	.comm	_dmx_section_feed_allocate_filter,4,2 ; @dmx_section_feed_allocate_filter
	.comm	_dmx_section_feed_start_filtering,4,2 ; @dmx_section_feed_start_filtering
	.comm	_dmx_section_feed_stop_filtering,4,2 ; @dmx_section_feed_stop_filtering
	.comm	_dmx_section_feed_release_filter,4,2 ; @dmx_section_feed_release_filter
	.no_dead_strip	_dvbdmx_allocate_section_feed
.subsections_via_symbols
