	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_ext_srates_ie    ## -- Begin function ieee80211_add_ext_srates_ie
	.p2align	4, 0x90
_ieee80211_add_ext_srates_ie:           ## @ieee80211_add_ext_srates_ie
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	8(%rdi), %rax
	movl	(%rdi), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %r13
	movl	(%r13), %eax
	leal	-8(%rax), %ebx
	xorl	%r12d, %r12d
	cmpl	$9, %eax
	cmovll	%r12d, %ebx
	movq	%rsi, %rdi
	callq	_skb_tailroom
	leal	2(%rbx), %esi
	cmpl	%esi, %eax
	jge	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	callq	_skb_put
	movq	%rax, %r15
	movq	_WLAN_EID_EXT_SUPP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	%ebx, 4(%r15)
	cmpl	$9, (%r13)
	jl	LBB0_8
## %bb.4:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	movslq	(%rax,%rbx,4), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$33, %rax
	addl	%edx, %eax
	orl	%ecx, %eax
	movl	%eax, -24(%r15,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %ecx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	setne	%cl
	shll	$7, %ecx
	jmp	LBB0_7
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ## @WLAN_EID_EXT_SUPP_RATES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_ext_srates_ie    ; -- Begin function ieee80211_add_ext_srates_ie
	.p2align	2
_ieee80211_add_ext_srates_ie:           ; @ieee80211_add_ext_srates_ie
	.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	x19, x2
	mov	x20, x1
	ldr	x8, [x0, #8]
	ldr	w21, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x22, [x8, w3, uxtw #3]
	ldr	w8, [x22]
	subs	w8, w8, #8
	csel	w23, w8, wzr, gt
	mov	x0, x1
	bl	_skb_tailroom
	add	w1, w23, #2
	cmp	w0, w1
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	cbz	w23, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_skb_put
Lloh3:
	adrp	x8, _WLAN_EID_EXT_SUPP_RATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_EXT_SUPP_RATES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w23, [x0]
	ldr	w8, [x22]
	cmp	w8, #9
	b.lt	LBB0_9
; %bb.4:
	mov	x23, #0
	add	x20, x0, #8
	mov	w24, #26215
	movk	w24, #26214, lsl #16
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w0, w23, #8
	bl	_BIT
	tst	w0, w21
	cset	w8, ne
	lsl	w8, w8, #7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x22, #8]
	lsl	x10, x23, #2
	add	x9, x9, x10
	ldrsw	x9, [x9, #32]
	mul	x9, x9, x24
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w11, asr #1
	orr	w8, w9, w8
	str	w8, [x20, x10]
	ldrsw	x8, [x22]
	add	x9, x23, #9
	add	x23, x23, #1
	cmp	x9, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w19, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #0
	b	LBB0_6
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ; @WLAN_EID_EXT_SUPP_RATES
.subsections_via_symbols
