	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_wireless_init
_b43_wireless_init:                     ## @b43_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	_b43_hw_ops@GOTPCREL(%rip), %rsi
	movl	$56, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_hw_to_b43_wl
	movq	%rax, %r12
	movq	_RX_INCLUDES_FCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ieee80211_hw_set
	movq	_SIGNAL_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ieee80211_hw_set
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	orl	%r13d, %eax
	movq	%r14, %r13
	movq	8(%r15), %rdi
	movl	%eax, (%rdi)
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rdi)
	movq	_NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wiphy_ext_feature_set
	movl	$0, (%r12)
	movl	$2, (%r15)
	movl	8(%r14), %esi
	movq	%r15, %rdi
	callq	_SET_IEEE80211_DEV
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	callq	_is_valid_ether_addr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	(%rbx,%rcx,4), %esi
	movq	%r15, %rdi
	callq	_SET_IEEE80211_PERM_ADDR
	movq	%r15, 48(%r12)
	leaq	44(%r12), %rdi
	callq	_mutex_init
	leaq	40(%r12), %rdi
	callq	_spin_lock_init
	leaq	36(%r12), %rdi
	callq	_spin_lock_init
	leaq	32(%r12), %rdi
	movq	_b43_beacon_update_trigger_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	28(%r12), %rdi
	movq	_b43_phy_txpower_adjust_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	addq	$24, %rdi
	movq	_b43_tx_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_B43_QOS_QUEUE_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_head_init
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx,2)
	incq	%r15
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	leaq	-54(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	(%r13), %ecx
	cmpl	$39322, %ecx                    ## imm = 0x999A
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	cmovgeq	%rsi, %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_snprintf
	movl	4(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_b43info
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_b43err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_b43_hw_ops,4,2                 ## @b43_hw_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate ieee80211 device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ## @NL80211_EXT_FEATURE_CQM_RSSI_LIST
	.comm	_b43_beacon_update_trigger_work,4,2 ## @b43_beacon_update_trigger_work
	.comm	_b43_phy_txpower_adjust_work,4,2 ## @b43_phy_txpower_adjust_work
	.comm	_b43_tx_work,4,2                ## @b43_tx_work
	.comm	_B43_QOS_QUEUE_NUM,4,2          ## @B43_QOS_QUEUE_NUM
L_.str.1:                               ## @.str.1
	.asciz	"%d"

L_.str.2:                               ## @.str.2
	.asciz	"%04X"

L_.str.3:                               ## @.str.3
	.asciz	"Broadcom %s WLAN found (core revision %u)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_wireless_init
_b43_wireless_init:                     ; @b43_wireless_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x23, [x0, #16]
Lloh0:
	adrp	x1, _b43_hw_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _b43_hw_ops@GOTPAGEOFF]
	mov	w0, #56
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_hw_to_b43_wl
	mov	x20, x0
Lloh2:
	adrp	x8, _RX_INCLUDES_FCS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RX_INCLUDES_FCS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ieee80211_hw_set
Lloh5:
	adrp	x8, _SIGNAL_DBM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGNAL_DBM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ieee80211_hw_set
Lloh8:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh11:
	adrp	x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w0, w22
Lloh14:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w22, w0
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	x0, [x21, #8]
	str	w8, [x0]
Lloh20:
	adrp	x8, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
Lloh23:
	adrp	x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_wiphy_ext_feature_set
	str	wzr, [x20]
	mov	w8, #2
	str	w8, [x21]
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_SET_IEEE80211_DEV
	ldr	w0, [x23, #4]
	bl	_is_valid_ether_addr
	cmp	x0, #0
	cset	w8, ne
	ldr	w1, [x23, w8, uxtw #2]
	mov	x0, x21
	bl	_SET_IEEE80211_PERM_ADDR
	str	x21, [x20, #48]
	add	x0, x20, #44
	bl	_mutex_init
	add	x0, x20, #40
	bl	_spin_lock_init
	add	x0, x20, #36
	bl	_spin_lock_init
	add	x0, x20, #32
Lloh26:
	adrp	x8, _b43_beacon_update_trigger_work@GOTPAGE
Lloh27:
	ldr	x8, [x8, _b43_beacon_update_trigger_work@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #28
Lloh29:
	adrp	x8, _b43_phy_txpower_adjust_work@GOTPAGE
Lloh30:
	ldr	x8, [x8, _b43_phy_txpower_adjust_work@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #24
Lloh32:
	adrp	x8, _b43_tx_work@GOTPAGE
Lloh33:
	ldr	x8, [x8, _b43_tx_work@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh35:
	adrp	x21, _B43_QOS_QUEUE_NUM@GOTPAGE
Lloh36:
	ldr	x21, [x21, _B43_QOS_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	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, [x20, #16]
	add	x0, x8, x22
	bl	_skb_queue_head_init
	ldr	x8, [x20, #8]
	str	xzr, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
	add	x0, sp, #10
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh37:
	adrp	x8, l_.str.2@PAGE
Lloh38:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	w3, [x19]
Lloh39:
	adrp	x9, l_.str.1@PAGE
Lloh40:
	add	x9, x9, l_.str.1@PAGEOFF
	mov	w10, #39321
	cmp	w3, w10
	csel	x2, x9, x8, gt
	add	x0, sp, #10
	bl	_snprintf
	ldr	w3, [x19, #4]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #10
	mov	x0, x20
	bl	_b43info
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_b43_hw_ops,4,2                 ; @b43_hw_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate ieee80211 device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ; @NL80211_EXT_FEATURE_CQM_RSSI_LIST
	.comm	_b43_beacon_update_trigger_work,4,2 ; @b43_beacon_update_trigger_work
	.comm	_b43_phy_txpower_adjust_work,4,2 ; @b43_phy_txpower_adjust_work
	.comm	_b43_tx_work,4,2                ; @b43_tx_work
	.comm	_B43_QOS_QUEUE_NUM,4,2          ; @B43_QOS_QUEUE_NUM
l_.str.1:                               ; @.str.1
	.asciz	"%d"

l_.str.2:                               ; @.str.2
	.asciz	"%04X"

l_.str.3:                               ; @.str.3
	.asciz	"Broadcom %s WLAN found (core revision %u)\n"

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