	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wsm_handle_tx_data
_wsm_handle_tx_data:                    ## @wsm_handle_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	(%rcx), %rax
	movl	(%rsi,%rax,4), %r12d
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_30
## %bb.1:
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_2:
	movl	56(%r15), %eax
	movq	_CW1200_JOIN_STATUS_MONITOR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.3:
	movq	_CW1200_JOIN_STATUS_PRE_STA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_30
	jmp	LBB0_11
LBB0_4:
	cmpl	$0, 56(%r15)
	je	LBB0_7
## %bb.5:
	movl	8(%rcx), %edi
	callq	_BIT
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	orl	4(%r15), %eax
	movb	$1, %cl
	testl	%ebx, %eax
	jne	LBB0_8
## %bb.6:
	movq	64(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_warn
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movl	%ecx, %ebx
	movl	(%r14), %edi
	callq	_cw1200_queue_get_generation
	movq	_CW1200_MAX_REQUEUE_ATTEMPTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
## %bb.9:
	movq	64(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wiphy_warn
	jmp	LBB0_30
LBB0_29:
	movl	56(%r15), %eax
	movq	_CW1200_JOIN_STATUS_IBSS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
LBB0_11:
	movl	%r12d, %edi
	callq	_ieee80211_is_nullfunc
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	36(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	cmpq	$0, 48(%r15)
	je	LBB0_14
## %bb.13:
	movl	(%r14), %eax
	movl	%eax, 40(%r15)
	movq	_WSM_QUEUE_VOICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_14:
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_31
LBB0_16:
	movl	%r12d, %edi
	callq	_ieee80211_is_probe_req
	testq	%rax, %rax
	je	LBB0_17
## %bb.27:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_wsm_lock_tx_async
	movl	(%r14), %eax
	movl	%eax, 24(%r15)
	movl	20(%r15), %edi
	leaq	28(%r15), %rsi
	xorl	%edx, %edx
	callq	_queue_delayed_work
	movl	$1, %ebx
	testl	%eax, %eax
	jg	LBB0_31
LBB0_28:
	movq	%r15, %rdi
	callq	_wsm_unlock_tx
	jmp	LBB0_31
LBB0_10:
	testb	%bl, %bl
	jne	LBB0_11
LBB0_30:
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_cw1200_queue_remove
	movl	%eax, %edi
	callq	_BUG_ON
	movl	$1, %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%r12d, %edi
	callq	_ieee80211_is_deauth
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	cmpl	$131, (%r15)
	jne	LBB0_19
LBB0_21:
	movl	%r12d, %edi
	callq	_ieee80211_has_protected
	testq	%rax, %rax
	je	LBB0_15
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.23:
	movq	(%rax), %rcx
	cmpq	8(%r15), %rcx
	je	LBB0_15
## %bb.24:
	movq	8(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.25:
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_26:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_wsm_lock_tx_async
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	(%r14), %eax
	movl	%eax, 24(%r15)
	movl	20(%r15), %edi
	leaq	16(%r15), %rsi
	callq	_queue_work
	movl	$1, %ebx
	testq	%rax, %rax
	jg	LBB0_31
	jmp	LBB0_28
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_wsm_lock_tx_async
	movl	20(%r15), %edi
	leaq	32(%r15), %rsi
	callq	_queue_work
	testq	%rax, %rax
	jg	LBB0_15
## %bb.20:
	movq	%r15, %rdi
	callq	_wsm_unlock_tx
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_30
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.comm	_CW1200_JOIN_STATUS_MONITOR,4,2 ## @CW1200_JOIN_STATUS_MONITOR
	.comm	_CW1200_JOIN_STATUS_PRE_STA,4,2 ## @CW1200_JOIN_STATUS_PRE_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A frame with expired link id is dropped.\n"

	.comm	_CW1200_MAX_REQUEUE_ATTEMPTS,4,2 ## @CW1200_MAX_REQUEUE_ATTEMPTS
L_.str.1:                               ## @.str.1
	.asciz	"Too many attempts to requeue a frame; dropped.\n"

	.comm	_CW1200_JOIN_STATUS_IBSS,4,2    ## @CW1200_JOIN_STATUS_IBSS
	.comm	_WSM_QUEUE_VOICE,4,2            ## @WSM_QUEUE_VOICE
L_.str.2:                               ## @.str.2
	.asciz	"[WSM] Issue unjoin command due to tx deauth.\n"

	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
L_.str.3:                               ## @.str.3
	.asciz	"[WSM] Convert probe request to scan.\n"

L_.str.4:                               ## @.str.4
	.asciz	"[WSM] Drop frame (0x%.4X).\n"

L_.str.5:                               ## @.str.5
	.asciz	"[WSM] Issue set_default_wep_key.\n"

L_.str.6:                               ## @.str.6
	.asciz	"[WSM] Transmit frame.\n"

	.no_dead_strip	_wsm_handle_tx_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wsm_handle_tx_data
_wsm_handle_tx_data:                    ; @wsm_handle_tx_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x4
	mov	x20, x1
	ldr	x8, [x3]
	ldr	w22, [x1, x8, lsl #2]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_17
; %bb.1:
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #56]
Lloh2:
	adrp	x9, _CW1200_JOIN_STATUS_MONITOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_MONITOR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _CW1200_JOIN_STATUS_PRE_STA@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CW1200_JOIN_STATUS_PRE_STA@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ne
	b.ge	LBB0_12
	b	LBB0_17
LBB0_3:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	w0, [x3, #8]
	bl	_BIT
	mov	x24, x0
	mov	w0, #0
	bl	_BIT
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	tst	w8, w24
	b.eq	LBB0_7
; %bb.5:
	mov	w24, #1
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19, #56]
Lloh8:
	adrp	x9, _CW1200_JOIN_STATUS_IBSS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_IBSS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_12
	b	LBB0_17
LBB0_7:
	ldr	x8, [x19, #64]
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_warn
LBB0_8:
	mov	w24, #0
LBB0_9:
	ldr	w0, [x20]
	bl	_cw1200_queue_get_generation
Lloh13:
	adrp	x8, _CW1200_MAX_REQUEUE_ATTEMPTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CW1200_MAX_REQUEUE_ATTEMPTS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_11
; %bb.10:
	ldr	x8, [x19, #64]
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wiphy_warn
	b	LBB0_17
LBB0_11:
	cbz	w24, LBB0_17
LBB0_12:
	mov	x0, x22
	bl	_ieee80211_is_nullfunc
	cbz	x0, LBB0_20
; %bb.13:
	add	x21, x19, #36
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w8, [x20]
	str	w8, [x19, #40]
Lloh18:
	adrp	x8, _WSM_QUEUE_VOICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WSM_QUEUE_VOICE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_15:
	mov	x0, x21
	bl	_spin_unlock
LBB0_16:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_19
LBB0_17:
	str	x22, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	w1, [x20]
	mov	x0, x23
	bl	_cw1200_queue_remove
	bl	_BUG_ON
LBB0_18:
	mov	w0, #1
LBB0_19:
	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
	add	sp, sp, #80
	ret
LBB0_20:
	mov	x0, x22
	bl	_ieee80211_is_probe_req
	cbz	x0, LBB0_23
; %bb.21:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_wsm_lock_tx_async
	ldr	w8, [x20]
	str	w8, [x19, #24]
	ldr	w0, [x19, #20]
	add	x1, x19, #28
	mov	w2, #0
	bl	_queue_delayed_work
	cmp	w0, #0
	b.gt	LBB0_18
LBB0_22:
	mov	x0, x19
	bl	_wsm_unlock_tx
	b	LBB0_18
LBB0_23:
	mov	x0, x22
	bl	_ieee80211_is_deauth
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w8, [x19]
	cmp	w8, #131
	b.ne	LBB0_31
LBB0_25:
	mov	x0, x22
	bl	_ieee80211_has_protected
	cbz	x0, LBB0_16
; %bb.26:
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.27:
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.eq	LBB0_16
; %bb.28:
	ldr	x8, [x8, #8]
Lloh27:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh28:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_30
; %bb.29:
Lloh30:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh31:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
LBB0_30:
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_wsm_lock_tx_async
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19, #24]
	ldr	w0, [x19, #20]
	add	x1, x19, #16
	bl	_queue_work
	cmp	x0, #0
	b.gt	LBB0_18
	b	LBB0_22
LBB0_31:
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_wsm_lock_tx_async
	ldr	w0, [x19, #20]
	add	x1, x19, #32
	bl	_queue_work
	cmp	x0, #0
	b.gt	LBB0_16
; %bb.32:
	mov	x0, x19
	bl	_wsm_unlock_tx
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_CW1200_JOIN_STATUS_MONITOR,4,2 ; @CW1200_JOIN_STATUS_MONITOR
	.comm	_CW1200_JOIN_STATUS_PRE_STA,4,2 ; @CW1200_JOIN_STATUS_PRE_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A frame with expired link id is dropped.\n"

	.comm	_CW1200_MAX_REQUEUE_ATTEMPTS,4,2 ; @CW1200_MAX_REQUEUE_ATTEMPTS
l_.str.1:                               ; @.str.1
	.asciz	"Too many attempts to requeue a frame; dropped.\n"

	.comm	_CW1200_JOIN_STATUS_IBSS,4,2    ; @CW1200_JOIN_STATUS_IBSS
	.comm	_WSM_QUEUE_VOICE,4,2            ; @WSM_QUEUE_VOICE
l_.str.2:                               ; @.str.2
	.asciz	"[WSM] Issue unjoin command due to tx deauth.\n"

	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
l_.str.3:                               ; @.str.3
	.asciz	"[WSM] Convert probe request to scan.\n"

l_.str.4:                               ; @.str.4
	.asciz	"[WSM] Drop frame (0x%.4X).\n"

l_.str.5:                               ; @.str.5
	.asciz	"[WSM] Issue set_default_wep_key.\n"

l_.str.6:                               ; @.str.6
	.asciz	"[WSM] Transmit frame.\n"

	.no_dead_strip	_wsm_handle_tx_data
.subsections_via_symbols
