	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_set_rate
_prism54_set_rate:                      ## @prism54_set_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	cmpl	$-1, (%r15)
	je	LBB0_1
## %bb.2:
	movq	_DOT11_OID_SUPPORTEDRATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mgt_get_request
	movq	-48(%rbp), %r12
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
LBB0_15:
	callq	_kfree
	jmp	LBB0_16
LBB0_1:
	movb	$1, -33(%rbp)
	movq	_DOT11_OID_PROFILES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-33(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_4:
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_11
## %bb.5:
	movslq	(%r15), %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$49, %rcx
	addl	%edx, %ecx
	movsbl	%cl, %edx
	movl	%ecx, %esi
	shll	$24, %esi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movsbl	%al, %edi
	cmpl	%edi, %edx
	je	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	-1(%rcx), %rdi
	movl	(%r15), %ebx
	cmpq	%rbx, %rdi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	orb	$-128, %al
	movb	%al, -1(%r12,%rcx)
	movzbl	(%r12,%rcx), %eax
	incq	%rcx
	testb	%al, %al
	jne	LBB0_6
## %bb.10:
	movq	-48(%rbp), %r12
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	orb	$-128, %al
	movb	%al, -1(%r12,%rcx)
	movl	%ecx, %ecx
	movb	$0, (%r12,%rcx)
	cmpq	$0, 8(%r15)
	je	LBB0_14
## %bb.13:
	movb	%al, (%r12)
	movb	$0, 1(%r12)
LBB0_14:
	movb	$-1, -33(%rbp)
	movq	_DOT11_OID_PROFILES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-33(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movl	%eax, %ebx
	movq	_DOT11_OID_EXTENDEDRATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_mgt_set_request
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_DOT11_OID_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_mgt_set_request
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	-48(%rbp), %rdi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DOT11_OID_PROFILES,4,2         ## @DOT11_OID_PROFILES
	.comm	_DOT11_OID_SUPPORTEDRATES,4,2   ## @DOT11_OID_SUPPORTEDRATES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DOT11_OID_EXTENDEDRATES,4,2    ## @DOT11_OID_EXTENDEDRATES
	.comm	_DOT11_OID_RATES,4,2            ## @DOT11_OID_RATES
	.no_dead_strip	_prism54_set_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_set_rate
_prism54_set_rate:                      ; @prism54_set_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _DOT11_OID_SUPPORTEDRATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOT11_OID_SUPPORTEDRATES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	ldr	x20, [sp]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
	mov	x0, x20
LBB0_3:
	bl	_kfree
	b	LBB0_13
LBB0_4:
	mov	w8, #1
	strb	w8, [sp, #15]
Lloh3:
	adrp	x8, _DOT11_OID_PROFILES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOT11_OID_PROFILES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #15
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
	mov	x22, x0
	b	LBB0_13
LBB0_5:
	ldrb	w9, [x20]
	cbz	w9, LBB0_12
; %bb.6:
	mov	x8, #0
	ldrsw	x10, [x21]
	mov	w11, #56963
	movk	w11, #17179, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #49
	add	w11, w10, w11
	lsl	w10, w11, #24
	sxtb	w11, w11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w10, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtb	w12, w9
	cmp	w11, w12
	b.eq	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w12, [x21]
	cmp	x8, x12
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	orr	w9, w9, #0x80
	add	x12, x20, x8
	strb	w9, [x12]
	add	x8, x8, #1
	ldrb	w9, [x12, #1]
	cbnz	w9, LBB0_7
; %bb.11:
	ldr	x20, [sp]
LBB0_12:
	mov	x0, x20
	bl	_kfree
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_14:
	orr	w9, w9, #0xffffff80
	strb	w9, [x20, x8]
	add	w8, w8, #1
	strb	wzr, [x20, w8, uxtw]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_16
; %bb.15:
	strb	w9, [x20]
	strb	wzr, [x20, #1]
LBB0_16:
	mov	w8, #255
	strb	w8, [sp, #15]
Lloh9:
	adrp	x8, _DOT11_OID_PROFILES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DOT11_OID_PROFILES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x3, sp, #15
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
	mov	x21, x0
Lloh12:
	adrp	x8, _DOT11_OID_EXTENDEDRATES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOT11_OID_EXTENDEDRATES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_mgt_set_request
	orr	w21, w0, w21
Lloh15:
	adrp	x8, _DOT11_OID_RATES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOT11_OID_RATES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_mgt_set_request
	orr	w22, w21, w0
	ldr	x0, [sp]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DOT11_OID_PROFILES,4,2         ; @DOT11_OID_PROFILES
	.comm	_DOT11_OID_SUPPORTEDRATES,4,2   ; @DOT11_OID_SUPPORTEDRATES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DOT11_OID_EXTENDEDRATES,4,2    ; @DOT11_OID_EXTENDEDRATES
	.comm	_DOT11_OID_RATES,4,2            ; @DOT11_OID_RATES
	.no_dead_strip	_prism54_set_rate
.subsections_via_symbols
