	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_reg_notifier
_brcmf_cfg80211_reg_notifier:           ## @brcmf_cfg80211_reg_notifier
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_wiphy_to_cfg
	movq	%rax, %rbx
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_brcmf_get_ifp
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	(%r12), %rcx
	movsbl	(%rcx), %eax
	cmpl	$48, %eax
	jne	LBB0_2
## %bb.1:
	cmpb	$48, 1(%rcx)
	jne	LBB0_3
	jmp	LBB0_12
LBB0_2:
	leal	-91(%rax), %edx
	cmpb	$-27, %dl
	ja	LBB0_5
LBB0_3:
	movb	1(%rcx), %cl
LBB0_4:
	movsbl	%cl, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bphy_err                       ## TAILCALL
LBB0_5:
	movb	1(%rcx), %cl
	leal	-91(%rcx), %edx
	cmpb	$-26, %dl
	jb	LBB0_4
## %bb.6:
	movq	_TRACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	8(%r12), %edx
	movsbl	%cl, %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_brcmf_dbg
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_brcmf_fil_iovar_data_get
	testb	%al, %al
	je	LBB0_8
## %bb.7:
	movsbl	%al, %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_12
LBB0_8:
	movl	(%r15), %edi
	movq	(%r12), %rsi
	leaq	-40(%rbp), %rdx
	callq	_brcmf_translate_country_code
	testb	%al, %al
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_brcmf_fil_iovar_data_set
	testb	%al, %al
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_brcmf_setup_wiphybands
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not an ISO3166 code (0x%02x 0x%02x)\n"

	.comm	_TRACE,4,2                      ## @TRACE
L_.str.1:                               ## @.str.1
	.asciz	"Enter: initiator=%d, alpha=%c%c\n"

L_.str.2:                               ## @.str.2
	.asciz	"country"

L_.str.3:                               ## @.str.3
	.asciz	"Country code iovar returned err = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Firmware rejected country setting\n"

	.no_dead_strip	_brcmf_cfg80211_reg_notifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_reg_notifier
_brcmf_cfg80211_reg_notifier:           ; @brcmf_cfg80211_reg_notifier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	bl	_wiphy_to_cfg
	mov	x20, x0
	ldr	x0, [x0]
	mov	w1, #0
	bl	_brcmf_get_ifp
	ldr	x19, [x20]
	ldr	x8, [x22]
	ldrsb	w3, [x8]
	cmp	w3, #48
	b.ne	LBB0_2
; %bb.1:
	ldrb	w9, [x8, #1]
	cmp	w9, #48
	b.ne	LBB0_3
	b	LBB0_6
LBB0_2:
	sub	w9, w3, #91
	and	w9, w9, #0xff
	cmp	w9, #229
	b.hi	LBB0_7
LBB0_3:
	ldrb	w8, [x8, #1]
LBB0_4:
	sxtb	x8, w8
	stp	x3, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_bphy_err
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldrb	w8, [x8, #1]
	sub	w9, w8, #91
	and	w9, w9, #0xff
	cmp	w9, #230
	b.lo	LBB0_4
; %bb.8:
	mov	x21, x0
Lloh2:
	adrp	x9, _TRACE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRACE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w2, [x22, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	sxtb	w4, w8
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_brcmf_dbg
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #4
	bl	_brcmf_fil_iovar_data_get
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.9:
	sxtw	x8, w0
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_10:
	ldr	w0, [x21]
	ldr	x1, [x22]
	add	x2, sp, #24
	bl	_brcmf_translate_country_code
	cbnz	w0, LBB0_6
; %bb.11:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #4
	bl	_brcmf_fil_iovar_data_set
	cbz	w0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_13:
	mov	x0, x20
	bl	_brcmf_setup_wiphybands
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not an ISO3166 code (0x%02x 0x%02x)\n"

	.comm	_TRACE,4,2                      ; @TRACE
l_.str.1:                               ; @.str.1
	.asciz	"Enter: initiator=%d, alpha=%c%c\n"

l_.str.2:                               ; @.str.2
	.asciz	"country"

l_.str.3:                               ; @.str.3
	.asciz	"Country code iovar returned err = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Firmware rejected country setting\n"

	.no_dead_strip	_brcmf_cfg80211_reg_notifier
.subsections_via_symbols
