	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_regd_init              ## -- Begin function brcms_c_regd_init
	.p2align	4, 0x90
_brcms_c_regd_init:                     ## @brcms_c_regd_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rcx
	movq	(%rdi), %rdi
	movq	24(%rcx), %rax
	movq	(%rax), %rdx
	movq	16(%rcx), %rax
	cmpl	$0, (%rax)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%rcx), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-48(%rbp), %rdx
	callq	_wlc_phy_chanspec_band_validch
	movq	_BAND_2G_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpq	%rcx, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %r13
	movl	-48(%rbp), %edi
	movl	4(%r13,%r14,8), %esi
	callq	_isset
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r12), %eax
	orl	%eax, (%r13,%r14,8)
	jmp	LBB0_8
LBB0_10:
	movq	(%rcx), %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_11:
	movq	_brcms_reg_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_REGULATORY_CUSTOM_REG@GOTPCREL(%rip), %rax
	movq	_REGULATORY_STRICT_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rdi)
	movl	(%rdx), %esi
	callq	_wiphy_apply_custom_regulatory
	movq	_NL80211_REGDOM_SET_BY_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_brcms_reg_apply_beaconing_flags
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_2G_INDEX,4,2              ## @BAND_2G_INDEX
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.comm	_brcms_reg_notifier,4,2         ## @brcms_reg_notifier
	.comm	_REGULATORY_CUSTOM_REG,4,2      ## @REGULATORY_CUSTOM_REG
	.comm	_REGULATORY_STRICT_REG,4,2      ## @REGULATORY_STRICT_REG
	.comm	_NL80211_REGDOM_SET_BY_DRIVER,4,2 ## @NL80211_REGDOM_SET_BY_DRIVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_regd_init              ; -- Begin function brcms_c_regd_init
	.p2align	2
_brcms_c_regd_init:                     ; @brcms_c_regd_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0]
	ldp	x9, x8, [x0, #16]
	ldr	x11, [x8]
	ldr	w8, [x9]
	mov	x0, x19
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	str	x11, [sp]                       ; 8-byte Folded Spill
	mov	x22, #0
Lloh0:
	adrp	x24, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	adrp	x25, _NL80211_BAND_5GHZ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh4:
	adrp	x26, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh5:
	ldr	x26, [x26, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20, #16]
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldp	w1, w0, [x8]
	add	x2, sp, #8
	bl	_wlc_phy_chanspec_band_validch
Lloh6:
	adrp	x8, _BAND_2G_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BAND_2G_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	cmp	x22, x8
	csel	x8, x24, x25, eq
	ldr	x8, [x8]
	ldr	x27, [x9, x8, lsl #3]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #1
	ldrsw	x8, [x27]
	add	x28, x28, #8
	cmp	x21, x8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x23, [x27, #8]
	ldr	w0, [sp, #8]
	add	x8, x23, x28
	ldr	w1, [x8, #4]
	bl	_isset
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x26]
	ldr	w9, [x23, x28]
	orr	w8, w9, w8
	str	w8, [x23, x28]
	b	LBB0_5
LBB0_8:
	ldr	x0, [x20]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
LBB0_9:
Lloh9:
	adrp	x8, _brcms_reg_notifier@GOTPAGE
Lloh10:
	ldr	x8, [x8, _brcms_reg_notifier@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _REGULATORY_CUSTOM_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REGULATORY_CUSTOM_REG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _REGULATORY_STRICT_REG@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REGULATORY_STRICT_REG@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x0]
	orr	w9, w9, w10
	stp	w9, w8, [x0]
	ldr	w1, [x11]
	bl	_wiphy_apply_custom_regulatory
Lloh18:
	adrp	x8, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NL80211_REGDOM_SET_BY_DRIVER@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcms_reg_apply_beaconing_flags
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_2G_INDEX,4,2              ; @BAND_2G_INDEX
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.comm	_brcms_reg_notifier,4,2         ; @brcms_reg_notifier
	.comm	_REGULATORY_CUSTOM_REG,4,2      ; @REGULATORY_CUSTOM_REG
	.comm	_REGULATORY_STRICT_REG,4,2      ; @REGULATORY_STRICT_REG
	.comm	_NL80211_REGDOM_SET_BY_DRIVER,4,2 ; @NL80211_REGDOM_SET_BY_DRIVER
.subsections_via_symbols
