	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setdefregdomain
_setdefregdomain:                       ## @setdefregdomain
	.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
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_getregdata
	movq	_regdomain@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	_CTRY_DEFAULT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.2:
	movl	%r14d, %edi
	callq	_getregdomain
	cmpq	$0, (%r15)
	jne	LBB0_9
## %bb.3:
	movq	8(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.4:
	movq	_SKU_FCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lib80211_regdomain_findbysku
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_defaultcountry
LBB0_8:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_setregdomain_cb
	movq	$0, (%r15)
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movq	16(%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regdomain,24,3                 ## @regdomain
	.comm	_CTRY_DEFAULT,8,3               ## @CTRY_DEFAULT
	.comm	_SKU_FCC,4,2                    ## @SKU_FCC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FCC regdomain was not found"

	.no_dead_strip	_setdefregdomain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setdefregdomain
_setdefregdomain:                       ; @setdefregdomain
	.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
	bl	_getregdata
Lloh0:
	adrp	x19, _regdomain@GOTPAGE
Lloh1:
	ldr	x19, [x19, _regdomain@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x22, _CTRY_DEFAULT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CTRY_DEFAULT@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	bl	_getregdomain
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _SKU_FCC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SKU_FCC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_lib80211_regdomain_findbysku
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldp	x8, x9, [x21]
	str	x8, [x19]
	cbz	x9, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_defaultcountry
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_setregdomain_cb
	ldr	x8, [x22]
	stp	xzr, x8, [x19]
	ldr	x8, [x19, #16]
	stp	xzr, xzr, [x8]
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_regdomain,24,3                 ; @regdomain
	.comm	_CTRY_DEFAULT,8,3               ; @CTRY_DEFAULT
	.comm	_SKU_FCC,4,2                    ; @SKU_FCC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FCC regdomain was not found"

	.no_dead_strip	_setdefregdomain
.subsections_via_symbols
