	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_firmware_load_success
_mwl8k_firmware_load_success:           ## @mwl8k_firmware_load_success
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	144(%rdi), %r14
	movq	%r14, %rdi
	callq	_mwl8k_load_firmware
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_mwl8k_release_firmware
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
LBB0_23:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$0, (%r14)
	xorl	%eax, %eax
	cmpq	$0, 136(%r12)
	je	LBB0_4
## %bb.3:
	movq	_REDUCED_TX_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	negl	%eax
	movl	%eax, (%r14)
	movq	_MWL8K_TX_WMM_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_SIGNAL_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
	movq	_HAS_RATE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
	cmpq	$0, 136(%r12)
	je	LBB0_6
## %bb.5:
	movq	_AP_LINK_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
LBB0_6:
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 4(%r14)
	movq	$0, 128(%r12)
	leaq	120(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, (%r12)
	leaq	116(%r12), %rdi
	movq	_mwl8k_finalize_join_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	112(%r12), %rdi
	movq	_mwl8k_watchdog_ba_events@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	108(%r12), %rdi
	movq	_mwl8k_hw_restart_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	104(%r12), %rbx
	movq	_mwl8k_tx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	%rbx, %rdi
	callq	_tasklet_disable
	leaq	100(%r12), %rbx
	movq	_mwl8k_rx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	%rbx, %rdi
	callq	_tasklet_disable
	movl	24(%r12), %edi
	leaq	8(%r12), %rdx
	movl	$4, %esi
	callq	_pci_alloc_consistent
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	96(%r12), %rdi
	callq	_mutex_init
	leaq	68(%r12), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r12)
	movq	$0, 88(%r12)
	callq	_spin_lock_init
	leaq	64(%r12), %rdi
	callq	_spin_lock_init
	movq	$0, 56(%r12)
	movq	%r14, %rdi
	callq	_mwl8k_probe_hw
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movq	16(%r14), %rdi
	movl	$0, 4(%rdi)
	cmpq	$0, 48(%r12)
	jne	LBB0_11
