	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chandef_downgrade
_chandef_downgrade:                     ## @chandef_downgrade
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	$0, 16(%r14)
	jmp	LBB0_5
LBB0_3:
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	subl	4(%r14), %ecx
	addl	$30, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$36, %rdx
	addl	%esi, %edx
	shll	$3, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%ecx, %edx
	addl	%edx, %eax
	addl	$10, %eax
	movl	%eax, 4(%r14)
	movl	$130, (%r14)
	movq	_IEEE80211_STA_DISABLE_VHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movl	$132, (%r14)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_IEEE80211_STA_DISABLE_40MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
LBB0_8:
	movl	$131, (%r14)
	movq	_IEEE80211_STA_DISABLE_HT@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_IEEE80211_STA_DISABLE_VHT@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	subl	4(%r14), %ecx
	addl	$70, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rdx
	addl	%esi, %edx
	shll	$4, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%ecx, %edx
	addl	%edx, %eax
	addl	$30, %eax
	movl	%eax, 4(%r14)
LBB0_5:
	movl	$129, (%r14)
	movq	_IEEE80211_STA_DISABLE_80P80MHZ@GOTPCREL(%rip), %rax
	movq	_IEEE80211_STA_DISABLE_160MHZ@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_cfg80211_chandef_valid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_IEEE80211_STA_DISABLE_HT,4,2   ## @IEEE80211_STA_DISABLE_HT
	.comm	_IEEE80211_STA_DISABLE_VHT,4,2  ## @IEEE80211_STA_DISABLE_VHT
	.comm	_IEEE80211_STA_DISABLE_40MHZ,4,2 ## @IEEE80211_STA_DISABLE_40MHZ
	.comm	_IEEE80211_STA_DISABLE_80P80MHZ,4,2 ## @IEEE80211_STA_DISABLE_80P80MHZ
	.comm	_IEEE80211_STA_DISABLE_160MHZ,4,2 ## @IEEE80211_STA_DISABLE_160MHZ
	.no_dead_strip	_chandef_downgrade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chandef_downgrade
_chandef_downgrade:                     ; @chandef_downgrade
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	wzr, [x19, #16]
	mov	w8, #129
Lloh2:
	adrp	x9, _IEEE80211_STA_DISABLE_80P80MHZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_STA_DISABLE_80P80MHZ@GOTPAGEOFF]
	str	w8, [x19]
Lloh4:
	ldr	w8, [x9]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	sub	w9, w8, w9
	add	w9, w9, #30
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #36
	add	w10, w10, w11
	mov	w11, #40
	neg	w9, w9
	madd	w9, w10, w11, w9
	add	w8, w8, w9
	add	w8, w8, #10
	mov	w9, #130
	stp	w9, w8, [x19]
Lloh5:
	adrp	x8, _IEEE80211_STA_DISABLE_VHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_STA_DISABLE_VHT@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_4:
	mov	w8, #132
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _IEEE80211_STA_DISABLE_40MHZ@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IEEE80211_STA_DISABLE_40MHZ@GOTPAGEOFF]
	stp	w8, w9, [x19]
Lloh10:
	ldr	w8, [x10]
	b	LBB0_7
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_6:
	mov	w8, #131
Lloh11:
	adrp	x9, _IEEE80211_STA_DISABLE_HT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_STA_DISABLE_HT@GOTPAGEOFF]
	str	w8, [x19]
Lloh13:
	ldr	w8, [x9]
LBB0_7:
Lloh14:
	adrp	x9, _IEEE80211_STA_DISABLE_VHT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IEEE80211_STA_DISABLE_VHT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	sub	w9, w8, w9
	add	w9, w9, #70
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w11
	mov	w11, #80
	neg	w9, w9
	madd	w9, w10, w11, w9
	add	w8, w8, w9
	add	w8, w8, #30
	mov	w9, #129
Lloh16:
	adrp	x10, _IEEE80211_STA_DISABLE_80P80MHZ@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IEEE80211_STA_DISABLE_80P80MHZ@GOTPAGEOFF]
	stp	w9, w8, [x19]
Lloh18:
	ldr	w8, [x10]
LBB0_9:
Lloh19:
	adrp	x9, _IEEE80211_STA_DISABLE_160MHZ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_STA_DISABLE_160MHZ@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_11:
	mov	x0, x19
	bl	_cfg80211_chandef_valid
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_IEEE80211_STA_DISABLE_HT,4,2   ; @IEEE80211_STA_DISABLE_HT
	.comm	_IEEE80211_STA_DISABLE_VHT,4,2  ; @IEEE80211_STA_DISABLE_VHT
	.comm	_IEEE80211_STA_DISABLE_40MHZ,4,2 ; @IEEE80211_STA_DISABLE_40MHZ
	.comm	_IEEE80211_STA_DISABLE_80P80MHZ,4,2 ; @IEEE80211_STA_DISABLE_80P80MHZ
	.comm	_IEEE80211_STA_DISABLE_160MHZ,4,2 ; @IEEE80211_STA_DISABLE_160MHZ
	.no_dead_strip	_chandef_downgrade
.subsections_via_symbols
