	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiphy_regulatory_deregister    ## -- Begin function wiphy_regulatory_deregister
	.p2align	4, 0x90
_wiphy_regulatory_deregister:           ## @wiphy_regulatory_deregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_reg_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	_get_last_request
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_reg_dev_ignore_cell_hint
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_reg_num_devs_support_basehint@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_2:
	movq	%rbx, %rdi
	callq	_get_wiphy_regdom
	movl	%eax, %edi
	callq	_rcu_free_regdom
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	testq	%r14, %r14
	je	LBB0_6
## %bb.3:
	movl	4(%r14), %edi
	callq	_wiphy_idx_to_wiphy
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.5:
	movq	_WIPHY_IDX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ENVIRON_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	_reg_mutex@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_mutex,4,2                  ## @reg_mutex
	.comm	_reg_num_devs_support_basehint,4,2 ## @reg_num_devs_support_basehint
	.comm	_WIPHY_IDX_INVALID,4,2          ## @WIPHY_IDX_INVALID
	.comm	_ENVIRON_ANY,4,2                ## @ENVIRON_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiphy_regulatory_deregister    ; -- Begin function wiphy_regulatory_deregister
	.p2align	2
_wiphy_regulatory_deregister:           ; @wiphy_regulatory_deregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, _reg_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _reg_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	bl	_get_last_request
	mov	x19, x0
	mov	x0, x20
	bl	_reg_dev_ignore_cell_hint
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _reg_num_devs_support_basehint@GOTPAGE
Lloh3:
	ldr	x8, [x8, _reg_num_devs_support_basehint@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_2:
	mov	x0, x20
	bl	_get_wiphy_regdom
	bl	_rcu_free_regdom
	ldr	w0, [x20]
	mov	x1, #0
	bl	_rcu_assign_pointer
	cbz	x19, LBB0_6
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_wiphy_idx_to_wiphy
	cbz	x0, LBB0_6
; %bb.4:
	cmp	x0, x20
	b.ne	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _WIPHY_IDX_INVALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WIPHY_IDX_INVALID@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ENVIRON_ANY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ENVIRON_ANY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_6:
Lloh10:
	adrp	x0, _reg_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _reg_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_mutex,4,2                  ; @reg_mutex
	.comm	_reg_num_devs_support_basehint,4,2 ; @reg_num_devs_support_basehint
	.comm	_WIPHY_IDX_INVALID,4,2          ; @WIPHY_IDX_INVALID
	.comm	_ENVIRON_ANY,4,2                ; @ENVIRON_ANY
.subsections_via_symbols
