	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_dmxdev_pes_filter_set
_dvb_dmxdev_pes_filter_set:             ## @dvb_dmxdev_pes_filter_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_dvb_dmxdev_filter_stop
	movq	%rbx, %rdi
	callq	_dvb_dmxdev_filter_reset
	movq	_DMX_PES_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	8(%r14), %eax
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_DMXDEV_TYPE_PES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	leaq	4(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_DMXDEV_STATE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dvb_dmxdev_filter_state_set
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dvb_dmxdev_add_pid
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	_DMX_IMMEDIATE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dvb_dmxdev_filter_start        ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_PES_OTHER,4,2              ## @DMX_PES_OTHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMXDEV_TYPE_PES,4,2            ## @DMXDEV_TYPE_PES
	.comm	_DMXDEV_STATE_SET,4,2           ## @DMXDEV_STATE_SET
	.comm	_DMX_IMMEDIATE_START,4,2        ## @DMX_IMMEDIATE_START
	.no_dead_strip	_dvb_dmxdev_pes_filter_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_dmxdev_pes_filter_set
_dvb_dmxdev_pes_filter_set:             ; @dvb_dmxdev_pes_filter_set
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_dvb_dmxdev_filter_stop
	mov	x0, x19
	bl	_dvb_dmxdev_filter_reset
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _DMX_PES_OTHER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMX_PES_OTHER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _DMXDEV_TYPE_PES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMXDEV_TYPE_PES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
Lloh9:
	adrp	x8, _DMXDEV_STATE_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMXDEV_STATE_SET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dvb_dmxdev_filter_state_set
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x19
	bl	_dvb_dmxdev_add_pid
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _DMX_IMMEDIATE_START@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMX_IMMEDIATE_START@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	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_filter_start
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_PES_OTHER,4,2              ; @DMX_PES_OTHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMXDEV_TYPE_PES,4,2            ; @DMXDEV_TYPE_PES
	.comm	_DMXDEV_STATE_SET,4,2           ; @DMXDEV_STATE_SET
	.comm	_DMX_IMMEDIATE_START,4,2        ; @DMX_IMMEDIATE_START
	.no_dead_strip	_dvb_dmxdev_pes_filter_set
.subsections_via_symbols
