	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_add_virtual_intf
_qtnf_add_virtual_intf:                 ## @qtnf_add_virtual_intf
	.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, %r14d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_wiphy_priv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_qtnf_validate_iface_combinations
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	movl	%r13d, %edi
	jmp	LBB0_8
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_8
LBB0_4:
	movl	%r14d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	callq	_qtnf_mac_get_free_vif
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rax, %r13
	movl	40(%rax), %edi
	callq	_eth_zero_addr
	movl	48(%r13), %edi
	callq	_eth_zero_addr
	movq	_QTNF_DEF_BSS_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	%r13, %rdi
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r12, 24(%r13)
	movq	%r13, %rax
	movl	%r14d, 8(%r13)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.12:
	movq	8(%rcx), %r12
	movl	(%rcx), %edx
	movq	%rax, %r13
	jmp	LBB0_13
LBB0_11:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
	movl	%ebx, %edi
	jmp	LBB0_8
LBB0_10:
	xorl	%r12d, %r12d
	movq	%rax, %r13
	xorl	%edx, %edx
LBB0_13:
	movq	%r13, %rdi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r12, %rcx
	callq	_qtnf_cmd_send_add_intf
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_pr_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_15:
	movl	40(%r13), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movzbl	-52(%rbp), %ecx                 ## 1-byte Folded Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_qtnf_core_net_attach
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	%eax, %r14d
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	$0, 32(%r13)
	jmp	LBB0_19
LBB0_16:
	movl	(%r15), %esi
	movl	(%r13), %edx
	movl	40(%r13), %ecx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_qtnf_cmd_send_del_intf
LBB0_20:
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r14d, %edi
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_21:
	movq	32(%r13), %rax
	movq	%rax, 16(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC%u invalid combination: failed to add type %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"MAC%u: no free VIF available\n"

	.comm	_QTNF_DEF_BSS_PRIORITY,4,2      ## @QTNF_DEF_BSS_PRIORITY
L_.str.2:                               ## @.str.2
	.asciz	"MAC%u: unsupported IF type %d\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.3:                               ## @.str.3
	.asciz	"VIF%u.%u: failed to add VIF %pM\n"

L_.str.4:                               ## @.str.4
	.asciz	"VIF%u.%u: FW reported bad MAC: %pM\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"VIF%u.%u: failed to attach netdev\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_qtnf_add_virtual_intf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_add_virtual_intf
_qtnf_add_virtual_intf:                 ; @qtnf_add_virtual_intf
	.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	x25, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x26, x0
	bl	_wiphy_priv
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	x0, x26
	mov	x1, #0
	mov	x2, x24
	bl	_qtnf_validate_iface_combinations
	cbz	w0, LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	w1, [x21]
	str	x24, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	b	LBB0_11
LBB0_3:
	and	w8, w24, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_qtnf_mac_get_free_vif
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w0, [x0, #40]
	bl	_eth_zero_addr
	ldr	w0, [x20, #48]
	bl	_eth_zero_addr
Lloh2:
	adrp	x8, _QTNF_DEF_BSS_PRIORITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QTNF_DEF_BSS_PRIORITY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #44]
	add	x19, x20, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x26, [x20, #24]
	str	w24, [x20, #8]
	cbz	x25, LBB0_12
; %bb.6:
	ldr	x26, [x25, #8]
	ldr	w2, [x25]
	b	LBB0_13
LBB0_7:
	ldr	w1, [x21]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w1, [x21]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_9:
Lloh11:
	adrp	x8, _EFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	mov	x26, #0
	mov	w2, #0
LBB0_13:
	mov	x0, x20
	mov	x1, x24
	mov	x3, x26
	bl	_qtnf_cmd_send_add_intf
	cbz	w0, LBB0_15
; %bb.14:
	mov	x24, x0
	ldr	w1, [x21]
	ldr	w8, [x20]
	stp	x8, x26, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_20
LBB0_15:
	ldr	w0, [x20, #40]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_18
; %bb.16:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_qtnf_core_net_attach
	cbz	w0, LBB0_21
; %bb.17:
	mov	x24, x0
	ldr	w1, [x21]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
	str	xzr, [x20, #32]
	b	LBB0_19
LBB0_18:
	ldr	w1, [x21]
	ldr	w8, [x20]
	ldr	w9, [x20, #40]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_19:
	mov	x0, x20
	bl	_qtnf_cmd_send_del_intf
LBB0_20:
Lloh22:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x24
	b	LBB0_11
LBB0_21:
	ldr	x8, [x20, #32]
	str	x8, [x20, #16]
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC%u invalid combination: failed to add type %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"MAC%u: no free VIF available\n"

	.comm	_QTNF_DEF_BSS_PRIORITY,4,2      ; @QTNF_DEF_BSS_PRIORITY
l_.str.2:                               ; @.str.2
	.asciz	"MAC%u: unsupported IF type %d\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.3:                               ; @.str.3
	.asciz	"VIF%u.%u: failed to add VIF %pM\n"

l_.str.4:                               ; @.str.4
	.asciz	"VIF%u.%u: FW reported bad MAC: %pM\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"VIF%u.%u: failed to attach netdev\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_qtnf_add_virtual_intf
.subsections_via_symbols
