	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_tx_send_packet
_wl1251_tx_send_packet:                 ## @wl1251_tx_send_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %r13
	movq	(%rdx), %rax
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	movq	%r13, %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	16(%r13), %edi
	movl	24(%r13), %ebx
	callq	_le16_to_cpu
	movq	_WL1251_TKIP_IV_SPACE@GOTPCREL(%rip), %r12
	addl	(%r12), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%r13)
	movl	%ebx, %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_skb_push
	movslq	(%r12), %rsi
	addq	%rax, %rsi
	addl	$24, %ebx
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memmove
	movq	(%r15), %rdi
LBB0_5:
	andl	$3, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
	andl	$3, %ebx
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	%r15, %rdi
	callq	_skb_cloned
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_skb_tailroom
	cmpl	%ebx, %eax
	jge	LBB0_10
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_skb_copy_expand
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_9:
	movq	(%r12), %r13
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	movq	16(%r14), %rax
	movq	(%r13), %rcx
	movq	%r12, (%rax,%rcx,8)
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	andl	$3, %ebx
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	%r12, %r15
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movq	(%r15), %r12
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_reserve
	movq	(%r15), %rdi
	movl	8(%r15), %edx
	movq	%r12, %rsi
	callq	_memmove
	movq	(%r15), %r13
LBB0_12:
	movl	8(%r15), %edi
	callq	_WL1251_TX_ALIGN
	testb	$1, (%r14)
	movq	8(%r14), %rcx
	movq	(%rcx), %rsi
	je	LBB0_14
## %bb.13:
	addq	8(%rcx), %rsi
LBB0_14:
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_wl1251_mem_write
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	movl	16(%r13), %r8d
	movl	12(%r13), %r9d
	movl	8(%r13), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb offset %d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"new skb offset %d"

L_.str.2:                               ## @.str.2
	.asciz	"tx id %u skb 0x%p payload %u rate 0x%x queue %d"

	.no_dead_strip	_wl1251_tx_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_tx_send_packet
_wl1251_tx_send_packet:                 ; @wl1251_tx_send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x1]
	ldr	x9, [x2]
	mov	x8, x23
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x9]
Lloh0:
	adrp	x8, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	mov	x8, x23
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w21, [x23, #24]
	ldr	w0, [x23, #16]
	bl	_le16_to_cpu
Lloh3:
	adrp	x22, _WL1251_TKIP_IV_SPACE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WL1251_TKIP_IV_SPACE@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w0, w8, w0
	bl	_cpu_to_le16
	str	w0, [x23, #16]
	mov	x0, x21
	bl	_ieee80211_hdrlen
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_skb_push
	ldrsw	x8, [x22]
	add	x1, x0, x8
	add	w2, w21, #24
	bl	_memmove
	ldr	x8, [x20]
LBB0_4:
	and	x0, x8, #0x3
	bl	_unlikely
Lloh5:
	adrp	x24, _DEBUG_TX@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DEBUG_TX@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w8, [x20]
	neg	w8, w8
	and	w21, w8, #0x3
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wl1251_debug
	mov	x0, x20
	bl	_skb_cloned
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_skb_tailroom
	cmp	w0, w21
	b.ge	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #3
	bl	_skb_copy_expand
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_9:
	ldr	x23, [x22]
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	str	x22, [x8, x9, lsl #3]
	ldr	w8, [x22]
	neg	w8, w8
	and	w21, w8, #0x3
	ldr	w0, [x24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_wl1251_debug
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	mov	x20, x22
LBB0_10:
	cbz	w21, LBB0_12
; %bb.11:
	ldr	x22, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_skb_reserve
	ldr	x0, [x20]
	ldr	w2, [x20, #8]
	mov	x1, x22
	bl	_memmove
	ldr	x23, [x20]
LBB0_12:
	ldr	w0, [x20, #8]
	bl	_WL1251_TX_ALIGN
	mov	x3, x0
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	ldrb	w9, [x19]
	tbz	w9, #0, LBB0_14
; %bb.13:
	ldr	x8, [x8, #8]
	add	x1, x8, x1
LBB0_14:
	ldr	x2, [x20]
	mov	x0, x19
	bl	_wl1251_mem_write
	ldr	w0, [x24]
	ldr	x2, [x23]
	ldp	w9, w8, [x23, #12]
	ldr	w10, [x23, #8]
	stp	x9, x10, [sp, #16]
	stp	x20, x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1251_debug
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb offset %d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"new skb offset %d"

l_.str.2:                               ; @.str.2
	.asciz	"tx id %u skb 0x%p payload %u rate 0x%x queue %d"

	.no_dead_strip	_wl1251_tx_send_packet
.subsections_via_symbols
