	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_put_sta_rate
_nl80211_put_sta_rate:                  ## @nl80211_put_sta_rate
	.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	%rsi, %r12
	movq	%rdi, %r13
	movl	%edx, %esi
	callq	_nla_nest_start
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_cfg80211_calculate_bitrate
	xorl	%r14d, %r14d
	cmpq	$65536, %rax                    ## imm = 0x10000
	movl	$0, %ebx
	cmovbq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_NL80211_RATE_INFO_BITRATE32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_29
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	_NL80211_RATE_INFO_BITRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_nla_put_u16
	testq	%rax, %rax
	jne	LBB0_29
LBB0_6:
	movl	(%r12), %eax
	movq	_RATE_INFO_FLAGS_MCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.7:
	movq	_NL80211_RATE_INFO_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r13, %rdi
	callq	_nla_put_u8
	testq	%rax, %rax
	jne	LBB0_29
## %bb.8:
	movl	(%r12), %eax
	movq	_RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.9:
	movq	_NL80211_RATE_INFO_40_MHZ_WIDTH@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_29
## %bb.25:
	movl	(%r12), %eax
LBB0_26:
	movq	_RATE_INFO_FLAGS_SHORT_GI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:
	movq	_NL80211_RATE_INFO_SHORT_GI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_29
	jmp	LBB0_28
LBB0_1:
	xorl	%r14d, %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_RATE_INFO_FLAGS_VHT_MCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.11:
	movq	_NL80211_RATE_INFO_VHT_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r13, %rdi
	callq	_nla_put_u8
	testq	%rax, %rax
	jne	LBB0_29
## %bb.12:
	movq	_NL80211_RATE_INFO_VHT_NSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	movq	%r13, %rdi
	callq	_nla_put_u8
	testq	%rax, %rax
	jne	LBB0_29
## %bb.13:
	movl	(%r12), %eax
	movq	_RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.14:
	movq	_NL80211_RATE_INFO_40_MHZ_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_29
## %bb.15:
	movl	(%r12), %eax
LBB0_16:
	movq	_RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.17:
	movq	_NL80211_RATE_INFO_80_MHZ_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_29
## %bb.18:
	movl	(%r12), %eax
LBB0_19:
	movq	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.20:
	movq	_NL80211_RATE_INFO_80P80_MHZ_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_29
## %bb.21:
	movl	(%r12), %eax
LBB0_22:
	movq	_RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.23:
	movq	_NL80211_RATE_INFO_160_MHZ_WIDTH@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_28:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_nla_nest_end
	movl	$1, %r14d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_RATE_INFO_BITRATE32,4,2 ## @NL80211_RATE_INFO_BITRATE32
	.comm	_NL80211_RATE_INFO_BITRATE,4,2  ## @NL80211_RATE_INFO_BITRATE
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ## @RATE_INFO_FLAGS_MCS
	.comm	_NL80211_RATE_INFO_MCS,4,2      ## @NL80211_RATE_INFO_MCS
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_40_MHZ_WIDTH,4,2 ## @NL80211_RATE_INFO_40_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ## @RATE_INFO_FLAGS_SHORT_GI
	.comm	_NL80211_RATE_INFO_SHORT_GI,4,2 ## @NL80211_RATE_INFO_SHORT_GI
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ## @RATE_INFO_FLAGS_VHT_MCS
	.comm	_NL80211_RATE_INFO_VHT_MCS,4,2  ## @NL80211_RATE_INFO_VHT_MCS
	.comm	_NL80211_RATE_INFO_VHT_NSS,4,2  ## @NL80211_RATE_INFO_VHT_NSS
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_80_MHZ_WIDTH,4,2 ## @NL80211_RATE_INFO_80_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_80P80_MHZ_WIDTH,4,2 ## @NL80211_RATE_INFO_80P80_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_160_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_160_MHZ_WIDTH,4,2 ## @NL80211_RATE_INFO_160_MHZ_WIDTH
	.no_dead_strip	_nl80211_put_sta_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_put_sta_rate
_nl80211_put_sta_rate:                  ; @nl80211_put_sta_rate
	.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	x21, x1
	mov	x19, x0
	mov	x1, x2
	bl	_nla_nest_start
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_cfg80211_calculate_bitrate
	cmp	x0, #16, lsl #12                ; =65536
	csel	x22, x0, xzr, lo
	cbz	x0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh0:
	adrp	x8, _NL80211_RATE_INFO_BITRATE32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_RATE_INFO_BITRATE32@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_16
