	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_demux_do_ioctl
_dvb_demux_do_ioctl:                    ## @dvb_demux_do_ioctl
	.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	%rdx, %r12
	movl	%esi, %ebx
	movq	(%rdi), %r15
	movq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_2:
	addl	$-128, %ebx
	cmpl	$13, %ebx
	ja	LBB0_29
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	%r15, %rdi
	callq	_dvb_dmxdev_filter_stop
	jmp	LBB0_9
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movl	8(%r15), %eax
	movq	_DMXDEV_STATE_SET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_15:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	jne	LBB0_5
## %bb.16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_dvb_dmxdev_pes_filter_set
	jmp	LBB0_9
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	jne	LBB0_5
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_dvb_dmxdev_filter_set
	jmp	LBB0_9
LBB0_17:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_18
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_1
LBB0_29:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_27:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	jne	LBB0_25
## %bb.28:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dvb_dmxdev_remove_pid
	jmp	LBB0_9
LBB0_22:
	movq	8(%r14), %rdi
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.23:
	movl	8(%r12), %esi
	leaq	4(%r12), %rdx
	movq	%r12, %rcx
	callq	*%rbx
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_19:
	movq	8(%r14), %rdi
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.21:
	movq	%r12, %rsi
	callq	*%rcx
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_24:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_26
LBB0_25:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_30:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_18:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dvb_dmxdev_set_buffer_size
	jmp	LBB0_9
LBB0_26:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dvb_dmxdev_add_pid
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_dvb_dmxdev_filter_start
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_31:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_32:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_29
	.long	L0_0_set_27
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_22
	.long	L0_0_set_19
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_DMXDEV_STATE_SET,4,2           ## @DMXDEV_STATE_SET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_dvb_demux_do_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_demux_do_ioctl
_dvb_demux_do_ioctl:                    ; @dvb_demux_do_ioctl
	.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	x22, x1
	ldr	x20, [x0]
	ldr	x19, [x20, #16]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_32
LBB0_2:
	sub	w8, w22, #128
	cmp	w8, #13
	b.hi	LBB0_15
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_14
; %bb.5:
	mov	x0, x20
	bl	_dvb_dmxdev_filter_stop
	b	LBB0_29
LBB0_6:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_14
; %bb.7:
	ldr	w8, [x20, #8]
Lloh5:
	adrp	x9, _DMXDEV_STATE_SET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMXDEV_STATE_SET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_28
; %bb.8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_30
LBB0_9:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_14
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_dvb_dmxdev_pes_filter_set
	b	LBB0_29
LBB0_11:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_dvb_dmxdev_filter_set
	b	LBB0_29
LBB0_13:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_26
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_1
LBB0_15:
Lloh11:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_25
LBB0_16:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_23
; %bb.17:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_dmxdev_remove_pid
	b	LBB0_29
LBB0_18:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_24
; %bb.19:
	ldr	w1, [x21, #8]
	add	x2, x21, #4
	mov	x3, x21
	blr	x8
	mov	x21, x0
	b	LBB0_31
LBB0_20:
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_24
; %bb.21:
	mov	x1, x21
	blr	x8
	mov	w21, #0
	b	LBB0_31
LBB0_22:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_27
LBB0_23:
Lloh13:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_31
LBB0_26:
	mov	x0, x20
	mov	x1, x21
	bl	_dvb_dmxdev_set_buffer_size
	b	LBB0_29
LBB0_27:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_dmxdev_add_pid
	b	LBB0_29
LBB0_28:
	mov	x0, x20
	bl	_dvb_dmxdev_filter_start
LBB0_29:
	mov	x21, x0
LBB0_30:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_31:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_32:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_DMXDEV_STATE_SET,4,2           ; @DMXDEV_STATE_SET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_dvb_demux_do_ioctl
.subsections_via_symbols
