	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_policy_upload
_tx_policy_upload:                      ## @tx_policy_upload
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_TX_POLICY_CACHE_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	$0, -32(%rbp)
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_cw1200_debug_tx_cache_miss
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_pr_debug
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wsm_set_tx_rate_retry_policy
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_POLICY_CACHE_SIZE,4,2       ## @TX_POLICY_CACHE_SIZE
	.comm	_WSM_TX_RATE_POLICY_FLAG_TERMINATE_WHEN_FINISHED,4,2 ## @WSM_TX_RATE_POLICY_FLAG_TERMINATE_WHEN_FINISHED
	.comm	_WSM_TX_RATE_POLICY_FLAG_COUNT_INITIAL_TRANSMIT,4,2 ## @WSM_TX_RATE_POLICY_FLAG_COUNT_INITIAL_TRANSMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[TX policy] Upload %d policies\n"

	.no_dead_strip	_tx_policy_upload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_policy_upload
_tx_policy_upload:                      ; @tx_policy_upload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_bh
Lloh0:
	adrp	x8, _TX_POLICY_CACHE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_POLICY_CACHE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	str	xzr, [sp]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_cw1200_debug_tx_cache_miss
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_pr_debug
	mov	x1, sp
	mov	x0, x19
	bl	_wsm_set_tx_rate_retry_policy
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_POLICY_CACHE_SIZE,4,2       ; @TX_POLICY_CACHE_SIZE
	.comm	_WSM_TX_RATE_POLICY_FLAG_TERMINATE_WHEN_FINISHED,4,2 ; @WSM_TX_RATE_POLICY_FLAG_TERMINATE_WHEN_FINISHED
	.comm	_WSM_TX_RATE_POLICY_FLAG_COUNT_INITIAL_TRANSMIT,4,2 ; @WSM_TX_RATE_POLICY_FLAG_COUNT_INITIAL_TRANSMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[TX policy] Upload %d policies\n"

	.no_dead_strip	_tx_policy_upload
.subsections_via_symbols
