	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_virtual_monitor  ## -- Begin function ieee80211_add_virtual_monitor
	.p2align	4, 0x90
_ieee80211_add_virtual_monitor:         ## @ieee80211_add_virtual_monitor
	.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	_IEEE80211_HW_WANT_MONITOR_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.3:
	movq	32(%rbx), %rdi
	addq	$16, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%r15), %r12d
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	28(%rbx), %edi
	callq	_wiphy_name
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %edi
	movl	%r13d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_ieee80211_set_default_queues
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drv_add_interface
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_ieee80211_check_queues
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_9:
	leaq	16(%rbx), %rsi
	movq	_IEEE80211_CHANCTX_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ieee80211_vif_use_channel
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drv_remove_interface
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	movl	%r12d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_WANT_MONITOR_VIF,4,2 ## @IEEE80211_HW_WANT_MONITOR_VIF
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-monitor"

	.comm	_IEEE80211_CHANCTX_EXCLUSIVE,4,2 ## @IEEE80211_CHANCTX_EXCLUSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_virtual_monitor  ; -- Begin function ieee80211_add_virtual_monitor
	.p2align	2
_ieee80211_add_virtual_monitor:         ; @ieee80211_add_virtual_monitor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #24]
Lloh0:
	adrp	x9, _IEEE80211_HW_WANT_MONITOR_VIF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_WANT_MONITOR_VIF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_ASSERT_RTNL
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #32]
	add	x0, x8, #16
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	str	x19, [x0, #8]
Lloh6:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w21, [x0]
Lloh9:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	ldr	w0, [x19, #28]
	bl	_wiphy_name
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	mov	x0, x20
	bl	_ieee80211_set_default_queues
	mov	x0, x19
	mov	x1, x20
	bl	_drv_add_interface
	mov	x21, x0
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_ieee80211_check_queues
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_9:
	add	x1, x19, #16
Lloh17:
	adrp	x8, _IEEE80211_CHANCTX_EXCLUSIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_CHANCTX_EXCLUSIVE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ieee80211_vif_use_channel
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_drv_remove_interface
LBB0_11:
	mov	x0, x20
	bl	_kfree
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_WANT_MONITOR_VIF,4,2 ; @IEEE80211_HW_WANT_MONITOR_VIF
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-monitor"

	.comm	_IEEE80211_CHANCTX_EXCLUSIVE,4,2 ; @IEEE80211_CHANCTX_EXCLUSIVE
.subsections_via_symbols
