	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiphy_unregister               ## -- Begin function wiphy_unregister
	.p2align	4, 0x90
_wiphy_unregister:                      ## @wiphy_unregister
	.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	%rdi, %r14
	callq	_wiphy_to_dev
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	$0, 40(%rbx)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	68(%rbx), %edi
	callq	_rfkill_unregister
	movq	_cfg80211_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	64(%rbx), %r13d
	leaq	56(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	xorl	%r15d, %r15d
	cmpl	$0, (%rbx)
	sete	%r15b
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_wait_event
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	60(%rbx), %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	48(%rbx), %edi
	callq	_debugfs_remove_recursive
	leaq	52(%rbx), %rdi
	callq	_list_del_rcu
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%rbx, %rdi
	callq	_cfg80211_lock_rdev
	movq	%rbx, %rdi
	callq	_cfg80211_unlock_rdev
	movq	%r14, %rdi
	callq	_wiphy_regulatory_deregister
	movq	_cfg80211_rdev_list_generation@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	44(%rbx), %rdi
	callq	_device_del
	movq	_cfg80211_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	36(%rbx), %rdi
	callq	_flush_work
	leaq	32(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	28(%rbx), %rdi
	callq	_flush_work
	leaq	24(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rdev_set_wakeup
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfg80211_rdev_free_wowlan      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cfg80211_mutex,4,2             ## @cfg80211_mutex
	.comm	_cfg80211_rdev_list_generation,4,2 ## @cfg80211_rdev_list_generation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiphy_unregister               ; -- Begin function wiphy_unregister
	.p2align	2
_wiphy_unregister:                      ; @wiphy_unregister
	.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	x20, x0
	bl	_wiphy_to_dev
	mov	x19, x0
	bl	_rtnl_lock
	str	wzr, [x19, #40]
	bl	_rtnl_unlock
	ldr	w0, [x19, #68]
	bl	_rfkill_unregister
Lloh0:
	adrp	x21, _cfg80211_mutex@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cfg80211_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	ldr	w22, [x19, #64]
	add	x23, x19, #56
	mov	x0, x23
	bl	_mutex_lock
	ldr	w24, [x19]
	mov	x0, x23
	bl	_mutex_unlock
	cmp	w24, #0
	cset	w1, eq
	mov	x0, x22
	bl	_wait_event
	mov	x0, x23
	bl	_mutex_lock
	add	x0, x19, #60
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x23
	bl	_mutex_unlock
	ldr	w0, [x19, #48]
	bl	_debugfs_remove_recursive
	add	x0, x19, #52
	bl	_list_del_rcu
	bl	_synchronize_rcu
	mov	x0, x19
	bl	_cfg80211_lock_rdev
	mov	x0, x19
	bl	_cfg80211_unlock_rdev
	mov	x0, x20
	bl	_wiphy_regulatory_deregister
Lloh2:
	adrp	x8, _cfg80211_rdev_list_generation@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cfg80211_rdev_list_generation@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x0, x19, #44
	bl	_device_del
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, x19, #36
	bl	_flush_work
	add	x0, x19, #32
	bl	_cancel_work_sync
	add	x0, x19, #28
	bl	_flush_work
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_rdev_set_wakeup
LBB0_3:
	mov	x0, x19
	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	_cfg80211_rdev_free_wowlan
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cfg80211_mutex,4,2             ; @cfg80211_mutex
	.comm	_cfg80211_rdev_list_generation,4,2 ; @cfg80211_rdev_list_generation
.subsections_via_symbols
