	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_enable_mac             ## -- Begin function brcms_c_enable_mac
	.p2align	4, 0x90
_brcms_c_enable_mac:                    ## @brcms_c_enable_mac
	.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), %rax
	movq	8(%rdi), %r15
	movq	16(%r15), %r14
	movl	8(%r15), %edx
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_brcms_dbg_mac80211
	movq	(%r15), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r15)
	cmpq	$1, %rax
	jle	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %ebx
	movq	_MCTL_PSM_JMP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_WARN_ON
	movq	_MCTL_EN_MAC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	andl	%ebx, %edi
	callq	_WARN_ON
	movq	_MCTL_PSM_RUN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %ebx
	sete	%dil
	callq	_WARN_ON
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_brcms_b_mctrl
	movq	_macintstatus@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_D11REGOFFS
	movq	_MI_MACSSPNDD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %ebx
	movq	_MCTL_PSM_JMP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_WARN_ON
	xorl	%edi, %edi
	movl	(%r13), %eax
	andl	%ebx, %eax
	sete	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	movq	_MCTL_PSM_RUN@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	sete	%dil
	callq	_WARN_ON
	movl	(%r12), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_MI_MACSSPNDD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_BRCMS_WAKE_OVERRIDE_MACSUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_c_ucode_wake_override_clear ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: bandunit %d\n"

	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_MCTL_PSM_JMP_0,4,2             ## @MCTL_PSM_JMP_0
	.comm	_MCTL_EN_MAC,4,2                ## @MCTL_EN_MAC
	.comm	_MCTL_PSM_RUN,4,2               ## @MCTL_PSM_RUN
	.comm	_macintstatus,4,2               ## @macintstatus
	.comm	_MI_MACSSPNDD,4,2               ## @MI_MACSSPNDD
	.comm	_BRCMS_WAKE_OVERRIDE_MACSUSPEND,4,2 ## @BRCMS_WAKE_OVERRIDE_MACSUSPEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_enable_mac             ; -- Begin function brcms_c_enable_mac
	.p2align	2
_brcms_c_enable_mac:                    ; @brcms_c_enable_mac
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldp	x8, x19, [x0]
	ldr	x20, [x19, #16]
	ldr	w2, [x19, #8]
	ldr	w3, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_brcms_dbg_mac80211
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.le	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x22, _maccontrol@GOTPAGE
Lloh3:
	ldr	x22, [x22, _maccontrol@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	mov	x21, x0
Lloh4:
	adrp	x23, _MCTL_PSM_JMP_0@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MCTL_PSM_JMP_0@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w0, w8, w0
	bl	_WARN_ON
Lloh6:
	adrp	x24, _MCTL_EN_MAC@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MCTL_EN_MAC@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w0, w8, w21
	bl	_WARN_ON
Lloh8:
	adrp	x25, _MCTL_PSM_RUN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MCTL_PSM_RUN@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w21
	cset	w0, eq
	bl	_WARN_ON
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x1
	bl	_brcms_b_mctrl
Lloh10:
	adrp	x26, _macintstatus@GOTPAGE
Lloh11:
	ldr	x26, [x26, _macintstatus@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_D11REGOFFS
	mov	x1, x0
Lloh12:
	adrp	x27, _MI_MACSSPNDD@GOTPAGE
Lloh13:
	ldr	x27, [x27, _MI_MACSSPNDD@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_bcma_write32
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	mov	x21, x0
	ldr	w8, [x23]
	and	w0, w8, w0
	bl	_WARN_ON
	ldr	w8, [x24]
	tst	w8, w21
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x25]
	tst	w8, w21
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x26]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	ldr	w8, [x27]
	and	w0, w8, w0
	bl	_WARN_ON
Lloh14:
	adrp	x8, _BRCMS_WAKE_OVERRIDE_MACSUSPEND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BRCMS_WAKE_OVERRIDE_MACSUSPEND@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_brcms_c_ucode_wake_override_clear
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: bandunit %d\n"

	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_MCTL_PSM_JMP_0,4,2             ; @MCTL_PSM_JMP_0
	.comm	_MCTL_EN_MAC,4,2                ; @MCTL_EN_MAC
	.comm	_MCTL_PSM_RUN,4,2               ; @MCTL_PSM_RUN
	.comm	_macintstatus,4,2               ; @macintstatus
	.comm	_MI_MACSSPNDD,4,2               ; @MI_MACSSPNDD
	.comm	_BRCMS_WAKE_OVERRIDE_MACSUSPEND,4,2 ; @BRCMS_WAKE_OVERRIDE_MACSUSPEND
.subsections_via_symbols
