	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsi_coex_send_pkt              ## -- Begin function rsi_coex_send_pkt
	.p2align	4, 0x90
_rsi_coex_send_pkt:                     ## @rsi_coex_send_pkt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movl	%edx, %edi
	callq	_rsi_map_coex_q
	movq	_RSI_COEX_Q_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERR_ZONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_rsi_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_RSI_COEX_Q_COMMON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	movq	_RSI_COEX_Q_WLAN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %edi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_skb_queue_tail
	movq	%r15, %rdi
	callq	_rsi_set_event
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_INTERNAL_MGMT_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_9:
	movq	(%r14), %rax
	movq	_MGMT_SOFT_Q@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsi_send_mgmt_pkt              ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsi_send_data_pkt              ## TAILCALL
LBB0_8:
	movl	(%rbx), %edi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	subl	(%rax), %edx
	movq	%r14, %rsi
	callq	_rsi_indicate_tx_status
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_RSI_COEX_Q_INVALID,4,2         ## @RSI_COEX_Q_INVALID
	.comm	_ERR_ZONE,4,2                   ## @ERR_ZONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid coex queue\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RSI_COEX_Q_COMMON,4,2          ## @RSI_COEX_Q_COMMON
	.comm	_RSI_COEX_Q_WLAN,4,2            ## @RSI_COEX_Q_WLAN
	.comm	_INTERNAL_MGMT_PKT,4,2          ## @INTERNAL_MGMT_PKT
	.comm	_MGMT_SOFT_Q,8,3                ## @MGMT_SOFT_Q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsi_coex_send_pkt              ; -- Begin function rsi_coex_send_pkt
	.p2align	2
_rsi_coex_send_pkt:                     ; @rsi_coex_send_pkt
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	mov	x0, x2
	bl	_rsi_map_coex_q
Lloh0:
	adrp	x8, _RSI_COEX_Q_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSI_COEX_Q_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERR_ZONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_ZONE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rsi_dbg
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
Lloh11:
	adrp	x8, _RSI_COEX_Q_COMMON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RSI_COEX_Q_COMMON@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _RSI_COEX_Q_WLAN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RSI_COEX_Q_WLAN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x0]
Lloh17:
	adrp	x9, _INTERNAL_MGMT_PKT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INTERNAL_MGMT_PKT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_5:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _MGMT_SOFT_Q@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MGMT_SOFT_Q@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	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
	b	_rsi_send_mgmt_pkt
LBB0_7:
	ldr	x8, [x21, #8]
	add	x0, x8, w0, uxtw #2
	mov	x1, x19
	bl	_skb_queue_tail
	mov	x0, x21
	bl	_rsi_set_event
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	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
	b	_rsi_send_data_pkt
LBB0_11:
	ldr	w0, [x20]
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w2, w8
	mov	x1, x19
	bl	_rsi_indicate_tx_status
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_RSI_COEX_Q_INVALID,4,2         ; @RSI_COEX_Q_INVALID
	.comm	_ERR_ZONE,4,2                   ; @ERR_ZONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid coex queue\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RSI_COEX_Q_COMMON,4,2          ; @RSI_COEX_Q_COMMON
	.comm	_RSI_COEX_Q_WLAN,4,2            ; @RSI_COEX_Q_WLAN
	.comm	_INTERNAL_MGMT_PKT,4,2          ; @INTERNAL_MGMT_PKT
	.comm	_MGMT_SOFT_Q,8,3                ; @MGMT_SOFT_Q
.subsections_via_symbols
