	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmnet_newlink
_rmnet_newlink:                         ## @rmnet_newlink
	.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	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_RMNET_FLAGS_INGRESS_DEAGGREGATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_RMNET_EPMODE_VND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IFLA_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___dev_get_by_index
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_IFLA_RMNET_MUX_ID@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_5
## %bb.6:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_u16
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rmnet_register_real_device
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	%rbx, %rdi
	callq	_rmnet_get_port_rtnl
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_rmnet_vnd_newlink
	testl	%eax, %eax
	je	LBB0_10
## %bb.13:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rmnet_unregister_real_device
LBB0_14:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movq	%r13, %rdi
	callq	_hlist_add_head_rcu
	movq	_IFLA_RMNET_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_12
## %bb.11:
	callq	_nla_data
	movl	4(%rax), %ebx
	andl	(%rax), %ebx
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_netdev_dbg
	movl	%ebx, 4(%r14)
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_RMNET_FLAGS_INGRESS_DEAGGREGATION,4,2 ## @RMNET_FLAGS_INGRESS_DEAGGREGATION
	.comm	_RMNET_EPMODE_VND,4,2           ## @RMNET_EPMODE_VND
	.comm	_IFLA_LINK,8,3                  ## @IFLA_LINK
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFLA_RMNET_MUX_ID,8,3          ## @IFLA_RMNET_MUX_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IFLA_RMNET_FLAGS,8,3           ## @IFLA_RMNET_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data format [0x%08X]\n"

	.no_dead_strip	_rmnet_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmnet_newlink
_rmnet_newlink:                         ; @rmnet_newlink
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _RMNET_FLAGS_INGRESS_DEAGGREGATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMNET_FLAGS_INGRESS_DEAGGREGATION@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _RMNET_EPMODE_VND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RMNET_EPMODE_VND@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
Lloh6:
	adrp	x8, _IFLA_LINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_LINK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x0, [x2, x8, lsl #3]
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x22
	bl	___dev_get_by_index
	cbz	x19, LBB0_8
; %bb.1:
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.2:
Lloh9:
	adrp	x24, _IFLA_RMNET_MUX_ID@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IFLA_RMNET_MUX_ID@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x21, x8, lsl #3]
	cbz	x8, LBB0_9
; %bb.3:
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x23, x0
	ldr	x8, [x24]
	ldr	x0, [x21, x8, lsl #3]
	bl	_nla_get_u16
	mov	x26, x0
	mov	x0, x22
	bl	_rmnet_register_real_device
	mov	x25, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x22
	bl	_rmnet_get_port_rtnl
	mov	x24, x0
	mov	x0, x26
	mov	x1, x19
	mov	x2, x24
	mov	x3, x22
	mov	x4, x23
	bl	_rmnet_vnd_newlink
	cbz	w0, LBB0_13
; %bb.6:
	mov	x25, x0
	mov	x0, x22
	mov	x1, x24
	bl	_rmnet_unregister_real_device
LBB0_7:
	mov	x0, x23
	bl	_kfree
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_12:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	str	w27, [x24]
	ldr	x8, [x24, #8]
	add	x1, x8, x26, lsl #2
	mov	x0, x23
	bl	_hlist_add_head_rcu
Lloh20:
	adrp	x8, _IFLA_RMNET_FLAGS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IFLA_RMNET_FLAGS@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_nla_data
	ldp	w8, w9, [x0]
	and	w20, w9, w8
LBB0_15:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netdev_dbg
	mov	w25, #0
	str	w20, [x24, #4]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_RMNET_FLAGS_INGRESS_DEAGGREGATION,4,2 ; @RMNET_FLAGS_INGRESS_DEAGGREGATION
	.comm	_RMNET_EPMODE_VND,4,2           ; @RMNET_EPMODE_VND
	.comm	_IFLA_LINK,8,3                  ; @IFLA_LINK
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFLA_RMNET_MUX_ID,8,3          ; @IFLA_RMNET_MUX_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IFLA_RMNET_FLAGS,8,3           ; @IFLA_RMNET_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data format [0x%08X]\n"

	.no_dead_strip	_rmnet_newlink
.subsections_via_symbols
