	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sta_prepare_rate_control
_sta_prepare_rate_control:              ## @sta_prepare_rate_control
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_IEEE80211_HW_HAS_RATE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, 4(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movl	%edi, 8(%rsi)
	addq	$4, %rsi
	callq	_rate_control_alloc_sta
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_HAS_RATE_CONTROL,4,2 ## @IEEE80211_HW_HAS_RATE_CONTROL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sta_prepare_rate_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sta_prepare_rate_control
_sta_prepare_rate_control:              ; @sta_prepare_rate_control
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _IEEE80211_HW_HAS_RATE_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_HAS_RATE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	w0, [x0]
	str	w0, [x1, #8]
	add	x1, x1, #4
	bl	_rate_control_alloc_sta
	str	w0, [x19]
	cbz	w0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_HAS_RATE_CONTROL,4,2 ; @IEEE80211_HW_HAS_RATE_CONTROL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sta_prepare_rate_control
.subsections_via_symbols
