	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_cfg80211_attach          ## -- Begin function brcmf_cfg80211_attach
	.p2align	4, 0x90
_brcmf_cfg80211_attach:                 ## @brcmf_cfg80211_attach
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	xorl	%esi, %esi
	callq	_brcmf_get_ifp
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%r12, (%rax)
	movq	%rbx, 16(%rax)
	leaq	36(%rax), %rdi
	callq	_init_vif_event
	leaq	32(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_brcmf_alloc_vif
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, 8(%r14)
	movq	%r15, (%r14)
	movq	%r14, (%r15)
	movq	(%r13), %rdi
	callq	_wiphy_dev
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rdi
	callq	_wl_init_priv
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	%r14, %rdi
	callq	_brcmf_free_vif
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_45
LBB0_8:
	movq	%r14, (%r12)
	movq	_BRCMF_C_GET_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_brcmf_fil_cmd_int_get
	testq	%rax, %rax
	movq	%r14, %r15
	je	LBB0_13
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_10:
	movq	%r13, %rdi
	callq	_wl_deinit_priv
	movq	%r15, %rdi
	callq	_brcmf_free_vif
	movq	$0, (%r12)
LBB0_11:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movq	%r12, %rdi
	callq	_brcmf_free_wiphy
	movq	%r13, %rdi
	callq	_kfree
	xorl	%r13d, %r13d
LBB0_45:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-72(%rbp), %rax
	leaq	24(%r13), %rdi
	movq	%rax, 24(%r13)
	callq	_brcmu_d11_attach
	movq	%r13, (%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_brcmf_setup_wiphy
	testq	%rax, %rax
	js	LBB0_10
## %bb.14:
	movq	%r12, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_brcmf_cfg80211_reg_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 36(%r12)
	movq	_REGULATORY_CUSTOM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
	movq	_brcmf_regdom@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_wiphy_apply_custom_regulatory
	movq	24(%r12), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	%rax, %r15
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wiphy_register
	testq	%rax, %rax
	movq	%r14, %r12
	js	LBB0_17
## %bb.18:
	movq	%r13, %rdi
	callq	_brcmf_setup_wiphybands
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_21:
	testq	%r15, %r15
	je	LBB0_26
## %bb.22:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_26
## %bb.23:
	movq	%r13, %rdi
	callq	_brcmf_enable_bw40_2g
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	jmp	LBB0_26
LBB0_24:
	movq	_BRCMF_OBSS_COEX_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_brcmf_fil_iovar_int_set
LBB0_26:
	movq	%r12, %rdi
	callq	_brcmf_fweh_activate_events
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.8(%rip), %rsi
LBB0_20:
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_30:
	movq	(%r13), %rdi
	callq	_wiphy_unregister
	jmp	LBB0_10
LBB0_28:
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_brcmf_p2p_attach
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_31
## %bb.29:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_30
LBB0_31:
	movq	%r13, %rdi
	callq	_brcmf_btcoex_attach
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_33
LBB0_34:
	movq	%r13, %rdi
	callq	_brcmf_pno_attach
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	%r13, %rdi
	callq	_brcmf_btcoex_detach
LBB0_33:
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_brcmf_p2p_detach
	jmp	LBB0_30
LBB0_36:
	movq	_BRCMF_FEAT_TDLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_brcmf_feat_is_enabled
	testq	%rax, %rax
	je	LBB0_41
## %bb.37:
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_brcmf_fil_iovar_int_set
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	movq	_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.13(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_WIPHY_FLAG_SUPPORTS_TDLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andl	%eax, 16(%rcx)
	jmp	LBB0_40
LBB0_39:
	movq	16(%r13), %rdi
	movq	_BRCMF_E_TDLS_PEER_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_brcmf_notify_tdls_peer_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_brcmf_fweh_register
LBB0_40:
	movq	%r14, %r12
LBB0_41:
	movq	%r12, %rdi
	callq	_brcmf_fweh_activate_events
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_bphy_err
	movq	%r13, %rdi
	callq	_brcmf_pno_detach
	movq	%r13, %rdi
	callq	_brcmf_btcoex_detach
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_brcmf_p2p_detach
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %r12
	jmp	LBB0_30
LBB0_43:
	movq	_BRCMF_FEAT_SCAN_RANDOM_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_brcmf_feat_is_enabled
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	_NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ndev is invalid\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate wiphy device\n"

	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init iwm_priv (%d)\n"

	.comm	_BRCMF_C_GET_VERSION,4,2        ## @BRCMF_C_GET_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get D11 version (%d)\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.4:                               ## @.str.4
	.asciz	"Registering custom regulatory\n"

	.comm	_brcmf_cfg80211_reg_notifier,4,2 ## @brcmf_cfg80211_reg_notifier
	.comm	_REGULATORY_CUSTOM_REG,4,2      ## @REGULATORY_CUSTOM_REG
	.comm	_brcmf_regdom,4,2               ## @brcmf_regdom
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
L_.str.5:                               ## @.str.5
	.asciz	"Could not register wiphy device (%d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Setting wiphy bands failed (%d)\n"

L_.str.7:                               ## @.str.7
	.asciz	"obss_coex"

	.comm	_BRCMF_OBSS_COEX_AUTO,4,2       ## @BRCMF_OBSS_COEX_AUTO
L_.str.8:                               ## @.str.8
	.asciz	"FWEH activation failed (%d)\n"

L_.str.9:                               ## @.str.9
	.asciz	"P2P initialisation failed (%d)\n"

L_.str.10:                              ## @.str.10
	.asciz	"BT-coex initialisation failed (%d)\n"

L_.str.11:                              ## @.str.11
	.asciz	"PNO initialisation failed (%d)\n"

	.comm	_BRCMF_FEAT_TDLS,4,2            ## @BRCMF_FEAT_TDLS
L_.str.12:                              ## @.str.12
	.asciz	"tdls_enable"

L_.str.13:                              ## @.str.13
	.asciz	"TDLS not enabled (%d)\n"

	.comm	_WIPHY_FLAG_SUPPORTS_TDLS,4,2   ## @WIPHY_FLAG_SUPPORTS_TDLS
	.comm	_BRCMF_E_TDLS_PEER_EVENT,4,2    ## @BRCMF_E_TDLS_PEER_EVENT
	.comm	_brcmf_notify_tdls_peer_event,4,2 ## @brcmf_notify_tdls_peer_event
	.comm	_BRCMF_FEAT_SCAN_RANDOM_MAC,4,2 ## @BRCMF_FEAT_SCAN_RANDOM_MAC
	.comm	_NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR,4,2 ## @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR
	.comm	_BRCMF_FEAT_WOWL_GTK,4,2        ## @BRCMF_FEAT_WOWL_GTK
	.comm	_NL80211_FEATURE_ND_RANDOM_MAC_ADDR,4,2 ## @NL80211_FEATURE_ND_RANDOM_MAC_ADDR
	.comm	_WIPHY_WOWLAN_NET_DETECT,4,2    ## @WIPHY_WOWLAN_NET_DETECT
	.comm	_brcmf_cfg80211_set_rekey_data,4,2 ## @brcmf_cfg80211_set_rekey_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_cfg80211_attach          ; -- Begin function brcmf_cfg80211_attach
	.p2align	2
_brcmf_cfg80211_attach:                 ; @brcmf_cfg80211_attach
	.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	x24, x2
	mov	x23, x0
	ldr	x19, [x0, #8]
	mov	w1, #0
	bl	_brcmf_get_ifp
	ldr	x25, [x0]
	cbz	x25, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	str	x19, [x20]
	str	x23, [x20, #16]
	add	x0, x20, #36
	bl	_init_vif_event
	add	x0, x20, #32
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_brcmf_alloc_vif
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_11
; %bb.3:
	mov	x0, x25
	bl	_netdev_priv
	mov	x22, x0
	stp	x25, x0, [x21]
	str	x21, [x25]
	ldr	x0, [x20]
	bl	_wiphy_dev
	mov	x1, x0
	mov	x0, x25
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_wl_init_priv
	cbz	x0, LBB0_7
; %bb.4:
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	mov	x0, x21
	bl	_brcmf_free_vif
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	b	LBB0_12
LBB0_6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	b	LBB0_13
LBB0_7:
	str	x21, [x22]
Lloh12:
	adrp	x8, _BRCMF_C_GET_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMF_C_GET_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x22
	bl	_brcmf_fil_cmd_int_get
	cbz	x0, LBB0_14
; %bb.8:
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x23
	bl	_bphy_err
LBB0_10:
	mov	x0, x20
	bl	_wl_deinit_priv
	mov	x0, x21
	bl	_brcmf_free_vif
	str	xzr, [x22]
LBB0_11:
	mov	x0, x19
	bl	_brcmf_free_wiphy
	mov	x0, x20
	bl	_kfree
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	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
LBB0_14:
	ldr	x8, [sp, #8]
	mov	x0, x20
	str	x8, [x0, #24]!
	bl	_brcmu_d11_attach
	str	x20, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_brcmf_setup_wiphy
	tbnz	x0, #63, LBB0_10
; %bb.15:
Lloh17:
	adrp	x25, _INFO@GOTPAGE
Lloh18:
	ldr	x25, [x25, _INFO@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_brcmf_dbg
Lloh21:
	adrp	x8, _brcmf_cfg80211_reg_notifier@GOTPAGE
Lloh22:
	ldr	x8, [x8, _brcmf_cfg80211_reg_notifier@GOTPAGEOFF]
Lloh23:
	adrp	x9, _REGULATORY_CUSTOM_REG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _REGULATORY_CUSTOM_REG@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #32]
Lloh27:
	adrp	x1, _brcmf_regdom@GOTPAGE
Lloh28:
	ldr	x1, [x1, _brcmf_regdom@GOTPAGEOFF]
	mov	x0, x19
	bl	_wiphy_apply_custom_regulatory
	ldr	x8, [x19, #24]
Lloh29:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	x26, [x8, x9, lsl #3]
	cbz	x26, LBB0_17
; %bb.16:
Lloh32:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x26]
LBB0_17:
	mov	x0, x19
	bl	_wiphy_register
	tbnz	x0, #63, LBB0_20
; %bb.18:
	mov	x0, x20
	bl	_brcmf_setup_wiphybands
	cbz	x0, LBB0_21
; %bb.19:
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_30
LBB0_20:
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_21:
	cbz	x26, LBB0_26
; %bb.22:
	ldr	w8, [x26]
Lloh39:
	adrp	x27, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh40:
	ldr	x27, [x27, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.23:
	mov	x0, x20
	bl	_brcmf_enable_bw40_2g
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w8, [x27]
	ldr	w9, [x26]
	bic	w8, w9, w8
	str	w8, [x26]
	b	LBB0_26
LBB0_25:
Lloh41:
	adrp	x8, _BRCMF_OBSS_COEX_AUTO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BRCMF_OBSS_COEX_AUTO@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_brcmf_fil_iovar_int_set
LBB0_26:
	mov	x0, x22
	bl	_brcmf_fweh_activate_events
	cbz	x0, LBB0_28
; %bb.27:
	str	x0, [sp]
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_30
LBB0_28:
	mov	x0, x20
	mov	x1, x24
	bl	_brcmf_p2p_attach
	cbz	x0, LBB0_32
; %bb.29:
	str	x0, [sp]
Lloh48:
	adrp	x1, l_.str.9@PAGE
Lloh49:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_30:
	mov	x0, x23
	bl	_bphy_err
LBB0_31:
	ldr	x0, [x20]
	bl	_wiphy_unregister
	b	LBB0_10
LBB0_32:
	mov	x0, x20
	bl	_brcmf_btcoex_attach
	cbz	x0, LBB0_34
; %bb.33:
	str	x0, [sp]
Lloh50:
	adrp	x1, l_.str.10@PAGE
Lloh51:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	b	LBB0_43
LBB0_34:
	mov	x0, x20
	bl	_brcmf_pno_attach
	cbz	x0, LBB0_36
; %bb.35:
	str	x0, [sp]
Lloh52:
	adrp	x1, l_.str.11@PAGE
Lloh53:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	b	LBB0_42
LBB0_36:
Lloh54:
	adrp	x8, _BRCMF_FEAT_TDLS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BRCMF_FEAT_TDLS@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_brcmf_feat_is_enabled
	cbz	x0, LBB0_40
; %bb.37:
Lloh57:
	adrp	x1, l_.str.12@PAGE
Lloh58:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	mov	w2, #1
	bl	_brcmf_fil_iovar_int_set
	cbz	x0, LBB0_39
; %bb.38:
	ldr	w8, [x25]
	str	x0, [sp]
Lloh59:
	adrp	x1, l_.str.13@PAGE
Lloh60:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x8
	bl	_brcmf_dbg
Lloh61:
	adrp	x8, _WIPHY_FLAG_SUPPORTS_TDLS@GOTPAGE
Lloh62:
	ldr	x8, [x8, _WIPHY_FLAG_SUPPORTS_TDLS@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_40
LBB0_39:
	ldr	x0, [x20, #16]
Lloh64:
	adrp	x8, _BRCMF_E_TDLS_PEER_EVENT@GOTPAGE
Lloh65:
	ldr	x8, [x8, _BRCMF_E_TDLS_PEER_EVENT@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
Lloh67:
	adrp	x8, _brcmf_notify_tdls_peer_event@GOTPAGE
Lloh68:
	ldr	x8, [x8, _brcmf_notify_tdls_peer_event@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	bl	_brcmf_fweh_register
LBB0_40:
	mov	x0, x22
	bl	_brcmf_fweh_activate_events
	cbz	x0, LBB0_44
; %bb.41:
	str	x0, [sp]
Lloh70:
	adrp	x1, l_.str.8@PAGE
Lloh71:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
	mov	x0, x20
	bl	_brcmf_pno_detach
LBB0_42:
	mov	x0, x20
	bl	_brcmf_btcoex_detach
LBB0_43:
	add	x0, x20, #8
	bl	_brcmf_p2p_detach
	b	LBB0_31
LBB0_44:
Lloh72:
	adrp	x8, _BRCMF_FEAT_SCAN_RANDOM_MAC@GOTPAGE
Lloh73:
	ldr	x8, [x8, _BRCMF_FEAT_SCAN_RANDOM_MAC@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_brcmf_feat_is_enabled
	cbz	x0, LBB0_13
; %bb.45:
Lloh75:
	adrp	x8, _NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ndev is invalid\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate wiphy device\n"

	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init iwm_priv (%d)\n"

	.comm	_BRCMF_C_GET_VERSION,4,2        ; @BRCMF_C_GET_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get D11 version (%d)\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.4:                               ; @.str.4
	.asciz	"Registering custom regulatory\n"

	.comm	_brcmf_cfg80211_reg_notifier,4,2 ; @brcmf_cfg80211_reg_notifier
	.comm	_REGULATORY_CUSTOM_REG,4,2      ; @REGULATORY_CUSTOM_REG
	.comm	_brcmf_regdom,4,2               ; @brcmf_regdom
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
l_.str.5:                               ; @.str.5
	.asciz	"Could not register wiphy device (%d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Setting wiphy bands failed (%d)\n"

l_.str.7:                               ; @.str.7
	.asciz	"obss_coex"

	.comm	_BRCMF_OBSS_COEX_AUTO,4,2       ; @BRCMF_OBSS_COEX_AUTO
l_.str.8:                               ; @.str.8
	.asciz	"FWEH activation failed (%d)\n"

l_.str.9:                               ; @.str.9
	.asciz	"P2P initialisation failed (%d)\n"

l_.str.10:                              ; @.str.10
	.asciz	"BT-coex initialisation failed (%d)\n"

l_.str.11:                              ; @.str.11
	.asciz	"PNO initialisation failed (%d)\n"

	.comm	_BRCMF_FEAT_TDLS,4,2            ; @BRCMF_FEAT_TDLS
l_.str.12:                              ; @.str.12
	.asciz	"tdls_enable"

l_.str.13:                              ; @.str.13
	.asciz	"TDLS not enabled (%d)\n"

	.comm	_WIPHY_FLAG_SUPPORTS_TDLS,4,2   ; @WIPHY_FLAG_SUPPORTS_TDLS
	.comm	_BRCMF_E_TDLS_PEER_EVENT,4,2    ; @BRCMF_E_TDLS_PEER_EVENT
	.comm	_brcmf_notify_tdls_peer_event,4,2 ; @brcmf_notify_tdls_peer_event
	.comm	_BRCMF_FEAT_SCAN_RANDOM_MAC,4,2 ; @BRCMF_FEAT_SCAN_RANDOM_MAC
	.comm	_NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR,4,2 ; @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR
	.comm	_BRCMF_FEAT_WOWL_GTK,4,2        ; @BRCMF_FEAT_WOWL_GTK
	.comm	_NL80211_FEATURE_ND_RANDOM_MAC_ADDR,4,2 ; @NL80211_FEATURE_ND_RANDOM_MAC_ADDR
	.comm	_WIPHY_WOWLAN_NET_DETECT,4,2    ; @WIPHY_WOWLAN_NET_DETECT
	.comm	_brcmf_cfg80211_set_rekey_data,4,2 ; @brcmf_cfg80211_set_rekey_data
.subsections_via_symbols
