	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virt_wifi_newlink
_virt_wifi_newlink:                     ## @virt_wifi_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, -48(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_IFLA_LINK@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	%r12, 32(%r14)
	movq	(%r15), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	___dev_get_by_index
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_IFLA_MTU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rbx,%rcx,8)
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rcx
	cmpq	(%rax), %rcx
	jle	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%rax), %rcx
	movq	%rcx, (%r12)
LBB0_8:
	movq	_virt_wifi_rx_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_netdev_rx_handler_register
	movl	%eax, %ebx
	movq	16(%r14), %rax
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	addq	$8, %rax
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_18
LBB0_10:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_eth_hw_addr_inherit
	movq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_netif_stacked_transfer_operstate
	movq	16(%r14), %rsi
	addq	$8, %rsi
	movq	%r12, %rdi
	callq	_SET_NETDEV_DEV
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_common_wiphy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r12, %rdi
	callq	_register_netdevice
	movq	16(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_16
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_14:
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_netdev_upper_dev_link
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	%eax, %ebx
	movq	16(%r14), %rdi
	addq	$8, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_unregister_netdevice
LBB0_16:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	$0, 8(%r12)
LBB0_17:
	movq	16(%r14), %rdi
	callq	_netdev_rx_handler_unregister
	jmp	LBB0_18
LBB0_19:
	movq	$0, (%r14)
	movl	$0, 8(%r14)
	addq	$24, %r14
	movq	_virt_wifi_connect_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___module_get
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_LINK,8,3                  ## @IFLA_LINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFLA_MTU,8,3                   ## @IFLA_MTU
	.comm	_virt_wifi_rx_handler,4,2       ## @virt_wifi_rx_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't netdev_rx_handler_register: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_common_wiphy,4,2               ## @common_wiphy
L_.str.1:                               ## @.str.1
	.asciz	"can't register_netdevice: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't netdev_upper_dev_link: %d\n"

	.comm	_virt_wifi_connect_complete,4,2 ## @virt_wifi_connect_complete
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_virt_wifi_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virt_wifi_newlink
_virt_wifi_newlink:                     ; @virt_wifi_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	x21, x4
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
Lloh0:
	adrp	x24, _IFLA_LINK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IFLA_LINK@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_netif_carrier_off
	str	x20, [x19, #32]
	ldr	x8, [x24]
	ldr	x0, [x22, x8, lsl #3]
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x23
	bl	___dev_get_by_index
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _IFLA_MTU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFLA_MTU@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x0]
	cmp	x8, x9
	b.le	LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	ldr	x8, [x0]
	str	x8, [x20]
LBB0_9:
Lloh9:
	adrp	x8, _virt_wifi_rx_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _virt_wifi_rx_handler@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_netdev_rx_handler_register
	ldr	x1, [x19, #16]
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
	add	x0, x1, #8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_7
LBB0_11:
	mov	x0, x20
	bl	_eth_hw_addr_inherit
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_netif_stacked_transfer_operstate
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x20
	bl	_SET_NETDEV_DEV
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.12:
Lloh17:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _common_wiphy@GOTPAGE
Lloh21:
	ldr	x9, [x9, _common_wiphy@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	mov	x0, x20
	bl	_register_netdevice
	mov	x22, x0
	ldr	x0, [x19, #16]
	cbz	w22, LBB0_15
; %bb.13:
	add	x0, x0, #8
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_17
LBB0_14:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_15:
	mov	x1, x20
	mov	x2, x21
	bl	_netdev_upper_dev_link
	mov	x22, x0
	cbz	w0, LBB0_19
; %bb.16:
	ldr	x8, [x19, #16]
	add	x0, x8, #8
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	mov	x0, x20
	bl	_unregister_netdevice
LBB0_17:
	ldr	x0, [x20, #8]
	bl	_kfree
	str	xzr, [x20, #8]
LBB0_18:
	ldr	x0, [x19, #16]
	bl	_netdev_rx_handler_unregister
	b	LBB0_7
LBB0_19:
	str	xzr, [x19]
	str	wzr, [x19, #8]
	add	x0, x19, #24
Lloh30:
	adrp	x8, _virt_wifi_connect_complete@GOTPAGE
Lloh31:
	ldr	x8, [x8, _virt_wifi_connect_complete@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh33:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	___module_get
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_LINK,8,3                  ; @IFLA_LINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFLA_MTU,8,3                   ; @IFLA_MTU
	.comm	_virt_wifi_rx_handler,4,2       ; @virt_wifi_rx_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't netdev_rx_handler_register: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_common_wiphy,4,2               ; @common_wiphy
l_.str.1:                               ; @.str.1
	.asciz	"can't register_netdevice: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't netdev_upper_dev_link: %d\n"

	.comm	_virt_wifi_connect_complete,4,2 ; @virt_wifi_connect_complete
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_virt_wifi_newlink
.subsections_via_symbols
