	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_tx_fifo_suspend
_brcms_b_tx_fifo_suspend:               ## @brcms_b_tx_fifo_suspend
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movl	(%rdi), %eax
	btl	%esi, %eax
	jb	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_BRCMS_WAKE_OVERRIDE_TXFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_brcms_c_ucode_wake_override_set
	movl	(%r14), %eax
LBB0_3:
	orl	%ebx, %eax
	movl	%eax, (%r14)
	movq	16(%r14), %rax
	movslq	%r15d, %rbx
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.4:
	movl	8(%r14), %edi
	callq	_BRCMS_PHY_11N_CAP
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%r14), %edi
	callq	_brcms_c_suspend_mac_and_wait
LBB0_6:
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dma_txsuspend
	movl	8(%r14), %edi
	callq	_BRCMS_PHY_11N_CAP
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	4(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_c_enable_mac             ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_WAKE_OVERRIDE_TXFIFO,4,2 ## @BRCMS_WAKE_OVERRIDE_TXFIFO
	.no_dead_strip	_brcms_b_tx_fifo_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_tx_fifo_suspend
_brcms_b_tx_fifo_suspend:               ; @brcms_b_tx_fifo_suspend
	.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	w8, #1
	lsl	w21, w8, w1
	ldr	w8, [x0]
	tst	w8, w21
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _BRCMS_WAKE_OVERRIDE_TXFIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMS_WAKE_OVERRIDE_TXFIFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcms_c_ucode_wake_override_set
	ldr	w8, [x19]
LBB0_3:
	orr	w8, w8, w21
	str	w8, [x19]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, w20, sxtw #3]
	cbz	x8, LBB0_8
; %bb.4:
	sxtw	x20, w20
	ldr	w0, [x19, #8]
	bl	_BRCMS_PHY_11N_CAP
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_brcms_c_suspend_mac_and_wait
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20, lsl #3]
	bl	_dma_txsuspend
	ldr	w0, [x19, #8]
	bl	_BRCMS_PHY_11N_CAP
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
	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
	b	_brcms_c_enable_mac
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_WAKE_OVERRIDE_TXFIFO,4,2 ; @BRCMS_WAKE_OVERRIDE_TXFIFO
	.no_dead_strip	_brcms_b_tx_fifo_suspend
.subsections_via_symbols
