	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_add_iface
_wil_cfg80211_add_iface:                ## @wil_cfg80211_add_iface
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_wil_dbg_misc
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r13d, (%rax)
	jne	LBB0_8
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_8:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	movq	%r14, %r13
	je	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_wil_cfg80211_validate_add_iface
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wil_err
	jmp	LBB0_4
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.19:
	movq	%rax, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	%rbx, 16(%r12)
	movq	8(%r12), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	callq	_ether_addr_copy
	movq	%r12, 8(%r14)
LBB0_20:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %edi
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movzbl	-48(%rbp), %edx                 ## 1-byte Folded Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	_wil_vif_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.21:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_5
LBB0_13:
	movq	%rbx, %rdi
	callq	_vif_to_ndev
	movq	%rax, %r12
	movq	(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	movq	(%rax), %rsi
	callq	_ether_addr_copy
	movq	(%r15), %rdi
	callq	_is_valid_ether_addr
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	(%r15), %rsi
	callq	_ether_addr_copy
	jmp	LBB0_16
LBB0_15:
	movq	(%r14), %rsi
	callq	_ether_addr_copy
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movb	(%rbx), %dl
	btcl	%edx, %ecx
	orl	$2, %ecx
	movl	%ecx, (%rax)
LBB0_16:
	movq	%r12, %r15
	movq	%rbx, %rdi
	callq	_vif_to_wdev
	movq	%rax, %r12
	movq	8(%rax), %rdi
	movq	8(%r15), %rsi
	callq	_ether_addr_copy
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_wil_vif_add
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_wil_vif_free
	movl	%r15d, %edi
	jmp	LBB0_5
LBB0_17:
	movl	(%rbx), %edx
	movq	8(%r12), %r8
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_wil_info
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_iface, type %d\n"

	.comm	_NL80211_IFTYPE_P2P_DEVICE,4,2  ## @NL80211_IFTYPE_P2P_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"P2P_DEVICE interface already created\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"virtual interfaces not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"iface validation failed, err=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"added VIF, mid %d iftype %d MAC %pM\n"

	.no_dead_strip	_wil_cfg80211_add_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_add_iface
_wil_cfg80211_add_iface:                ; @wil_cfg80211_add_iface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	bl	_wiphy_to_wil
	mov	x19, x0
	ldr	x25, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wil_dbg_misc
Lloh2:
	adrp	x8, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_wil_cfg80211_validate_add_iface
	cbz	w0, LBB0_13
; %bb.5:
	mov	x23, x0
	str	x23, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_err
	mov	x0, x23
	b	LBB0_12
LBB0_6:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.7:
	mov	x22, x0
	str	w20, [x0]
	str	x23, [x0, #16]
	ldr	x0, [x0, #8]
	ldr	x1, [x25]
	bl	_ether_addr_copy
	str	x22, [x19, #8]
LBB0_8:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_9:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_wil_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_13:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	bl	_wil_vif_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x21
	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
	add	sp, sp, #96
	b	_ERR_CAST
LBB0_15:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_16:
	mov	x0, x21
	bl	_vif_to_ndev
	mov	x23, x0
	ldr	x0, [x0]
	ldr	x1, [x25]
	bl	_ether_addr_copy
	ldr	x0, [x22]
	bl	_is_valid_ether_addr
	mov	x8, x0
	ldr	x0, [x23, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x1, [x22]
	bl	_ether_addr_copy
	b	LBB0_19
LBB0_18:
	ldr	x1, [x25]
	bl	_ether_addr_copy
	ldr	x8, [x23, #8]
	ldr	w9, [x8]
	ldr	w10, [x21]
	mov	w11, #1
	lsl	w10, w11, w10
	eor	w9, w10, w9
	orr	w9, w9, #0x2
	str	w9, [x8]
LBB0_19:
	mov	x0, x21
	bl	_vif_to_wdev
	mov	x22, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x23, #8]
	bl	_ether_addr_copy
	mov	x0, x19
	mov	x1, x21
	bl	_wil_vif_add
	cbz	w0, LBB0_21
; %bb.20:
	mov	x23, x0
	mov	x0, x21
	bl	_wil_vif_free
	mov	x0, x23
	b	LBB0_12
LBB0_21:
	ldr	w2, [x21]
	ldr	x4, [x22, #8]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_wil_info
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_iface, type %d\n"

	.comm	_NL80211_IFTYPE_P2P_DEVICE,4,2  ; @NL80211_IFTYPE_P2P_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"P2P_DEVICE interface already created\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"virtual interfaces not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"iface validation failed, err=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"added VIF, mid %d iftype %d MAC %pM\n"

	.no_dead_strip	_wil_cfg80211_add_iface
.subsections_via_symbols
