	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_setup_basic_htrates  ## -- Begin function ieee80211_setup_basic_htrates
	.p2align	4, 0x90
_ieee80211_setup_basic_htrates:         ## @ieee80211_setup_basic_htrates
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	_IEEE80211_ELEMID_VENDOR@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	movq	%rdi, %r15
	sete	%al
	cmpl	$0, 8(%rdi)
	je	LBB0_11
## %bb.1:
	movq	_IEEE80211_HTRATE_MAXSIZE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_10
## %bb.2:
	movb	%al, %r12b
	shlq	$2, %r12
	xorl	%ebx, %ebx
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %r13
	movq	_IEEE80211_RATE_BASIC@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	_IEEE80211_HTRATE_MAXSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,8), %edi
	movl	%ebx, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rcx
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rdx
	movslq	%eax, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,4), %esi
	movl	(%r13), %edi
	andl	%esi, %edi
	cmpl	%ebx, %edi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	orl	(%r14), %esi
	movl	%esi, (%rcx,%rdx,4)
	movl	8(%r15), %eax
	jmp	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r15), %edi
	movq	_IEEE80211_MSG_XRATE@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_11N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_NOTE                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ELEMID_VENDOR,8,3    ## @IEEE80211_ELEMID_VENDOR
	.comm	_IEEE80211_MSG_XRATE,4,2        ## @IEEE80211_MSG_XRATE
	.comm	_IEEE80211_MSG_11N,4,2          ## @IEEE80211_MSG_11N
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"WARNING, empty HT rate set"

	.comm	_IEEE80211_HTRATE_MAXSIZE,4,2   ## @IEEE80211_HTRATE_MAXSIZE
	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.comm	_IEEE80211_RATE_BASIC,4,2       ## @IEEE80211_RATE_BASIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_setup_basic_htrates  ; -- Begin function ieee80211_setup_basic_htrates
	.p2align	2
_ieee80211_setup_basic_htrates:         ; @ieee80211_setup_basic_htrates
	.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, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _IEEE80211_ELEMID_VENDOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_ELEMID_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_11
; %bb.1:
Lloh3:
	adrp	x21, _IEEE80211_HTRATE_MAXSIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IEEE80211_HTRATE_MAXSIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	w20, #0
Lloh5:
	adrp	x22, _IEEE80211_RATE_VAL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh7:
	adrp	x23, _IEEE80211_RATE_BASIC@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IEEE80211_RATE_BASIC@GOTPAGEOFF]
	add	x24, x1, x8, lsl #5
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w0, [x24]
	mov	x1, x20
	bl	_isclr
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	ldr	x10, [x19, #16]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10, x9, lsl #2]
	ldr	w12, [x22]
	and	w12, w12, w11
	cmp	w12, w20
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x23]
	orr	w8, w8, w11
	str	w8, [x10, x9, lsl #2]
	ldr	w8, [x19, #8]
	b	LBB0_7
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
LBB0_11:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _IEEE80211_MSG_XRATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_MSG_XRATE@GOTPAGEOFF]
Lloh11:
	adrp	x9, _IEEE80211_MSG_11N@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_MSG_11N@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
Lloh17:
	adrp	x4, l_.str.1@PAGE
Lloh18:
	add	x4, x4, l_.str.1@PAGEOFF
	orr	w1, w9, w8
	mov	x2, x19
	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
	b	_IEEE80211_NOTE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ELEMID_VENDOR,8,3    ; @IEEE80211_ELEMID_VENDOR
	.comm	_IEEE80211_MSG_XRATE,4,2        ; @IEEE80211_MSG_XRATE
	.comm	_IEEE80211_MSG_11N,4,2          ; @IEEE80211_MSG_11N
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"WARNING, empty HT rate set"

	.comm	_IEEE80211_HTRATE_MAXSIZE,4,2   ; @IEEE80211_HTRATE_MAXSIZE
	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.comm	_IEEE80211_RATE_BASIC,4,2       ; @IEEE80211_RATE_BASIC
.subsections_via_symbols
