	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_tx_packet_cb
_wl1251_tx_packet_cb:                   ## @wl1251_tx_packet_cb
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	(%rdi), %rax
	movq	(%rsi), %rsi
	movq	(%rax,%rsi,8), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movl	(%rax), %eax
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.2:
	movq	_IEEE80211_TX_CTL_INJECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.3:
	movl	8(%r13), %ecx
	movq	_TX_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.4:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
LBB0_5:
	movslq	16(%r13), %rax
	movq	%rax, %rcx
	incq	%rcx
	movq	16(%r12), %rdx
	movq	%rcx, (%rdx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	addl	%eax, 12(%rbx)
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	%rax, %rbx
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_ieee80211_get_hdrlen_from_skb
	movq	_WL1251_TKIP_IV_SPACE@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	leaq	(%rbx,%rcx,4), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memmove
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_skb_pull
LBB0_8:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r13), %rbx
	movl	16(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %r14d
	movl	%r14d, %edi
	callq	_wl1251_tx_parse_status
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r14
	callq	_wl1251_debug
	addq	$16, %rsp
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_ieee80211_tx_status
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movq	$0, (%rax,%rcx,8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1251_error                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SKB for packet %d is NULL"

	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_CTL_INJECTED,4,2  ## @IEEE80211_TX_CTL_INJECTED
	.comm	_TX_SUCCESS,4,2                 ## @TX_SUCCESS
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_WL1251_TKIP_IV_SPACE,4,2       ## @WL1251_TKIP_IV_SPACE
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
L_.str.1:                               ## @.str.1
	.asciz	"tx status id %u skb 0x%p failures %u rate 0x%x status 0x%x (%s)"

	.no_dead_strip	_wl1251_tx_packet_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_tx_packet_cb
_wl1251_tx_packet_cb:                   ; @wl1251_tx_packet_cb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x1, [x1]
	ldr	x21, [x8, x1, lsl #3]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _IEEE80211_TX_CTL_INJECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_TX_CTL_INJECTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x19, #8]
Lloh6:
	adrp	x10, _TX_SUCCESS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TX_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_5:
	ldrsw	x8, [x19, #16]
	add	x9, x8, #1
	ldr	x10, [x22, #16]
	str	x9, [x10]
	ldr	w9, [x20, #12]
	add	w8, w9, w8
	str	w8, [x20, #12]
	mov	x0, x21
	mov	w1, #4
	bl	_skb_pull
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x23, x0
	mov	x0, x21
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x2, x0
Lloh15:
	adrp	x22, _WL1251_TKIP_IV_SPACE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _WL1251_TKIP_IV_SPACE@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x0, x23, x8, lsl #2
	mov	x1, x23
	bl	_memmove
	ldr	w1, [x22]
	mov	x0, x21
	bl	_skb_pull
LBB0_8:
Lloh17:
	adrp	x8, _DEBUG_TX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEBUG_TX@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	ldr	x23, [x19]
	ldp	w25, w24, [x19, #12]
	ldr	w26, [x19, #8]
	mov	x0, x26
	bl	_wl1251_tx_parse_status
	mov	x7, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, x24
	mov	x5, x25
	mov	x6, x26
	bl	_wl1251_debug
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_ieee80211_tx_status
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wl1251_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SKB for packet %d is NULL"

	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_CTL_INJECTED,4,2  ; @IEEE80211_TX_CTL_INJECTED
	.comm	_TX_SUCCESS,4,2                 ; @TX_SUCCESS
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_WL1251_TKIP_IV_SPACE,4,2       ; @WL1251_TKIP_IV_SPACE
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
l_.str.1:                               ; @.str.1
	.asciz	"tx status id %u skb 0x%p failures %u rate 0x%x status 0x%x (%s)"

	.no_dead_strip	_wl1251_tx_packet_cb
.subsections_via_symbols
