	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_alpha2
_restore_alpha2:                        ## @restore_alpha2
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movw	$14137, (%rdi)                  ## imm = 0x3739
	xorl	%eax, %eax
	callq	_is_user_regdom_saved
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_REG_DBG_PRINT
	movq	_user_alpha2@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	$57, (%rcx)
	movq	(%rax), %rax
	movb	$55, 1(%rax)
	movq	_ieee80211_regdom@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_is_world_regdom
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_3
LBB0_7:
	movq	_ieee80211_regdom@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_is_world_regdom
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_DBG_PRINT                  ## TAILCALL
LBB0_3:
	movq	(%rbx), %rax
	movsbl	(%rax), %esi
	movsbl	1(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	movq	_user_alpha2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movsbl	(%rax), %esi
	movsbl	1(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_REG_DBG_PRINT
	movq	(%rbx), %rax
	movb	(%rax), %al
	movb	%al, (%r14)
	movq	(%rbx), %rax
	movb	1(%rax), %al
	movb	%al, 1(%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Restoring regulatory settings including user preference\n"

	.comm	_user_alpha2,8,3                ## @user_alpha2
	.comm	_ieee80211_regdom,8,3           ## @ieee80211_regdom
L_.str.1:                               ## @.str.1
	.asciz	"Keeping preference on module parameter ieee80211_regdom: %c%c\n"

L_.str.2:                               ## @.str.2
	.asciz	"Restoring regulatory settings while preserving user preference for: %c%c\n"

L_.str.3:                               ## @.str.3
	.asciz	"Restoring regulatory settings\n"

	.no_dead_strip	_restore_alpha2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_alpha2
_restore_alpha2:                        ; @restore_alpha2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #14137
	strh	w8, [x0]
	bl	_is_user_regdom_saved
	cbz	x0, LBB0_3
; %bb.1:
	cbz	w20, LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_REG_DBG_PRINT
Lloh2:
	adrp	x8, _user_alpha2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _user_alpha2@GOTPAGEOFF]
	ldr	x9, [x8]
	mov	w10, #57
	strb	w10, [x9]
	ldr	x8, [x8]
	mov	w9, #55
	strb	w9, [x8, #1]
Lloh4:
	adrp	x20, _ieee80211_regdom@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ieee80211_regdom@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_is_world_regdom
	cbnz	w0, LBB0_8
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x20, _ieee80211_regdom@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ieee80211_regdom@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_is_world_regdom
	cbz	w0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_REG_DBG_PRINT
LBB0_5:
	ldr	x8, [x20]
	ldrsb	x9, [x8]
	ldrsb	x8, [x8, #1]
	stp	x9, x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x20, _user_alpha2@GOTPAGE
Lloh13:
	ldr	x20, [x20, _user_alpha2@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrsb	x9, [x8]
	ldrsb	x8, [x8, #1]
	stp	x9, x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_REG_DBG_PRINT
	ldr	x8, [x20]
	ldrb	w8, [x8]
	strb	w8, [x19]
	ldr	x8, [x20]
	ldrb	w8, [x8, #1]
	strb	w8, [x19, #1]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Restoring regulatory settings including user preference\n"

	.comm	_user_alpha2,8,3                ; @user_alpha2
	.comm	_ieee80211_regdom,8,3           ; @ieee80211_regdom
l_.str.1:                               ; @.str.1
	.asciz	"Keeping preference on module parameter ieee80211_regdom: %c%c\n"

l_.str.2:                               ; @.str.2
	.asciz	"Restoring regulatory settings while preserving user preference for: %c%c\n"

l_.str.3:                               ; @.str.3
	.asciz	"Restoring regulatory settings\n"

	.no_dead_strip	_restore_alpha2
.subsections_via_symbols
