	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wext_siwrate
_cfg80211_wext_siwrate:                 ## @cfg80211_wext_siwrate
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	(%r13), %rdi
	callq	_wiphy_to_dev
	movq	%rax, %r15
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r12), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	8(%r12), %rcx
	shrl	$5, %eax
	imulq	$175921861, %rax, %r14          ## imm = 0xA7C5AC5
	shrq	$39, %r14
	xorl	%eax, %eax
	movq	%rcx, %rdx
	negq	%rdx
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	orl	%r14d, %r12d
	testq	%rcx, %rcx
	cmovel	%eax, %r14d
	jmp	LBB0_6
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movl	$-1, %r12d
LBB0_6:
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_17
## %bb.7:
	movq	(%r13), %rax
	movq	(%rax), %r10
	xorl	%edi, %edi
	movq	-48(%rbp), %r8
	xorl	%r11d, %r11d
	jmp	LBB0_8
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %r11d
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	movl	%eax, (%r8,%rdi,4)
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdi
	movslq	(%r9), %rax
	cmpq	%rax, %rdi
	jge	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r10,%rdi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rcx), %rdx
	movq	-48(%rbp), %rbx
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rcx,4), %eax
	cmpl	%eax, %r14d
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpl	%r12d, %eax
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	$1, %eax
	shll	%cl, %eax
	movl	$1, %r11d
	orl	%eax, (%rbx,%rdi,4)
	jmp	LBB0_14
LBB0_16:
	testl	%r11d, %r11d
	je	LBB0_17
## %bb.18:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_rdev_set_bitrate_mask
	jmp	LBB0_19
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cfg80211_wext_siwrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wext_siwrate
_cfg80211_wext_siwrate:                 ; @cfg80211_wext_siwrate
	.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
	mov	x19, x0
	ldr	x22, [x0]
	ldr	x0, [x22]
	bl	_wiphy_to_dev
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_4
; %bb.2:
	ldr	x9, [x21, #8]
	lsr	w8, w8, #5
	mov	w10, #23237
	movk	w10, #2684, lsl #16
	umull	x8, w8, w10
	lsr	x10, x8, #39
	cmp	x9, #0
	csinv	w8, w10, wzr, eq
	csel	w9, wzr, w10, eq
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_19
LBB0_4:
	mov	w9, #0
	mov	w8, #-1
LBB0_5:
Lloh2:
	adrp	x10, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w11, #1
	b.lt	LBB0_18
; %bb.6:
	mov	x11, #0
	mov	w12, #0
	ldr	x13, [x22]
	ldr	x13, [x13]
	ldr	x14, [sp, #8]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w12, #1
	lsl	w15, w12, w16
	str	w15, [x14, x11, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x11, #1
	ldrsw	x15, [x10]
	cmp	x11, x15
	b.ge	LBB0_16
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x17, [x13, x11, lsl #3]
	cbz	x17, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w15, [x17]
	cmp	w15, #1
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x16, #0
	ldr	x17, [x17, #8]
	ldr	x0, [sp, #8]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x16, x16, #1
	cmp	x15, x16
	b.eq	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x17, x16, lsl #2]
	cmp	w9, w1
	b.eq	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w1, w8
	b.gt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	w12, #1
	lsl	w1, w12, w16
	lsl	x2, x11, #2
	ldr	w3, [x0, x2]
	orr	w1, w3, w1
	str	w1, [x0, x2]
	b	LBB0_12
LBB0_16:
	cbz	w12, LBB0_18
; %bb.17:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_rdev_set_bitrate_mask
	b	LBB0_20
LBB0_18:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cfg80211_wext_siwrate
.subsections_via_symbols
