	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_set_tx_data
_wcn36xx_set_tx_data:                   ## @wcn36xx_set_tx_data
	.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	%r8, %r14
	movq	%rcx, %r12
	movq	%rdi, %rbx
	movq	8(%r8), %r15
	movq	_WCN36XX_BD_RATE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	testq	%rcx, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.1:
	movq	32(%r12), %r13
	movq	%r13, %rdi
	callq	_wcn36xx_priv_to_vif
	movl	24(%r12), %ecx
	movl	%ecx, 12(%rbx)
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	20(%r12), %eax
	movl	%eax, 20(%rbx)
	leaq	16(%r12), %rax
	jmp	LBB0_7
LBB0_10:
	movq	%rsi, %rcx
	movl	4(%r15), %esi
	movq	%rcx, %rdi
	callq	_get_vif_by_addr
	movq	%rax, %r13
	movl	8(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	4(%r13), %eax
	movl	%eax, 16(%rbx)
	movl	(%r13), %eax
	movl	%eax, 12(%rbx)
	movl	(%r15), %edi
	callq	_ieee80211_is_nullfunc
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_3:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_6:
	movl	12(%r12), %eax
	movl	%eax, 20(%rbx)
	leaq	8(%r12), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_8:
	movl	(%r15), %edi
	callq	_ieee80211_is_nullfunc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_11:
	cmpl	$0, 4(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_13
LBB0_12:
	movl	$1, (%rbx)
LBB0_13:
	testl	%edx, %edx
	je	LBB0_15
## %bb.14:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rbx)
LBB0_15:
	movq	%r13, (%rcx)
	movl	(%r15), %edi
	callq	_ieee80211_is_data_qos
	movl	(%r14), %edx
	testq	%r12, %r12
	je	LBB0_18
## %bb.16:
	movl	%eax, %r15d
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_wcn36xx_set_tx_pdu
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wcn36xx_tx_start_ampdu         ## TAILCALL
LBB0_18:
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wcn36xx_set_tx_pdu             ## TAILCALL
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_BD_RATE_DATA,4,2       ## @WCN36XX_BD_RATE_DATA
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.no_dead_strip	_wcn36xx_set_tx_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_set_tx_data
_wcn36xx_set_tx_data:                   ; @wcn36xx_set_tx_data
	.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	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x26, [x4, #8]
Lloh0:
	adrp	x8, _WCN36XX_BD_RATE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_BD_RATE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	cbz	x3, LBB0_3
; %bb.1:
	ldr	x25, [x20, #32]
	mov	x0, x25
	bl	_wcn36xx_priv_to_vif
	ldr	w8, [x20, #24]
	str	w8, [x22, #12]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x20, #20]
	str	w8, [x22, #20]
	add	x8, x20, #16
	b	LBB0_6
LBB0_3:
	ldr	w1, [x26, #4]
	mov	x0, x21
	bl	_get_vif_by_addr
	mov	x25, x0
	ldr	w8, [x0, #8]
	str	w8, [x22, #20]
	ldr	d0, [x0]
	stur	d0, [x22, #12]
	ldr	w0, [x26]
	bl	_ieee80211_is_nullfunc
	cbnz	x0, LBB0_8
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x20, #12]
	str	w8, [x22, #20]
	add	x8, x20, #8
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x22, #16]
LBB0_7:
	ldr	w0, [x26]
	bl	_ieee80211_is_nullfunc
	cbz	x0, LBB0_15
LBB0_8:
	mov	w8, #1
	str	w8, [x22]
LBB0_9:
	cbz	w24, LBB0_11
; %bb.10:
	movi.2s	v0, #1
	stur	d0, [x22, #4]
LBB0_11:
	str	x25, [x23]
	ldr	w0, [x26]
	bl	_ieee80211_is_data_qos
	ldr	w2, [x19]
	cbz	x20, LBB0_14
; %bb.12:
	mov	x23, x0
	ldr	w3, [x20]
	mov	x0, x22
	mov	w1, #4
	bl	_wcn36xx_set_tx_pdu
	cbz	w23, LBB0_16
; %bb.13:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_wcn36xx_tx_start_ampdu
LBB0_14:
	mov	x0, x22
	mov	w1, #4
	mov	w3, #0
	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	_wcn36xx_set_tx_pdu
LBB0_15:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_9
	b	LBB0_8
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_BD_RATE_DATA,4,2       ; @WCN36XX_BD_RATE_DATA
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.no_dead_strip	_wcn36xx_set_tx_data
.subsections_via_symbols
