	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_start
_mwl8k_start:                           ## @mwl8k_start
	.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, %r13
	movq	8(%rdi), %r14
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_mwl8k_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MWL8K_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	$-1, (%r14)
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	8(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_tasklet_enable
	leaq	4(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_tasklet_enable
	movq	_MWL8K_A2H_EVENTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MWL8K_HIU_A2H_INTERRUPT_MASK@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	24(%r14), %rsi
	callq	_iowrite32
	movl	(%rbx), %edi
	movq	_MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r14), %rsi
	callq	_iowrite32
	movq	%r13, %rdi
	callq	_mwl8k_fw_lock
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	%r13, %rdi
	callq	_mwl8k_cmd_radio_enable
	movl	%eax, %r12d
	cmpl	$0, 32(%r14)
	je	LBB0_4
## %bb.8:
	testl	%r12d, %r12d
	jne	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mwl8k_cmd_set_rateadapt_mode
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mwl8k_cmd_set_wmm_mode
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mwl8k_fw_unlock
	testl	%r12d, %r12d
	movq	_MWL8K_HIU_A2H_INTERRUPT_MASK@GOTPCREL(%rip), %r15
	jne	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	callq	_ieee80211_wake_queues
	jmp	LBB0_14
LBB0_4:
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mwl8k_cmd_enable_sniffer
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r13, %rdi
	callq	_mwl8k_cmd_set_pre_scan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	leaq	l_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_mwl8k_cmd_set_post_scan
	movl	%eax, %r12d
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_mwl8k_fw_unlock
	movq	_MWL8K_HIU_A2H_INTERRUPT_MASK@GOTPCREL(%rip), %r15
LBB0_12:
	movq	(%r15), %rsi
	addq	24(%r14), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_free_irq
	movl	$-1, (%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tasklet_disable
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_tasklet_disable
	movl	%r12d, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mwl8k_interrupt,4,2            ## @mwl8k_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_MWL8K_NAME,4,2                 ## @MWL8K_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register IRQ handler\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_MWL8K_A2H_EVENTS,4,2           ## @MWL8K_A2H_EVENTS
	.comm	_MWL8K_HIU_A2H_INTERRUPT_MASK,8,3 ## @MWL8K_HIU_A2H_INTERRUPT_MASK
	.comm	_MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK,8,3 ## @MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	7

	.no_dead_strip	_mwl8k_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_start
_mwl8k_start:                           ; @mwl8k_start
	.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	x23, [x0, #8]
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _mwl8k_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mwl8k_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MWL8K_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWL8K_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x23]
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_2:
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	str	w8, [x23]
	add	x20, x23, #8
	mov	x0, x20
	bl	_tasklet_enable
	add	x21, x23, #4
	mov	x0, x21
	bl	_tasklet_enable
Lloh14:
	adrp	x22, _MWL8K_A2H_EVENTS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MWL8K_A2H_EVENTS@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x23, #24]
Lloh16:
	adrp	x24, _MWL8K_HIU_A2H_INTERRUPT_MASK@GOTPAGE
Lloh17:
	ldr	x24, [x24, _MWL8K_HIU_A2H_INTERRUPT_MASK@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w0, [x22]
	ldr	x8, [x23, #24]
Lloh18:
	adrp	x9, _MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	mov	x0, x19
	bl	_mwl8k_fw_lock
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_mwl8k_cmd_radio_enable
	mov	x22, x0
	ldr	w8, [x23, #32]
	cbz	w8, LBB0_8
; %bb.4:
	cbnz	w22, LBB0_12
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_mwl8k_cmd_set_rateadapt_mode
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_mwl8k_cmd_set_wmm_mode
	mov	x22, x0
	mov	x0, x19
	bl	_mwl8k_fw_unlock
	cbnz	w22, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_ieee80211_wake_queues
	b	LBB0_14
LBB0_8:
	cbnz	w22, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	bl	_mwl8k_cmd_enable_sniffer
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_mwl8k_cmd_set_pre_scan
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.11:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwl8k_cmd_set_post_scan
	mov	x22, x0
	cbz	w22, LBB0_5
LBB0_12:
	mov	x0, x19
	bl	_mwl8k_fw_unlock
LBB0_13:
	ldr	x8, [x23, #24]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	mov	w8, #-1
	str	w8, [x23]
	mov	x0, x20
	bl	_tasklet_disable
	mov	x0, x21
	bl	_tasklet_disable
LBB0_14:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_mwl8k_interrupt,4,2            ; @mwl8k_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_MWL8K_NAME,4,2                 ; @MWL8K_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register IRQ handler\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_MWL8K_A2H_EVENTS,4,2           ; @MWL8K_A2H_EVENTS
	.comm	_MWL8K_HIU_A2H_INTERRUPT_MASK,8,3 ; @MWL8K_HIU_A2H_INTERRUPT_MASK
	.comm	_MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK,8,3 ; @MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	7

	.no_dead_strip	_mwl8k_start
.subsections_via_symbols
