	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_net_add_if
_dvb_net_add_if:                        ## @dvb_net_add_if
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_DVB_NET_FEEDTYPE_MPE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_DVB_NET_FEEDTYPE_ULE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_get_if
	testl	%eax, %eax
	js	LBB0_2
## %bb.5:
	movl	%eax, %ebx
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dvb_net_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$64, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	16(%r14), %rax
	movl	(%rax), %r8d
	movl	4(%r12), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	testl	%r8d, %r8d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_snprintf
LBB0_10:
	movl	$6, (%r12)
	movl	16(%r12), %edi
	movq	16(%r14), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movl	$6, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movl	%ebx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, (%rax,%rcx,8)
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, 56(%rax)
	movl	8(%r14), %eax
	movl	%eax, 48(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r15)
	movq	_RX_MODE_UNI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	$1, (%r15)
	movq	$0, 24(%r15)
	movq	%r13, 16(%r15)
	movq	%r15, %rdi
	callq	_reset_ule
	leaq	12(%r15), %rdi
	movq	_wq_set_multicast_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%r15), %rdi
	movq	_wq_restart_net_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_init
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	movq	%r12, %rdi
	callq	_free_netdev
	movl	%r15d, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DVB_NET_FEEDTYPE_MPE,8,3       ## @DVB_NET_FEEDTYPE_MPE
	.comm	_DVB_NET_FEEDTYPE_ULE,8,3       ## @DVB_NET_FEEDTYPE_ULE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_dvb_net_setup,4,2              ## @dvb_net_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
L_.str.1:                               ## @.str.1
	.asciz	"dvb%d%u%d"

L_.str.2:                               ## @.str.2
	.asciz	"dvb%d_%d"

	.comm	_RX_MODE_UNI,4,2                ## @RX_MODE_UNI
	.comm	_wq_set_multicast_list,4,2      ## @wq_set_multicast_list
	.comm	_wq_restart_net_feed,4,2        ## @wq_restart_net_feed
L_.str.3:                               ## @.str.3
	.asciz	"created network interface %s\n"

	.no_dead_strip	_dvb_net_add_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_net_add_if
_dvb_net_add_if:                        ; @dvb_net_add_if
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _DVB_NET_FEEDTYPE_MPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVB_NET_FEEDTYPE_MPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DVB_NET_FEEDTYPE_ULE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DVB_NET_FEEDTYPE_ULE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x9, x2, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	bl	_get_if
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh6:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _dvb_net_setup@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dvb_net_setup@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #64
	bl	_alloc_netdev
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	ldr	x8, [x20, #16]
	ldr	w4, [x8]
	ldr	w0, [x0, #4]
Lloh14:
	adrp	x9, _IFNAMSIZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IFNAMSIZ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	ldr	x8, [x8, #8]
	ldr	w3, [x8]
	cbz	w4, LBB0_9
; %bb.4:
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x19, [sp]
	b	LBB0_10
LBB0_5:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x4, x19
LBB0_10:
	bl	_snprintf
	mov	w8, #6
	str	w8, [x22]
	ldr	w0, [x22, #16]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x20]
	str	x22, [x8, w19, uxtw #3]
	mov	x0, x22
	bl	_netdev_priv
	mov	x24, x0
	str	x22, [x0, #56]
	ldr	w8, [x20, #8]
	str	w8, [x0, #48]
	str	x21, [x0, #40]
Lloh25:
	adrp	x8, _RX_MODE_UNI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RX_MODE_UNI@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	mov	w8, #1
	str	w8, [x0]
	stp	x23, xzr, [x0, #16]
	bl	_reset_ule
	add	x0, x24, #12
Lloh28:
	adrp	x8, _wq_set_multicast_list@GOTPAGE
Lloh29:
	ldr	x8, [x8, _wq_set_multicast_list@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x24, #8
Lloh31:
	adrp	x8, _wq_restart_net_feed@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wq_restart_net_feed@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x24, #4
	bl	_mutex_init
	str	x21, [x22, #8]
	mov	x0, x22
	bl	_register_netdev
	tbnz	w0, #31, LBB0_12
; %bb.11:
	ldr	w1, [x22, #4]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	b	LBB0_7
LBB0_12:
	mov	x21, x0
	mov	w8, w19
	ldr	x9, [x20]
	str	xzr, [x9, x8, lsl #3]
	mov	x0, x22
	bl	_free_netdev
	mov	x19, x21
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_DVB_NET_FEEDTYPE_MPE,8,3       ; @DVB_NET_FEEDTYPE_MPE
	.comm	_DVB_NET_FEEDTYPE_ULE,8,3       ; @DVB_NET_FEEDTYPE_ULE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_dvb_net_setup,4,2              ; @dvb_net_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
l_.str.1:                               ; @.str.1
	.asciz	"dvb%d%u%d"

l_.str.2:                               ; @.str.2
	.asciz	"dvb%d_%d"

	.comm	_RX_MODE_UNI,4,2                ; @RX_MODE_UNI
	.comm	_wq_set_multicast_list,4,2      ; @wq_set_multicast_list
	.comm	_wq_restart_net_feed,4,2        ; @wq_restart_net_feed
l_.str.3:                               ; @.str.3
	.asciz	"created network interface %s\n"

	.no_dead_strip	_dvb_net_add_if
.subsections_via_symbols
