	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_bitrate_mask
_ieee80211_set_bitrate_mask:            ## @ieee80211_set_bitrate_mask
	.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	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r13
	movl	(%r12), %edi
	callq	_wdev_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_ieee80211_sdata_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IEEE80211_HW_HAS_RATE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_drv_set_bitrate_mask
	testl	%eax, %eax
	jne	LBB0_14
LBB0_4:
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, (%rax,%rbx,4)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	4(%rcx,%rbx,8), %edx
	movq	16(%r13), %rsi
	movq	(%rax,%rbx,8), %r12
	movl	%edx, (%rsi,%rbx,4)
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%rcx,%rbx,8), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r13), %rax
	movl	$0, (%rax,%rbx,4)
	testq	%r12, %r12
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdx
	movq	(%rdx,%rbx,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$-1, (%rdx,%rsi,4)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_1:
	movq	_ENETDOWN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_IEEE80211_HW_HAS_RATE_CONTROL,4,2 ## @IEEE80211_HW_HAS_RATE_CONTROL
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ## @IEEE80211_HT_MCS_MASK_LEN
	.no_dead_strip	_ieee80211_set_bitrate_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_bitrate_mask
_ieee80211_set_bitrate_mask:            ; @ieee80211_set_bitrate_mask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x21, x0
	ldr	w0, [x22]
	bl	_wdev_priv
	mov	x22, x0
	mov	x0, x21
	bl	_ieee80211_sdata_running
	cbz	w0, LBB0_12
; %bb.1:
	ldr	w8, [x22]
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.eq	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_drv_set_bitrate_mask
	cbnz	w0, LBB0_14
LBB0_3:
Lloh3:
	adrp	x22, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x23, #0
Lloh5:
	adrp	x24, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w25, [x8, x23, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x20]
	lsl	x9, x23, #3
	ldr	x26, [x8, x9]
	ldr	x8, [x19]
	add	x8, x8, x9
	ldr	w10, [x8, #4]
	ldr	x11, [x21, #16]
	lsl	x27, x23, #2
	str	w10, [x11, x27]
	ldr	x10, [x21]
	ldr	x0, [x10, x9]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #8]
	str	wzr, [x8, x27]
	cbz	x26, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x21]
	ldr	x10, [x10, x23, lsl #3]
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	cmn	w11, #1
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_10
	b	LBB0_6
LBB0_12:
Lloh7:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_IEEE80211_HW_HAS_RATE_CONTROL,4,2 ; @IEEE80211_HW_HAS_RATE_CONTROL
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ; @IEEE80211_HT_MCS_MASK_LEN
	.no_dead_strip	_ieee80211_set_bitrate_mask
.subsections_via_symbols
