	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_vif_alloc                  ## -- Begin function wil_vif_alloc
	.p2align	4, 0x90
_wil_vif_alloc:                         ## @wil_vif_alloc
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_wil_vif_find_free_mid
	movq	%rax, %r13
	movq	_U8_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_wil_dev_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movzbl	%bl, %edx
	movl	$48, %edi
	movq	%r12, %rsi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	movq	_wil_ndev_destructor@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	$1, (%r12)
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	callq	_wil_to_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	%r12, 8(%r14)
LBB0_8:
	movq	%r12, %rdi
	callq	_ndev_to_vif
	movq	%rax, %rbx
	movq	%r12, 40(%rax)
	movq	%r14, 32(%rax)
	movq	%r13, 24(%rax)
	movq	%rax, %rdi
	callq	_wil_vif_init
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	%r15d, (%rbx)
	movq	_wil_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	%r12, %rdi
	callq	_wil_set_ethtoolops
	movq	%rbx, 16(%r12)
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r12)
	orl	%ecx, 8(%r12)
	movl	16(%rbx), %edi
	callq	_wiphy_dev
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SET_NETDEV_DEV
	movq	%r12, 8(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U8_MAX,8,3                     ## @U8_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no available virtual interface\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_wil_dev_setup,4,2              ## @wil_dev_setup
L_.str.1:                               ## @.str.1
	.asciz	"alloc_netdev failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wil_ndev_destructor,4,2        ## @wil_ndev_destructor
	.comm	_wil_netdev_ops,4,2             ## @wil_netdev_ops
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_vif_alloc                  ; -- Begin function wil_vif_alloc
	.p2align	2
_wil_vif_alloc:                         ; @wil_vif_alloc
	.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, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	bl	_wil_vif_find_free_mid
Lloh0:
	adrp	x8, _U8_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U8_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wil_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x22, x0
Lloh7:
	adrp	x8, _wil_dev_setup@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wil_dev_setup@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	w0, #48
	mov	x1, x23
	mov	x2, x19
	bl	_alloc_netdev
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	cbz	x22, LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _wil_ndev_destructor@GOTPAGE
Lloh11:
	ldr	x8, [x8, _wil_ndev_destructor@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_wil_to_dev
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_7:
	str	x19, [x20, #8]
LBB0_8:
	mov	x0, x19
	bl	_ndev_to_vif
	mov	x23, x0
	stp	x20, x19, [x0, #32]
	str	x22, [x0, #24]
	bl	_wil_vif_init
	ldr	w8, [x20]
	str	w8, [x23, #16]
	str	w21, [x23]
Lloh17:
	adrp	x8, _wil_netdev_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _wil_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_wil_set_ethtoolops
Lloh19:
	adrp	x8, _NETIF_F_HW_CSUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
	str	x23, [x19, #16]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19, #8]
	orr	w9, w9, w8
	stp	w8, w9, [x19, #4]
	ldr	w0, [x23, #16]
	bl	_wiphy_dev
	mov	x1, x0
	mov	x0, x19
	bl	_SET_NETDEV_DEV
	str	x19, [x23, #8]
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_U8_MAX,8,3                     ; @U8_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no available virtual interface\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_wil_dev_setup,4,2              ; @wil_dev_setup
l_.str.1:                               ; @.str.1
	.asciz	"alloc_netdev failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wil_ndev_destructor,4,2        ; @wil_ndev_destructor
	.comm	_wil_netdev_ops,4,2             ; @wil_netdev_ops
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
.subsections_via_symbols