LBB0_3:
	cbz	x22, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _NL80211_RATE_INFO_BITRATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_RATE_INFO_BITRATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_nla_put_u16
	cbnz	x0, LBB0_16
LBB0_5:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _RATE_INFO_FLAGS_MCS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RATE_INFO_FLAGS_MCS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.6:
Lloh9:
	adrp	x8, _NL80211_RATE_INFO_MCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_RATE_INFO_MCS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_nla_put_u8
	cbnz	x0, LBB0_16
; %bb.7:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
Lloh15:
	adrp	x8, _NL80211_RATE_INFO_40_MHZ_WIDTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_RATE_INFO_40_MHZ_WIDTH@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_16
; %bb.10:
	ldr	w8, [x21]
LBB0_11:
Lloh17:
	adrp	x9, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.12:
Lloh20:
	adrp	x8, _NL80211_RATE_INFO_SHORT_GI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NL80211_RATE_INFO_SHORT_GI@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_16
	b	LBB0_18
LBB0_13:
Lloh23:
	adrp	x9, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.14:
Lloh26:
	adrp	x8, _NL80211_RATE_INFO_VHT_MCS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NL80211_RATE_INFO_VHT_MCS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_nla_put_u8
	cbnz	x0, LBB0_16
; %bb.15:
Lloh29:
	adrp	x8, _NL80211_RATE_INFO_VHT_NSS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NL80211_RATE_INFO_VHT_NSS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_nla_put_u8
	cbz	x0, LBB0_19
LBB0_16:
	mov	w0, #0
LBB0_17:
	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_18:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_end
	mov	w0, #1
	b	LBB0_17
LBB0_19:
	ldr	w8, [x21]
Lloh32:
	adrp	x9, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
Lloh35:
	adrp	x8, _NL80211_RATE_INFO_40_MHZ_WIDTH@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NL80211_RATE_INFO_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_16
; %bb.21:
	ldr	w8, [x21]
LBB0_22:
Lloh38:
	adrp	x9, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.23:
Lloh41:
	adrp	x8, _NL80211_RATE_INFO_80_MHZ_WIDTH@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NL80211_RATE_INFO_80_MHZ_WIDTH@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_16
; %bb.24:
	ldr	w8, [x21]
LBB0_25:
Lloh44:
	adrp	x9, _RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPAGE
Lloh45:
	ldr	x9, [x9, _RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.26:
Lloh47:
	adrp	x8, _NL80211_RATE_INFO_80P80_MHZ_WIDTH@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NL80211_RATE_INFO_80P80_MHZ_WIDTH@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_16
; %bb.27:
	ldr	w8, [x21]
LBB0_28:
Lloh50:
	adrp	x9, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGE
Lloh51:
	ldr	x9, [x9, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.29:
Lloh53:
	adrp	x8, _NL80211_RATE_INFO_160_MHZ_WIDTH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NL80211_RATE_INFO_160_MHZ_WIDTH@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_RATE_INFO_BITRATE32,4,2 ; @NL80211_RATE_INFO_BITRATE32
	.comm	_NL80211_RATE_INFO_BITRATE,4,2  ; @NL80211_RATE_INFO_BITRATE
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ; @RATE_INFO_FLAGS_MCS
	.comm	_NL80211_RATE_INFO_MCS,4,2      ; @NL80211_RATE_INFO_MCS
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_40_MHZ_WIDTH,4,2 ; @NL80211_RATE_INFO_40_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ; @RATE_INFO_FLAGS_SHORT_GI
	.comm	_NL80211_RATE_INFO_SHORT_GI,4,2 ; @NL80211_RATE_INFO_SHORT_GI
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ; @RATE_INFO_FLAGS_VHT_MCS
	.comm	_NL80211_RATE_INFO_VHT_MCS,4,2  ; @NL80211_RATE_INFO_VHT_MCS
	.comm	_NL80211_RATE_INFO_VHT_NSS,4,2  ; @NL80211_RATE_INFO_VHT_NSS
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_80_MHZ_WIDTH,4,2 ; @NL80211_RATE_INFO_80_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_80P80_MHZ_WIDTH,4,2 ; @NL80211_RATE_INFO_80P80_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_160_MHZ_WIDTH
	.comm	_NL80211_RATE_INFO_160_MHZ_WIDTH,4,2 ; @NL80211_RATE_INFO_160_MHZ_WIDTH
	.no_dead_strip	_nl80211_put_sta_rate
.subsections_via_symbols