## %bb.10:
	movq	32(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_12
LBB0_11:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	16(%r14), %rcx
	orl	%eax, 4(%rcx)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	16(%r14), %rdi
	orl	%eax, 4(%rdi)
	movq	_ap_if_comb@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	movl	$1, (%rdi)
LBB0_12:
	cmpq	$0, 40(%r12)
	jne	LBB0_14
## %bb.13:
	movq	32(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
LBB0_14:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	16(%r14), %rdi
	orl	%eax, 4(%rdi)
LBB0_15:
	movq	_NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wiphy_ext_feature_set
	movq	%r14, %rdi
	callq	_ieee80211_register_hw
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_wiphy_err
	movq	%r12, %rdi
	callq	_mwl8k_tx_queues
	testl	%eax, %eax
	jle	LBB0_20
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mwl8k_txq_deinit
	incl	%ebx
	movq	%r12, %rdi
	callq	_mwl8k_tx_queues
	cmpl	%eax, %ebx
	jl	LBB0_19
LBB0_20:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mwl8k_rxq_deinit
LBB0_21:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.22:
	movl	8(%r12), %ecx
	movl	24(%r12), %edi
	movl	$4, %esi
	callq	_pci_free_consistent
	jmp	LBB0_23
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot start firmware\n"

	.comm	_REDUCED_TX_HEADROOM,4,2        ## @REDUCED_TX_HEADROOM
	.comm	_MWL8K_TX_WMM_QUEUES,4,2        ## @MWL8K_TX_WMM_QUEUES
	.comm	_SIGNAL_DBM,4,2                 ## @SIGNAL_DBM
	.comm	_HAS_RATE_CONTROL,4,2           ## @HAS_RATE_CONTROL
	.comm	_AP_LINK_PS,4,2                 ## @AP_LINK_PS
	.comm	_mwl8k_finalize_join_worker,4,2 ## @mwl8k_finalize_join_worker
	.comm	_mwl8k_watchdog_ba_events,4,2   ## @mwl8k_watchdog_ba_events
	.comm	_mwl8k_hw_restart_work,4,2      ## @mwl8k_hw_restart_work
	.comm	_mwl8k_tx_poll,4,2              ## @mwl8k_tx_poll
	.comm	_mwl8k_rx_poll,4,2              ## @mwl8k_rx_poll
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_ap_if_comb,4,2                 ## @ap_if_comb
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ## @NL80211_EXT_FEATURE_CQM_RSSI_LIST
L_.str.1:                               ## @.str.1
	.asciz	"Cannot register device\n"

	.no_dead_strip	_mwl8k_firmware_load_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_firmware_load_success
_mwl8k_firmware_load_success:           ; @mwl8k_firmware_load_success
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x20, [x0, #144]
	mov	x0, x20
	bl	_mwl8k_load_firmware
	mov	x21, x0
	mov	x0, x19
	bl	_mwl8k_release_firmware
	cbz	w21, LBB0_3
; %bb.1:
	ldr	x0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	wzr, [x20]
	ldr	x8, [x19, #136]
Lloh2:
	adrp	x9, _REDUCED_TX_HEADROOM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REDUCED_TX_HEADROOM@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	neg	w8, w8
Lloh5:
	adrp	x9, _MWL8K_TX_WMM_QUEUES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MWL8K_TX_WMM_QUEUES@GOTPAGEOFF]
	str	w8, [x20]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x20, #24]
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, _HAS_RATE_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HAS_RATE_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
	ldr	x8, [x19, #136]
	cbz	x8, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _AP_LINK_PS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AP_LINK_PS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
LBB0_5:
	movi.2s	v0, #4
	stur	d0, [x20, #4]
	str	xzr, [x19, #128]
	add	x0, x19, #120
	bl	_INIT_LIST_HEAD
	str	xzr, [x19]
	add	x0, x19, #116
Lloh17:
	adrp	x8, _mwl8k_finalize_join_worker@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mwl8k_finalize_join_worker@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #112
Lloh20:
	adrp	x8, _mwl8k_watchdog_ba_events@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mwl8k_watchdog_ba_events@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #108
Lloh23:
	adrp	x8, _mwl8k_hw_restart_work@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mwl8k_hw_restart_work@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x21, x19, #104
Lloh26:
	adrp	x8, _mwl8k_tx_poll@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mwl8k_tx_poll@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_tasklet_init
	mov	x0, x21
	bl	_tasklet_disable
	add	x21, x19, #100
Lloh29:
	adrp	x8, _mwl8k_rx_poll@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mwl8k_rx_poll@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_tasklet_init
	mov	x0, x21
	bl	_tasklet_disable
	ldr	w0, [x19, #24]
	add	x2, x19, #8
	mov	w1, #4
	bl	_pci_alloc_consistent
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.6:
	add	x0, x19, #96
	bl	_mutex_init
	add	x0, x19, #68
	stp	xzr, xzr, [x19, #80]
	str	xzr, [x19, #72]
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_spin_lock_init
	str	xzr, [x19, #56]
	mov	x0, x20
	bl	_mwl8k_probe_hw
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x2, [x19, #16]
	cbnz	x2, LBB0_20
	b	LBB0_2
LBB0_8:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
LBB0_9:
	ldr	x0, [x20, #16]
	str	wzr, [x0, #4]
	ldr	x8, [x19, #48]
Lloh35:
	adrp	x21, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh36:
	ldr	x21, [x21, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
LBB0_11:
Lloh37:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_BIT
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	ldr	w0, [x21]
	bl	_BIT
	mov	x8, x0
	ldr	x0, [x20, #16]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
Lloh40:
	adrp	x9, _ap_if_comb@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ap_if_comb@GOTPAGEOFF]
	str	x9, [x0, #8]
	mov	w9, #1
	stp	w9, w8, [x0]
LBB0_12:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
LBB0_14:
	ldr	w0, [x21]
	bl	_BIT
	mov	x8, x0
	ldr	x0, [x20, #16]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
LBB0_15:
Lloh42:
	adrp	x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_wiphy_ext_feature_set
	mov	x0, x20
	bl	_ieee80211_register_hw
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.16:
	ldr	x0, [x20, #16]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wiphy_err
	mov	x0, x19
	bl	_mwl8k_tx_queues
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.17:
	mov	w22, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_mwl8k_txq_deinit
	add	w22, w22, #1
	mov	x0, x19
	bl	_mwl8k_tx_queues
	cmp	w22, w0
	b.lt	LBB0_18
LBB0_19:
	mov	x0, x20
	mov	w1, #0
	bl	_mwl8k_rxq_deinit
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_2
LBB0_20:
	ldr	w0, [x19, #24]
	ldr	w3, [x19, #8]
	mov	w1, #4
	bl	_pci_free_consistent
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot start firmware\n"

	.comm	_REDUCED_TX_HEADROOM,4,2        ; @REDUCED_TX_HEADROOM
	.comm	_MWL8K_TX_WMM_QUEUES,4,2        ; @MWL8K_TX_WMM_QUEUES
	.comm	_SIGNAL_DBM,4,2                 ; @SIGNAL_DBM
	.comm	_HAS_RATE_CONTROL,4,2           ; @HAS_RATE_CONTROL
	.comm	_AP_LINK_PS,4,2                 ; @AP_LINK_PS
	.comm	_mwl8k_finalize_join_worker,4,2 ; @mwl8k_finalize_join_worker
	.comm	_mwl8k_watchdog_ba_events,4,2   ; @mwl8k_watchdog_ba_events
	.comm	_mwl8k_hw_restart_work,4,2      ; @mwl8k_hw_restart_work
	.comm	_mwl8k_tx_poll,4,2              ; @mwl8k_tx_poll
	.comm	_mwl8k_rx_poll,4,2              ; @mwl8k_rx_poll
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_ap_if_comb,4,2                 ; @ap_if_comb
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ; @NL80211_EXT_FEATURE_CQM_RSSI_LIST
l_.str.1:                               ; @.str.1
	.asciz	"Cannot register device\n"

	.no_dead_strip	_mwl8k_firmware_load_success
.subsections_via_symbols
