	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_wireless_init
_b43legacy_wireless_init:               ## @b43legacy_wireless_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_b43legacy_sprom_fixup
	movq	_b43legacy_hw_ops@GOTPCREL(%rip), %rsi
	movl	$48, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_RX_INCLUDES_FCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ieee80211_hw_set
	movq	_SIGNAL_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ieee80211_hw_set
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, (%r12)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_SET_IEEE80211_DEV
	movl	8(%r13), %edi
	callq	_is_valid_ether_addr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	4(%r13,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_SET_IEEE80211_PERM_ADDR
	movq	8(%r12), %rdi
	movq	_NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wiphy_ext_feature_set
	movq	%r12, %rdi
	callq	_hw_to_b43legacy_wl
	movq	%rax, %r13
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r12, 40(%r13)
	leaq	36(%r13), %rdi
	callq	_spin_lock_init
	leaq	32(%r13), %rdi
	callq	_spin_lock_init
	leaq	28(%r13), %rdi
	callq	_mutex_init
	leaq	24(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%r13), %rdi
	movq	_b43legacy_beacon_update_trigger_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	_b43legacy_tx_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_B43legacy_QOS_QUEUE_NUM@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_head_init
	movq	(%r13), %rax
	movq	$0, (%rax,%rbx,2)
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ssb_set_devtypedata
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_b43legacyinfo
	jmp	LBB0_6
LBB0_1:
	negl	%r15d
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_b43legacyerr
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_b43legacy_hw_ops,4,2           ## @b43legacy_hw_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate ieee80211 device\n"

	.comm	_RX_INCLUDES_FCS,4,2            ## @RX_INCLUDES_FCS
	.comm	_SIGNAL_DBM,4,2                 ## @SIGNAL_DBM
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ## @NL80211_EXT_FEATURE_CQM_RSSI_LIST
	.comm	_b43legacy_beacon_update_trigger_work,4,2 ## @b43legacy_beacon_update_trigger_work
	.comm	_b43legacy_tx_work,4,2          ## @b43legacy_tx_work
	.comm	_B43legacy_QOS_QUEUE_NUM,4,2    ## @B43legacy_QOS_QUEUE_NUM
L_.str.1:                               ## @.str.1
	.asciz	"Broadcom %04X WLAN found (core revision %u)\n"

	.comm	_NL80211_IFTYPE_WDS,4,2         ## @NL80211_IFTYPE_WDS
	.no_dead_strip	_b43legacy_wireless_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function b43legacy_wireless_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_b43legacy_wireless_init:               ; @b43legacy_wireless_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_b43legacy_sprom_fixup
Lloh3:
	adrp	x1, _b43legacy_hw_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _b43legacy_hw_ops@GOTPAGEOFF]
	mov	w0, #48
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _RX_INCLUDES_FCS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RX_INCLUDES_FCS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ieee80211_hw_set
Lloh8:
	adrp	x8, _SIGNAL_DBM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGNAL_DBM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh11:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh14:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w0, w22
Lloh17:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w22, w0
	ldr	x9, [x20, #8]
	str	w8, [x9]
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_SET_IEEE80211_DEV
	ldr	w0, [x21, #8]
	bl	_is_valid_ether_addr
	mov	w8, #8
	mov	w9, #4
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x21, x8]
	mov	x0, x20
	bl	_SET_IEEE80211_PERM_ADDR
	ldr	x0, [x20, #8]
Lloh22:
	adrp	x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_wiphy_ext_feature_set
	mov	x0, x20
	bl	_hw_to_b43legacy_wl
	mov	x21, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	x20, [x21, #40]
	add	x0, x21, #36
	bl	_spin_lock_init
	add	x0, x21, #32
	bl	_spin_lock_init
	add	x0, x21, #28
	bl	_mutex_init
	add	x0, x21, #24
	bl	_INIT_LIST_HEAD
	add	x0, x21, #20
Lloh25:
	adrp	x8, _b43legacy_beacon_update_trigger_work@GOTPAGE
Lloh26:
	ldr	x8, [x8, _b43legacy_beacon_update_trigger_work@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #16
Lloh28:
	adrp	x8, _b43legacy_tx_work@GOTPAGE
Lloh29:
	ldr	x8, [x8, _b43legacy_tx_work@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh31:
	adrp	x20, _B43legacy_QOS_QUEUE_NUM@GOTPAGE
Lloh32:
	ldr	x20, [x20, _B43legacy_QOS_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x22
	bl	_skb_queue_head_init
	ldr	x8, [x21]
	str	xzr, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_ssb_set_devtypedata
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_b43legacyinfo
	mov	w19, #0
	b	LBB0_6
LBB0_5:
	neg	w19, w22
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacyerr
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_b43legacy_hw_ops,4,2           ; @b43legacy_hw_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate ieee80211 device\n"

	.comm	_RX_INCLUDES_FCS,4,2            ; @RX_INCLUDES_FCS
	.comm	_SIGNAL_DBM,4,2                 ; @SIGNAL_DBM
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ; @NL80211_EXT_FEATURE_CQM_RSSI_LIST
	.comm	_b43legacy_beacon_update_trigger_work,4,2 ; @b43legacy_beacon_update_trigger_work
	.comm	_b43legacy_tx_work,4,2          ; @b43legacy_tx_work
	.comm	_B43legacy_QOS_QUEUE_NUM,4,2    ; @B43legacy_QOS_QUEUE_NUM
l_.str.1:                               ; @.str.1
	.asciz	"Broadcom %04X WLAN found (core revision %u)\n"

	.comm	_NL80211_IFTYPE_WDS,4,2         ; @NL80211_IFTYPE_WDS
	.no_dead_strip	_b43legacy_wireless_init
.subsections_via_symbols
