	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_dmxdev_add_pid
_dvb_dmxdev_add_pid:                    ## @dvb_dmxdev_add_pid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_DMXDEV_TYPE_PES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	_DMXDEV_STATE_SET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	24(%rbx), %rax
	movq	_DMX_OUT_TSDEMUX_TAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movl	%r15d, 4(%rax)
	leaq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_list_add
	movq	8(%rbx), %rcx
	movq	_DMXDEV_STATE_GO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dvb_dmxdev_start_feed          ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_DMXDEV_TYPE_PES,8,3            ## @DMXDEV_TYPE_PES
	.comm	_DMXDEV_STATE_SET,8,3           ## @DMXDEV_STATE_SET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMX_OUT_TSDEMUX_TAP,8,3        ## @DMX_OUT_TSDEMUX_TAP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMXDEV_STATE_GO,8,3            ## @DMXDEV_STATE_GO
	.no_dead_strip	_dvb_dmxdev_add_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_dmxdev_add_pid
_dvb_dmxdev_add_pid:                    ; @dvb_dmxdev_add_pid
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DMXDEV_TYPE_PES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMXDEV_TYPE_PES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _DMXDEV_STATE_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMXDEV_STATE_SET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	mov	x21, x2
	mov	x20, x0
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _DMX_OUT_TSDEMUX_TAP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMX_OUT_TSDEMUX_TAP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	add	x0, x19, #16
	bl	_list_empty
	cbz	w0, LBB0_2
LBB0_7:
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	str	w21, [x0, #4]
	add	x1, x19, #16
	bl	_list_add
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _DMXDEV_STATE_GO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DMXDEV_STATE_GO@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.9:
	mov	w0, #0
	b	LBB0_4
LBB0_10:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	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
	b	_dvb_dmxdev_start_feed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DMXDEV_TYPE_PES,8,3            ; @DMXDEV_TYPE_PES
	.comm	_DMXDEV_STATE_SET,8,3           ; @DMXDEV_STATE_SET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMX_OUT_TSDEMUX_TAP,8,3        ; @DMX_OUT_TSDEMUX_TAP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMXDEV_STATE_GO,8,3            ; @DMXDEV_STATE_GO
	.no_dead_strip	_dvb_dmxdev_add_pid
.subsections_via_symbols
