	.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	(%rsi), %eax
	movq	%rcx, %r15
                                        ## kill: def $edx killed $edx def $rdx
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_25
## %bb.3:
	movq	8(%rsi), %r12
	movq	8(%r12), %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_20:
	movslq	(%r15), %rax
	movq	_DVB_NET_DEVICES_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jbe	LBB0_24
## %bb.21:
	movq	8(%r14), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_24
## %bb.22:
	movq	(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_netdev_priv
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_25:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_16:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.17:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.18:
	movl	4(%r15), %esi
	movq	_DVB_NET_FEEDTYPE_MPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_7
LBB0_12:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.13:
	movq	_DVB_NET_DEVICES_MAX@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jbe	LBB0_24
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dvb_net_remove_if
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.15:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_module_put
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_9:
	movslq	(%r15), %rax
	movq	_DVB_NET_DEVICES_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jbe	LBB0_24
## %bb.10:
	movq	8(%r14), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_24
## %bb.11:
	movq	(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_netdev_priv
	movl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movl	4(%rax), %eax
LBB0_23:
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_4:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
LBB0_7:
	movq	%r14, %rdi
	callq	_dvb_net_add_if
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.19:
	movl	%ebx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_8:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_module_put
	jmp	LBB0_27
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_4
	.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	_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, [x1]
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_4
LBB0_1:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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_4:
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.5:
	mov	x19, x3
	ldr	x21, [x1, #8]
	ldr	x20, [x21, #8]
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldrsw	x8, [x19]
Lloh10:
	adrp	x9, _DVB_NET_DEVICES_MAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DVB_NET_DEVICES_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_19
; %bb.7:
	ldr	x9, [x20, #8]
	ldr	w9, [x9, x8, lsl #2]
	cbz	w9, LBB0_19
; %bb.8:
	ldr	x9, [x20]
	ldr	x0, [x9, x8, lsl #3]
	bl	_netdev_priv
	mov	w20, #0
	ldr	w8, [x0]
	str	w8, [x19, #4]
	b	LBB0_3
LBB0_9:
Lloh13:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh15:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_1
; %bb.11:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_1
; %bb.12:
	ldr	w1, [x19, #4]
Lloh18:
	adrp	x8, _DVB_NET_FEEDTYPE_MPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVB_NET_FEEDTYPE_MPE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	b	LBB0_23
LBB0_13:
Lloh21:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_1
; %bb.14:
Lloh24:
	adrp	x8, _DVB_NET_DEVICES_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DVB_NET_DEVICES_MAX@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_19
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_dvb_net_remove_if
	mov	x20, x0
	cbnz	w0, LBB0_3
	b	LBB0_25
LBB0_16:
	ldrsw	x8, [x19]
Lloh27:
	adrp	x9, _DVB_NET_DEVICES_MAX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DVB_NET_DEVICES_MAX@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_19
; %bb.17:
	ldr	x9, [x20, #8]
	ldr	w9, [x9, x8, lsl #2]
	cbz	w9, LBB0_19
; %bb.18:
	ldr	x9, [x20]
	ldr	x0, [x9, x8, lsl #3]
	bl	_netdev_priv
	mov	w20, #0
	ldr	d0, [x0]
	rev64.2s	v0, v0
	stur	d0, [x19, #4]
	b	LBB0_3
LBB0_19:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_20:
Lloh32:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_1
; %bb.21:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_1
; %bb.22:
	ldp	w2, w1, [x19, #4]
LBB0_23:
	mov	x0, x20
	bl	_dvb_net_add_if
	mov	x20, x0
	tbnz	w0, #31, LBB0_25
; %bb.24:
	str	w20, [x19]
	mov	w20, #0
	b	LBB0_3
LBB0_25:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_module_put
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_20-LBB0_6)>>2
                                        ; -- End function
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EPERM,4,2                      ; @EPERM
	.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
