	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmx_section_feed_allocate_filter
_dmx_section_feed_allocate_filter:      ## @dmx_section_feed_allocate_filter
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	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	%r14, %rdi
	callq	_dvb_dmx_filter_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rax
	addq	$24, %rax
	movq	%rax, (%r15)
	movq	%r12, 32(%rbx)
	movq	(%r15), %rax
	movq	$0, (%rax)
	movq	%r12, 16(%rbx)
	movq	_DMX_TYPE_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	%rbx, (%r12)
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %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_STATE_READY,4,2            ## @DMX_STATE_READY
	.no_dead_strip	_dmx_section_feed_allocate_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmx_section_feed_allocate_filter
_dmx_section_feed_allocate_filter:      ; @dmx_section_feed_allocate_filter
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	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_filter_alloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	add	x23, x19, #4
	mov	x0, x23
	bl	_spin_lock_irq
	add	x8, x22, #24
	str	x8, [x21]
	str	x20, [x22, #32]
	ldr	x8, [x21]
	str	xzr, [x8]
	str	x20, [x22, #16]
Lloh2:
	adrp	x8, _DMX_TYPE_SEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMX_TYPE_SEC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DMX_STATE_READY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMX_STATE_READY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #8]
	ldr	x8, [x20]
	str	x8, [x22]
	str	x22, [x20]
	mov	x0, x23
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
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:
	mov	x0, x19
	bl	_mutex_unlock
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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_STATE_READY,4,2            ; @DMX_STATE_READY
	.no_dead_strip	_dmx_section_feed_allocate_filter
.subsections_via_symbols
