	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_uap_txpd       ## -- Begin function mwifiex_process_uap_txpd
	.p2align	4, 0x90
_mwifiex_process_uap_txpd:              ## @mwifiex_process_uap_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	%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, %r14
	movq	24(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_MWIFIEX_SKB_TXCB
	movq	%rax, %r12
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movslq	(%rbx), %rbx
	movq	%r13, %rdi
	callq	_skb_headroom
	movq	_MWIFIEX_MIN_DATA_HEADER_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_BUG_ON
	movq	%r13, %rdi
	callq	_mwifiex_is_skb_mgmt_frame
	xorl	%ecx, %ecx
	movq	_PKT_TYPE_MGMT@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rdx), %ecx
LBB0_4:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	subl	%ebx, %eax
	addl	$-64, %eax
	movq	_MWIFIEX_DMA_ALIGN_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	decl	%r15d
	andl	%eax, %r15d
	addq	$64, %r15
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_skb_push
	movq	8(%r13), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	20(%r14), %eax
	movl	%eax, 60(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 56(%rbx)
	movl	(%r13), %edi
	subl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%rbx)
	movq	16(%r13), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mwifiex_wmm_compute_drv_pkt_delay
	movl	%eax, 40(%rbx)
	movl	4(%r12), %eax
	movq	_MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_6:
	movl	8(%r12), %eax
	movl	%eax, 36(%rbx)
	movq	_MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_7:
	movq	(%rbx), %r12
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r12
	jae	LBB0_9
## %bb.8:
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
LBB0_9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	_PKT_TYPE_MGMT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_11
## %bb.10:
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	_MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
LBB0_11:
	leaq	8(%r13), %r12
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_push
	cmpq	$0, 8(%rbx)
	jne	LBB0_13
## %bb.12:
	movl	(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	jmp	LBB0_13
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_mwifiex_dbg
	movl	$-1, (%r12)
	addq	$8, %r13
	movq	%r13, %r12
LBB0_13:
	movq	(%r12), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx: bad packet length: %d\n"

	.comm	_MWIFIEX_MIN_DATA_HEADER_LEN,8,3 ## @MWIFIEX_MIN_DATA_HEADER_LEN
	.comm	_PKT_TYPE_MGMT,4,2              ## @PKT_TYPE_MGMT
	.comm	_MWIFIEX_DMA_ALIGN_SZ,4,2       ## @MWIFIEX_DMA_ALIGN_SZ
	.comm	_MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS,4,2 ## @MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS
	.comm	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS,4,2 ## @MWIFIEX_BUF_FLAG_ACTION_TX_STATUS
	.comm	_MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS,4,2 ## @MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS
	.comm	_MWIFIEX_MGMT_FRAME_HEADER_SIZE,8,3 ## @MWIFIEX_MGMT_FRAME_HEADER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_uap_txpd       ; -- Begin function mwifiex_process_uap_txpd
	.p2align	2
_mwifiex_process_uap_txpd:              ; @mwifiex_process_uap_txpd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x1
	bl	_MWIFIEX_SKB_TXCB
	mov	x23, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.1:
	ldrsw	x21, [x21]
	mov	x0, x19
	bl	_skb_headroom
Lloh0:
	adrp	x8, _MWIFIEX_MIN_DATA_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_MIN_DATA_HEADER_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_BUG_ON
	mov	x0, x19
	bl	_mwifiex_is_skb_mgmt_frame
Lloh3:
	adrp	x27, _PKT_TYPE_MGMT@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PKT_TYPE_MGMT@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	x0, #0
	csel	w25, wzr, w8, eq
	mov	x26, x19
	ldr	w8, [x26, #8]!
	sub	w8, w8, w21
	sub	w8, w8, #64
Lloh5:
	adrp	x9, _MWIFIEX_DMA_ALIGN_SZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MWIFIEX_DMA_ALIGN_SZ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	add	x24, x8, #64
	mov	x0, x19
	mov	x1, x24
	bl	_skb_push
	ldr	x22, [x26]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	d0, [x20, #16]
	str	d0, [x22, #56]
	ldr	w8, [x19]
	sub	w0, w8, w24
	bl	_cpu_to_le16
	str	x0, [x22, #48]
	ldr	x8, [x19, #16]
	str	x8, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_wmm_compute_drv_pkt_delay
	str	w0, [x22, #40]
	ldr	w8, [x23, #4]
Lloh8:
	adrp	x9, _MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x9, _MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS@GOTPAGEOFF]
	ldr	w9, [x23, #8]
Lloh16:
	ldr	w8, [x8]
	ldr	w10, [x22, #32]
	orr	w8, w10, w8
	stp	w8, w9, [x22, #32]
LBB0_4:
	ldr	x23, [x22]
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	x23, x0
	b.hs	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	bl	_cpu_to_le32
	str	x0, [x22, #8]
LBB0_6:
	ldr	w8, [x27]
	cmp	w25, w8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x25
	bl	_cpu_to_le16
	str	x0, [x22, #24]
Lloh17:
	adrp	x8, _MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	w24, w8, w24
LBB0_8:
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_skb_push
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_11
; %bb.9:
	ldr	w0, [x20]
	bl	_cpu_to_le32
	str	x0, [x22, #8]
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w3, #0
	bl	_mwifiex_dbg
	mov	w8, #-1
	str	w8, [x23]
	add	x26, x19, #8
LBB0_11:
	ldr	x0, [x26]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx: bad packet length: %d\n"

	.comm	_MWIFIEX_MIN_DATA_HEADER_LEN,8,3 ; @MWIFIEX_MIN_DATA_HEADER_LEN
	.comm	_PKT_TYPE_MGMT,4,2              ; @PKT_TYPE_MGMT
	.comm	_MWIFIEX_DMA_ALIGN_SZ,4,2       ; @MWIFIEX_DMA_ALIGN_SZ
	.comm	_MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS,4,2 ; @MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS
	.comm	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS,4,2 ; @MWIFIEX_BUF_FLAG_ACTION_TX_STATUS
	.comm	_MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS,4,2 ; @MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS
	.comm	_MWIFIEX_MGMT_FRAME_HEADER_SIZE,8,3 ; @MWIFIEX_MGMT_FRAME_HEADER_SIZE
.subsections_via_symbols
