	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_11n_form_amsdu_txpd
_mwifiex_11n_form_amsdu_txpd:           ## @mwifiex_11n_form_amsdu_txpd
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_MWIFIEX_SKB_TXCB
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_skb_push
	movq	16(%rbx), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movq	%rax, 56(%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_wmm_compute_drv_pkt_delay
	movl	%eax, 48(%r12)
	movl	16(%r14), %eax
	movl	%eax, 44(%r12)
	movl	12(%r14), %eax
	movl	%eax, 40(%r12)
	movl	$64, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r12)
	movq	_PKT_TYPE_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r12)
	movl	(%rbx), %edi
	addl	$-64, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r12)
	movq	_MWIFIEX_BUF_FLAG_TDLS_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_MWIFIEX_TXPD_FLAGS_TDLS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
LBB0_2:
	cmpq	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
LBB0_4:
	movq	%r14, %rdi
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_mwifiex_check_last_packet_indication
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	movl	$1, (%rax)
	movq	_MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_TYPE_AMSDU,4,2             ## @PKT_TYPE_AMSDU
	.comm	_MWIFIEX_BUF_FLAG_TDLS_PKT,4,2  ## @MWIFIEX_BUF_FLAG_TDLS_PKT
	.comm	_MWIFIEX_TXPD_FLAGS_TDLS_PACKET,4,2 ## @MWIFIEX_TXPD_FLAGS_TDLS_PACKET
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ## @MWIFIEX_BSS_ROLE_STA
	.comm	_MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET,4,2 ## @MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET
	.no_dead_strip	_mwifiex_11n_form_amsdu_txpd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_11n_form_amsdu_txpd
_mwifiex_11n_form_amsdu_txpd:           ; @mwifiex_11n_form_amsdu_txpd
	.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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_MWIFIEX_SKB_TXCB
	mov	x22, x0
	mov	x0, x21
	mov	w1, #64
	bl	_skb_push
	ldr	x20, [x21, #16]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	x8, [x21, #8]
	str	x8, [x20, #56]
	mov	x0, x19
	mov	x1, x21
	bl	_mwifiex_wmm_compute_drv_pkt_delay
	str	w0, [x20, #48]
	ldur	d0, [x19, #12]
	str	d0, [x20, #40]
	mov	w0, #64
	bl	_cpu_to_le16
	str	x0, [x20, #32]
Lloh0:
	adrp	x8, _PKT_TYPE_AMSDU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKT_TYPE_AMSDU@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #24]
	ldr	w8, [x21]
	sub	w0, w8, #64
	bl	_cpu_to_le16
	str	x0, [x20, #16]
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _MWIFIEX_BUF_FLAG_TDLS_PKT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MWIFIEX_BUF_FLAG_TDLS_PKT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MWIFIEX_TXPD_FLAGS_TDLS_PACKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWIFIEX_TXPD_FLAGS_TDLS_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_cpu_to_le32
	str	x0, [x20]
LBB0_4:
	mov	x0, x19
	bl	_GET_BSS_ROLE
Lloh9:
	adrp	x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_mwifiex_check_last_packet_indication
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
Lloh12:
	adrp	x8, _MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_TYPE_AMSDU,4,2             ; @PKT_TYPE_AMSDU
	.comm	_MWIFIEX_BUF_FLAG_TDLS_PKT,4,2  ; @MWIFIEX_BUF_FLAG_TDLS_PKT
	.comm	_MWIFIEX_TXPD_FLAGS_TDLS_PACKET,4,2 ; @MWIFIEX_TXPD_FLAGS_TDLS_PACKET
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ; @MWIFIEX_BSS_ROLE_STA
	.comm	_MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET,4,2 ; @MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET
	.no_dead_strip	_mwifiex_11n_form_amsdu_txpd
.subsections_via_symbols
