	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_net_do_ioctl
_dvb_net_do_ioctl:                      ## @dvb_net_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	_O_ACCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	8(%rdi), %r12
	movq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_32:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_29
## %bb.6:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_25:
	movslq	(%r15), %rax
	movq	_DVB_NET_DEVICES_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jbe	LBB0_15
## %bb.26:
	movq	16(%r14), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_15
## %bb.27:
	movq	8(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_netdev_priv
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_29:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_21:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_8
## %bb.22:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.23:
	movl	4(%r15), %esi
	movq	_DVB_NET_FEEDTYPE_MPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_11
LBB0_17:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_8
## %bb.18:
	movq	_DVB_NET_DEVICES_MAX@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jbe	LBB0_15
## %bb.19:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dvb_net_remove_if
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.20:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_module_put
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_13:
	movslq	(%r15), %rax
	movq	_DVB_NET_DEVICES_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jbe	LBB0_15
## %bb.14:
	movq	16(%r14), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_15
## %bb.16:
	movq	8(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_netdev_priv
	movl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movl	4(%rax), %eax
LBB0_28:
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_7:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
LBB0_11:
	movq	%r14, %rdi
	callq	_dvb_net_add_if
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.24:
	movl	%ebx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_8:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_30:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_32
LBB0_12:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_module_put
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_21
	.long	L0_0_set_17
	.long	L0_0_set_13
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_DVB_NET_DEVICES_MAX,8,3        ## @DVB_NET_DEVICES_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DVB_NET_FEEDTYPE_MPE,4,2       ## @DVB_NET_FEEDTYPE_MPE
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_dvb_net_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_net_do_ioctl
_dvb_net_do_ioctl:                      ; @dvb_net_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _O_ACCMODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_ACCMODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0, #8]
	ldr	x19, [x22, #8]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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
LBB0_6:
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_11
; %bb.7:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldrsw	x8, [x20]
Lloh12:
	adrp	x9, _DVB_NET_DEVICES_MAX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DVB_NET_DEVICES_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_21
; %bb.9:
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x8, lsl #2]
	cbz	w9, LBB0_21
; %bb.10:
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x8, lsl #3]
	bl	_netdev_priv
	mov	w21, #0
	ldr	w8, [x0]
	str	w8, [x20, #4]
	b	LBB0_29
LBB0_11:
Lloh15:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_28
LBB0_12:
Lloh17:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_27
; %bb.13:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_27
; %bb.14:
	ldr	w1, [x20, #4]
Lloh20:
	adrp	x8, _DVB_NET_FEEDTYPE_MPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DVB_NET_FEEDTYPE_MPE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	b	LBB0_25
LBB0_15:
Lloh23:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_27
; %bb.16:
Lloh26:
	adrp	x8, _DVB_NET_DEVICES_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DVB_NET_DEVICES_MAX@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ls	LBB0_21
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_net_remove_if
	mov	x21, x0
	cbnz	w0, LBB0_29
	b	LBB0_30
LBB0_18:
	ldrsw	x8, [x20]
Lloh29:
	adrp	x9, _DVB_NET_DEVICES_MAX@GOTPAGE
Lloh30:
	ldr	x9, [x9, _DVB_NET_DEVICES_MAX@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_21
; %bb.19:
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x8, lsl #2]
	cbz	w9, LBB0_21
; %bb.20:
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x8, lsl #3]
	bl	_netdev_priv
	mov	w21, #0
	ldr	d0, [x0]
	rev64.2s	v0, v0
	stur	d0, [x20, #4]
	b	LBB0_29
LBB0_21:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_22:
Lloh34:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_27
; %bb.23:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_27
; %bb.24:
	ldp	w2, w1, [x20, #4]
LBB0_25:
	mov	x0, x19
	bl	_dvb_net_add_if
	mov	x21, x0
	tbnz	w0, #31, LBB0_30
; %bb.26:
	str	w21, [x20]
	mov	w21, #0
	b	LBB0_29
LBB0_27:
Lloh37:
	adrp	x8, _EPERM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_29:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_5
LBB0_30:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_module_put
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
                                        ; -- End function
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_DVB_NET_DEVICES_MAX,8,3        ; @DVB_NET_DEVICES_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DVB_NET_FEEDTYPE_MPE,4,2       ; @DVB_NET_FEEDTYPE_MPE
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_dvb_net_do_ioctl
.subsections_via_symbols
