	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_set_tx_status
_iwlagn_set_tx_status:                  ## @iwlagn_set_tx_status
	.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, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rdx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	8(%r12), %rax
	incq	%rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	%r15d, %edi
	callq	_iwl_tx_status_to_mac80211
	orl	%eax, (%rbx)
	movl	(%r12), %edi
	callq	_le32_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_iwlagn_hwrate_to_tx_control
	movl	%r15d, %edi
	callq	_iwl_is_tx_success
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwlagn_count_tx_err_status     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.no_dead_strip	_iwlagn_set_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_set_tx_status
_iwlagn_set_tx_status:                  ; @iwlagn_set_tx_status
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x2, #16]
	bl	_le16_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	ldr	x8, [x21, #8]
	add	x8, x8, #1
	ldr	x9, [x22, #8]
	str	x8, [x9]
	bl	_iwl_tx_status_to_mac80211
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_iwlagn_hwrate_to_tx_control
	mov	x0, x20
	bl	_iwl_is_tx_success
	cbz	w0, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	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	_iwlagn_count_tx_err_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.no_dead_strip	_iwlagn_set_tx_status
.subsections_via_symbols
