	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_fill_txstatus_report       ## -- Begin function b43_fill_txstatus_report
	.p2align	4, 0x90
_b43_fill_txstatus_report:              ## @b43_fill_txstatus_report
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movl	(%rax), %r12d
	movq	%rsi, %rdi
	callq	_ieee80211_tx_info_clear_status
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	setne	%al
LBB0_3:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movq	8(%r14), %rdx
	movq	(%r15), %rsi
	movq	(%rsi), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_7
## %bb.6:
	movq	8(%rbx), %rdx
	movl	$0, (%rdx)
	movl	%ecx, 8(%rdx)
	jmp	LBB0_10
LBB0_4:
	movq	8(%rbx), %rcx
	movl	$0, (%rcx)
	jmp	LBB0_10
LBB0_7:
	movl	%ecx, %esi
	movq	8(%rbx), %rdx
	subl	%r12d, %esi
	jle	LBB0_9
## %bb.8:
	movl	%r12d, (%rdx)
	movl	%esi, 8(%rdx)
	jmp	LBB0_10
LBB0_9:
	movl	%ecx, (%rdx)
	movl	$-1, 12(%rdx)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_fill_txstatus_report       ; -- Begin function b43_fill_txstatus_report
	.p2align	2
_b43_fill_txstatus_report:              ; @b43_fill_txstatus_report
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1, #8]
	ldr	w22, [x8]
	mov	x0, x1
	bl	_ieee80211_tx_info_clear_status
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
	ldr	w8, [x20]
	cbz	w8, LBB0_5
LBB0_2:
	ldr	x9, [x20, #8]
	ldr	x10, [x21]
	ldr	x10, [x10]
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_6
; %bb.3:
	ldr	x9, [x19, #8]
	str	wzr, [x9]
	str	w8, [x9, #8]
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
LBB0_5:
	ldr	x8, [x19, #8]
	str	wzr, [x8]
	b	LBB0_9
LBB0_6:
	ldr	x9, [x19, #8]
	subs	w10, w8, w22
	b.le	LBB0_8
; %bb.7:
	str	w22, [x9]
	str	w10, [x9, #8]
	b	LBB0_9
LBB0_8:
	str	w8, [x9]
	mov	w8, #-1
	str	w8, [x9, #12]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
.subsections_via_symbols
