	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_regd_init_wiphy
_ath_regd_init_wiphy:                   ## @ath_regd_init_wiphy
	.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	%rsi, %rbx
	movq	%rdx, (%rsi)
	movq	_REGULATORY_STRICT_REG@GOTPCREL(%rip), %rax
	movq	_REGULATORY_CUSTOM_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rdi, %r14
	orl	%ecx, 8(%rsi)
	callq	_ath_is_world_regd
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_ath_world_regdomain
	movq	_REGULATORY_COUNTRY_IE_FOLLOW_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_ath_default_world_regdomain
LBB0_3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_wiphy_apply_custom_regulatory
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath_reg_apply_radar_flags
	movq	_NL80211_REGDOM_SET_BY_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ath_reg_apply_world_flags
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REGULATORY_STRICT_REG,4,2      ## @REGULATORY_STRICT_REG
	.comm	_REGULATORY_CUSTOM_REG,4,2      ## @REGULATORY_CUSTOM_REG
	.comm	_REGULATORY_COUNTRY_IE_FOLLOW_POWER,4,2 ## @REGULATORY_COUNTRY_IE_FOLLOW_POWER
	.comm	_NL80211_REGDOM_SET_BY_DRIVER,4,2 ## @NL80211_REGDOM_SET_BY_DRIVER
	.no_dead_strip	_ath_regd_init_wiphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_regd_init_wiphy
_ath_regd_init_wiphy:                   ; @ath_regd_init_wiphy
	.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, x1
	mov	x19, x0
	str	x2, [x1]
Lloh0:
	adrp	x8, _REGULATORY_STRICT_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGULATORY_STRICT_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _REGULATORY_CUSTOM_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REGULATORY_CUSTOM_REG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x1, #8]
	orr	w8, w8, w9
	str	w8, [x1, #8]
	bl	_ath_is_world_regd
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath_world_regdomain
	mov	x1, x0
Lloh6:
	adrp	x8, _REGULATORY_COUNTRY_IE_FOLLOW_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REGULATORY_COUNTRY_IE_FOLLOW_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	b	LBB0_3
LBB0_2:
	bl	_ath_default_world_regdomain
	mov	x1, x0
LBB0_3:
	mov	x0, x20
	bl	_wiphy_apply_custom_regulatory
	mov	x0, x20
	mov	x1, x19
	bl	_ath_reg_apply_radar_flags
Lloh9:
	adrp	x8, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_ath_reg_apply_world_flags
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REGULATORY_STRICT_REG,4,2      ; @REGULATORY_STRICT_REG
	.comm	_REGULATORY_CUSTOM_REG,4,2      ; @REGULATORY_CUSTOM_REG
	.comm	_REGULATORY_COUNTRY_IE_FOLLOW_POWER,4,2 ; @REGULATORY_COUNTRY_IE_FOLLOW_POWER
	.comm	_NL80211_REGDOM_SET_BY_DRIVER,4,2 ; @NL80211_REGDOM_SET_BY_DRIVER
	.no_dead_strip	_ath_regd_init_wiphy
.subsections_via_symbols
