	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00mac_tx_rts_cts
_rt2x00mac_tx_rts_cts:                  ## @rt2x00mac_tx_rts_cts
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_dev_alloc_skb
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_skb_reserve
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_skb_put
	movl	8(%r14), %edi
	movl	8(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	8(%rax), %rdx
	andl	(%rdx), %ecx
	movl	%ecx, (%rdx)
	movq	_IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	notl	%esi
	andl	%ecx, %esi
	movl	%esi, (%rdx)
	movq	8(%r12), %rdx
	movl	(%rbx), %esi
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%esi, (%rdx)
	je	LBB0_4
## %bb.3:
	orl	%ecx, 24(%rax)
	jmp	LBB0_5
LBB0_4:
	notl	%ecx
	andl	%ecx, 24(%rax)
LBB0_5:
	movq	$0, 16(%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rt2x00crypto_tx_overhead
	addl	$4, %eax
	movq	8(%r12), %rcx
	movl	(%rbx), %ebx
	movq	(%r15), %rdi
	movl	(%r12), %esi
	movq	(%r13), %rdx
	movq	(%r14), %r9
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	%eax, %ecx
	movq	%r12, %r8
	callq	_ieee80211_ctstoself_get
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ecx
	movq	%r12, %r8
	callq	_ieee80211_rts_get
LBB0_8:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_rt2x00queue_write_tx_frame
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_rt2x00_warn
	movl	%r12d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ## @IEEE80211_TX_RC_USE_CTS_PROTECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create RTS/CTS frame\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ## @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to send RTS/CTS frame\n"

	.no_dead_strip	_rt2x00mac_tx_rts_cts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00mac_tx_rts_cts
_rt2x00mac_tx_rts_cts:                  ; @rt2x00mac_tx_rts_cts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_dev_alloc_skb
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_warn
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x21
	bl	_skb_reserve
	mov	x0, x21
	mov	w1, #4
	bl	_skb_put
	ldr	w0, [x21, #8]
	ldr	w1, [x23, #8]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	bl	_IEEE80211_SKB_CB
Lloh5:
	adrp	x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
Lloh8:
	adrp	x24, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGEOFF]
	ldr	w10, [x24]
	bic	w8, w8, w10
	str	w8, [x9]
	ldr	x8, [x22, #8]
	ldr	w9, [x8]
	ldr	w10, [x24]
Lloh10:
	adrp	x8, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x0, #24]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x0, #24]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x0, #24]
	str	xzr, [x0, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_rt2x00crypto_tx_overhead
	add	w3, w0, #4
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	ldr	w9, [x24]
	ldr	x0, [x19]
	ldr	w1, [x22]
	ldr	x2, [x23]
	ldr	x5, [x21]
	mov	x4, x22
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	bl	_ieee80211_ctstoself_get
	b	LBB0_8
LBB0_7:
	bl	_ieee80211_rts_get
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	w3, #1
	bl	_rt2x00queue_write_tx_frame
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_dev_kfree_skb_any
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_warn
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ; @IEEE80211_TX_RC_USE_CTS_PROTECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create RTS/CTS frame\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ; @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to send RTS/CTS frame\n"

	.no_dead_strip	_rt2x00mac_tx_rts_cts
.subsections_via_symbols
