	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_handle_txstatus      ## -- Begin function b43legacy_handle_txstatus
	.p2align	4, 0x90
_b43legacy_handle_txstatus:             ## @b43legacy_handle_txstatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_b43legacy_debugfs_log_txstat
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, 4(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	incl	8(%rax)
LBB0_4:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$15, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	addq	$4, %rax
	jmp	LBB0_8
LBB0_7:
	movq	(%r14), %rax
LBB0_8:
	incl	(%rax)
LBB0_9:
	movq	%r14, %rdi
	callq	_b43legacy_using_pio
	movq	%r14, %rdi
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43legacy_pio_handle_txstatus  ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43legacy_dma_handle_txstatus  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_handle_txstatus      ; -- Begin function b43legacy_handle_txstatus
	.p2align	2
_b43legacy_handle_txstatus:             ; @b43legacy_handle_txstatus
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_b43legacy_debugfs_log_txstat
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.6:
	cmp	w8, #15
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x20]
	add	x8, x8, #4
	b	LBB0_9
LBB0_8:
	ldr	x8, [x20]
LBB0_9:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_10:
	mov	x0, x20
	bl	_b43legacy_using_pio
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43legacy_pio_handle_txstatus
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43legacy_dma_handle_txstatus
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
