	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_dxe_tx_frame           ## -- Begin function wcn36xx_dxe_tx_frame
	.p2align	4, 0x90
_wcn36xx_dxe_tx_frame:                  ## @wcn36xx_dxe_tx_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	56(%rdi), %r14
	leaq	16(%rdi), %rax
	testl	%r8d, %r8d
	cmoveq	%rax, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r14), %r12
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	callq	_ieee80211_stop_queues
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_wcn36xx_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	16(%r12), %rdi
	movq	32(%r12), %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r12)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movl	24(%r12), %eax
	movl	%eax, 12(%r13)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r14), %eax
	movl	%eax, 8(%r13)
	movl	$4, (%r13)
	movq	_WCN36XX_DBG_DXE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wcn36xx_dbg
	movq	_WCN36XX_DBG_DXE_DUMP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movl	$16, %ecx
	callq	_wcn36xx_dbg_dump
	movl	(%rbx), %edi
	movq	16(%r12), %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %ecx
	callq	_wcn36xx_dbg_dump
	movq	%r15, %r13
	movl	8(%r15), %edi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, 12(%r12)
	movl	8(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, 8(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	32(%r15), %eax
	movl	%eax, 8(%r12)
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	_WCN36XX_DBG_DXE_DUMP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	movl	$16, %ecx
	callq	_wcn36xx_dbg_dump
	movl	(%r14), %edi
	movq	8(%rbx), %rax
	movq	8(%rax), %rdx
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rsi
	callq	_wcn36xx_dbg_dump
	movq	(%rbx), %rax
	movq	%rax, 24(%r15)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wmb
	movl	16(%r15), %eax
	movl	%eax, 4(%r12)
	xorl	%eax, %eax
	callq	_wmb
	movl	12(%r15), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	%r15, %r14
	je	LBB0_9
## %bb.7:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_WCN36XX_BMPS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	4(%r13), %edi
	movq	_WCN36XX_SMSM_WLAN_TX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_qcom_smem_state_update_bits
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	%r13, %rdi
	callq	_wcn36xx_dxe_write_register
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bd_cpu_addr cannot be NULL for skb DXE\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WCN36XX_DBG_DXE,4,2            ## @WCN36XX_DBG_DXE
L_.str.1:                               ## @.str.1
	.asciz	"DXE TX\n"

	.comm	_WCN36XX_DBG_DXE_DUMP,4,2       ## @WCN36XX_DBG_DXE_DUMP
L_.str.2:                               ## @.str.2
	.asciz	"DESC1 >>> "

L_.str.3:                               ## @.str.3
	.asciz	"BD   >>> "

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.4:                               ## @.str.4
	.asciz	"unable to DMA map src_addr_l\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"DESC2 >>> "

L_.str.6:                               ## @.str.6
	.asciz	"SKB   >>> "

	.comm	_WCN36XX_BMPS,8,3               ## @WCN36XX_BMPS
	.comm	_WCN36XX_SMSM_WLAN_TX_ENABLE,4,2 ## @WCN36XX_SMSM_WLAN_TX_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_dxe_tx_frame           ; -- Begin function wcn36xx_dxe_tx_frame
	.p2align	2
_wcn36xx_dxe_tx_frame:                  ; @wcn36xx_dxe_tx_frame
	.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	x22, x4
	mov	x24, x3
	mov	x26, x2
	mov	x21, x1
	mov	x20, x0
	add	x8, x0, #56
	add	x9, x0, #16
	cmp	w4, #0
	csel	x19, x9, x8, eq
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x28, [x19, #24]
	ldr	x27, [x28]
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_ieee80211_stop_queues
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_2:
	ldr	x0, [x27, #16]
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wcn36xx_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x23, [x28, #32]
	ldr	x25, [x27, #32]
	str	xzr, [x28, #8]
	ldr	x0, [x28, #16]
	mov	x1, x26
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x28, #24]
	ldr	w9, [x19, #32]
	stp	w9, w8, [x23, #8]
	mov	w8, #4
	str	w8, [x23]
Lloh7:
	adrp	x8, _WCN36XX_DBG_DXE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WCN36XX_DBG_DXE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wcn36xx_dbg
Lloh12:
	adrp	x26, _WCN36XX_DBG_DXE_DUMP@GOTPAGE
Lloh13:
	ldr	x26, [x26, _WCN36XX_DBG_DXE_DUMP@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	w3, #16
	bl	_wcn36xx_dbg_dump
	ldr	w0, [x26]
	ldr	x2, [x28, #16]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #4
	bl	_wcn36xx_dbg_dump
	ldr	w0, [x20, #8]
	ldr	x1, [x24, #8]
	ldr	w2, [x24]
Lloh18:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x25, #12]
	ldr	w0, [x20, #8]
	bl	_dma_mapping_error
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w0, [x20, #8]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	str	x24, [x27, #8]
	ldr	w8, [x19, #32]
	str	w8, [x25, #8]
	ldr	w8, [x24]
	str	w8, [x25]
	ldr	w0, [x26]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x25
	mov	w3, #16
	bl	_wcn36xx_dbg_dump
	ldr	w0, [x26]
	ldr	x8, [x27, #8]
	ldr	x2, [x8, #8]
	ldr	w3, [x8]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wcn36xx_dbg_dump
	ldr	x8, [x27]
	str	x8, [x19, #24]
	bl	_wmb
	ldr	w8, [x19, #16]
	str	w8, [x25, #4]
	bl	_wmb
	ldr	w8, [x19, #12]
	str	w8, [x23, #4]
	cbz	w22, LBB0_12
; %bb.10:
	ldr	x8, [x21]
Lloh29:
	adrp	x9, _WCN36XX_BMPS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WCN36XX_BMPS@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x20, #4]
Lloh32:
	adrp	x8, _WCN36XX_SMSM_WLAN_TX_ENABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WCN36XX_SMSM_WLAN_TX_ENABLE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x2, x1
	bl	_qcom_smem_state_update_bits
	b	LBB0_13
LBB0_12:
	ldp	w2, w1, [x19, #4]
	mov	x0, x20
	bl	_wcn36xx_dxe_write_register
LBB0_13:
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bd_cpu_addr cannot be NULL for skb DXE\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WCN36XX_DBG_DXE,4,2            ; @WCN36XX_DBG_DXE
l_.str.1:                               ; @.str.1
	.asciz	"DXE TX\n"

	.comm	_WCN36XX_DBG_DXE_DUMP,4,2       ; @WCN36XX_DBG_DXE_DUMP
l_.str.2:                               ; @.str.2
	.asciz	"DESC1 >>> "

l_.str.3:                               ; @.str.3
	.asciz	"BD   >>> "

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.4:                               ; @.str.4
	.asciz	"unable to DMA map src_addr_l\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"DESC2 >>> "

l_.str.6:                               ; @.str.6
	.asciz	"SKB   >>> "

	.comm	_WCN36XX_BMPS,8,3               ; @WCN36XX_BMPS
	.comm	_WCN36XX_SMSM_WLAN_TX_ENABLE,4,2 ; @WCN36XX_SMSM_WLAN_TX_ENABLE
.subsections_via_symbols
