	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmnet_vnd_newlink              ## -- Begin function rmnet_vnd_newlink
	.p2align	4, 0x90
_rmnet_vnd_newlink:                     ## @rmnet_vnd_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rmnet_get_endpoint
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, (%rbx)
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, 8(%r15)
	movq	%r14, (%r15)
	incl	(%r12)
	movq	_rmnet_link_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%r14, (%r13)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_dbg
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_rmnet_link_ops,4,2             ## @rmnet_link_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rmnet dev created\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmnet_vnd_newlink              ; -- Begin function rmnet_vnd_newlink
	.p2align	2
_rmnet_vnd_newlink:                     ; @rmnet_vnd_newlink
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	bl	_rmnet_get_endpoint
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh7:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
Lloh13:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	str	x24, [x23, #8]
	mov	x0, x19
	bl	_register_netdevice
	cbnz	w0, LBB0_5
; %bb.7:
	stp	x20, x19, [x22]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
Lloh16:
	adrp	x8, _rmnet_link_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rmnet_link_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	str	x20, [x23]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_rmnet_link_ops,4,2             ; @rmnet_link_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rmnet dev created\n"

.subsections_via_symbols
