	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_regdom                     ## -- Begin function set_regdom
	.p2align	4, 0x90
_set_regdom:                            ## @set_regdom
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_reg_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_get_last_request
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	___set_regdom
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	movq	_EALREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_reg_set_request_processed
LBB0_3:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_4:
	cmpl	$0, 4(%r14)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_get_cfg80211_regdom
	xorl	%r12d, %r12d
	cmpq	%r15, %rax
	setne	%r12b
LBB0_6:
	movl	%r12d, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movl	(%r14), %edi
	callq	_update_all_wiphy_regulatory
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_cfg80211_regdom
	movq	%rax, %rdi
	callq	_print_regdomain
	movq	%r14, %rdi
	callq	_nl80211_send_reg_change_event
	xorl	%eax, %eax
	callq	_reg_set_request_processed
LBB0_9:
	movq	_reg_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_mutex,4,2                  ## @reg_mutex
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_regdom                     ; -- Begin function set_regdom
	.p2align	2
_set_regdom:                            ; @set_regdom
	.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
	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	___set_regdom
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _EALREADY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	bl	_reg_set_request_processed
LBB0_3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.5:
	mov	w0, #0
	bl	_WARN_ON
	cbz	x0, LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
	bl	_get_cfg80211_regdom
	cmp	x0, x20
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_6
LBB0_8:
	ldr	w0, [x19]
	bl	_update_all_wiphy_regulatory
	bl	_get_cfg80211_regdom
	bl	_print_regdomain
	mov	x0, x19
	bl	_nl80211_send_reg_change_event
	bl	_reg_set_request_processed
	mov	w21, #0
LBB0_9:
Lloh8:
	adrp	x0, _reg_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _reg_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_mutex,4,2                  ; @reg_mutex
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
