	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_regdom
___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	%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, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_last_request
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_reg_is_valid_request
	testl	%eax, %eax
	je	LBB0_17
## %bb.1:
	movl	(%r15), %edi
	callq	_is_world_regdom
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_update_world_regdomain
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_3:
	movl	(%r15), %edi
	callq	_is_alpha2_set
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r15), %edi
	callq	_is_an_alpha2
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	callq	_is_unknown_alpha2
	testl	%eax, %eax
	je	LBB0_19
LBB0_6:
	movq	(%r14), %rax
	movq	_NL80211_REGDOM_SET_BY_COUNTRY_IE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	callq	_regdom_changes
	testl	%eax, %eax
	je	LBB0_22
LBB0_8:
	movq	%r15, %rdi
	callq	_is_valid_rd
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movl	12(%r14), %edi
	callq	_wiphy_idx_to_wiphy
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	(%r14), %rax
	movq	_NL80211_REGDOM_SET_BY_DRIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.11:
	cmpq	(%rbx), %rax
	je	LBB0_26
LBB0_12:
	cmpl	$0, 8(%r14)
	movq	(%r14), %rax
	je	LBB0_20
## %bb.13:
	cmpq	(%rbx), %rax
	je	LBB0_19
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_cfg80211_regdom
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_regdom_intersect
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	_NL80211_REGDOM_SET_BY_DRIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.16:
	movq	%r12, %rdi
	callq	_get_wiphy_regdom
	movq	%rax, %rbx
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	movq	%rbx, %rdi
	callq	_rcu_free_regdom
	jmp	LBB0_28
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_18:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%r15, %rdi
	callq	_print_regdomain_info
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_20:
	movq	_NL80211_REGDOM_SET_BY_DRIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.21:
	cmpq	$0, (%r12)
	je	LBB0_29
LBB0_22:
	movq	_EALREADY@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_reg_timeout@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_schedule_delayed_work
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_27:
	movq	%r15, %rdi
	callq	_kfree
LBB0_28:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r13, %rsi
	jmp	LBB0_33
LBB0_29:
	movq	%r15, %rdi
	callq	_reg_copy_regd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_31:
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
LBB0_32:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
LBB0_33:
	callq	_reset_regdomains
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_REGDOM_SET_BY_COUNTRY_IE,8,3 ## @NL80211_REGDOM_SET_BY_COUNTRY_IE
	.comm	_EALREADY,4,2                   ## @EALREADY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid regulatory domain detected:\n"

	.comm	_NL80211_REGDOM_SET_BY_DRIVER,8,3 ## @NL80211_REGDOM_SET_BY_DRIVER
	.comm	_reg_timeout,4,2                ## @reg_timeout
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	___set_regdom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_regdom
___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	x19, x0
	bl	_get_last_request
	mov	x20, x0
	ldr	w0, [x19]
	bl	_reg_is_valid_request
	cbz	w0, LBB0_19
; %bb.1:
	ldr	w0, [x19]
	bl	_is_world_regdom
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_update_world_regdomain
LBB0_3:
	mov	w0, #0
	b	LBB0_21
LBB0_4:
	ldr	w0, [x19]
	bl	_is_alpha2_set
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x19]
	bl	_is_an_alpha2
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	bl	_is_unknown_alpha2
	cbz	w0, LBB0_19
LBB0_7:
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _NL80211_REGDOM_SET_BY_COUNTRY_IE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NL80211_REGDOM_SET_BY_COUNTRY_IE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_regdom_changes
	cbz	w0, LBB0_24
LBB0_9:
	mov	x0, x19
	bl	_is_valid_rd
	cbz	w0, LBB0_18
; %bb.10:
	ldr	w0, [x20, #12]
	bl	_wiphy_idx_to_wiphy
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.12:
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_25
LBB0_13:
	ldr	w9, [x20, #8]
	ldr	x8, [x20]
	cbz	w9, LBB0_22
; %bb.14:
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.15:
	bl	_get_cfg80211_regdom
	mov	x1, x0
	mov	x0, x19
	bl	_regdom_intersect
	cbz	x0, LBB0_19
; %bb.16:
	mov	x22, x0
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.17:
	mov	x0, x21
	bl	_get_wiphy_regdom
	mov	x20, x0
	ldr	x0, [x21]
	mov	x1, x19
	bl	_rcu_assign_pointer
	mov	x0, x20
	bl	_rcu_free_regdom
	b	LBB0_27
LBB0_18:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_print_regdomain_info
LBB0_19:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	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_22:
Lloh12:
	adrp	x9, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.23:
	ldr	x8, [x21]
	cbz	x8, LBB0_28
LBB0_24:
Lloh15:
	adrp	x8, _EALREADY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_20
LBB0_25:
Lloh17:
	adrp	x0, _reg_timeout@GOTPAGE
Lloh18:
	ldr	x0, [x0, _reg_timeout@GOTPAGEOFF]
	mov	w1, #0
	bl	_schedule_delayed_work
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_26:
	mov	x0, x19
	bl	_kfree
LBB0_27:
	mov	w0, #0
	mov	x1, x22
	bl	_reset_regdomains
	b	LBB0_3
LBB0_28:
	mov	x0, x19
	bl	_reg_copy_regd
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.29:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_30:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_rcu_assign_pointer
LBB0_31:
	mov	w0, #0
	mov	x1, x19
	bl	_reset_regdomains
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_REGDOM_SET_BY_COUNTRY_IE,8,3 ; @NL80211_REGDOM_SET_BY_COUNTRY_IE
	.comm	_EALREADY,4,2                   ; @EALREADY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid regulatory domain detected:\n"

	.comm	_NL80211_REGDOM_SET_BY_DRIVER,8,3 ; @NL80211_REGDOM_SET_BY_DRIVER
	.comm	_reg_timeout,4,2                ; @reg_timeout
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	___set_regdom
.subsections_via_symbols
