	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chanpref
_chanpref:                              ## @chanpref
	.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
	callq	_IEEE80211_IS_CHAN_VHT160
	movl	$80, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_VHT80_80
	movl	$75, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_VHT80
	movl	$70, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_VHT40
	movl	$60, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_VHT20
	movl	$50, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_HT40
	movl	$40, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_HT20
	movl	$30, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_HALF
	movl	$10, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_QUARTER
	movl	$5, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_TURBO
	movl	$25, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_A
	movl	$20, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_G
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_B
	movl	$15, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_IEEE80211_IS_CHAN_PUREG
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$15, %ebx
	cmovel	%ecx, %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_chanpref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chanpref
_chanpref:                              ; @chanpref
	.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
	bl	_IEEE80211_IS_CHAN_VHT160
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #80
	b	LBB0_23
LBB0_2:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_VHT80_80
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #75
	b	LBB0_23
LBB0_4:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_VHT80
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #70
	b	LBB0_23
LBB0_6:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_VHT40
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #60
	b	LBB0_23
LBB0_8:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_VHT20
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #50
	b	LBB0_23
LBB0_10:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_HT40
	cbz	x0, LBB0_12
; %bb.11:
	mov	w0, #40
	b	LBB0_23
LBB0_12:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_HT20
	cbz	x0, LBB0_14
; %bb.13:
	mov	w0, #30
	b	LBB0_23
LBB0_14:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_HALF
	cbz	x0, LBB0_16
; %bb.15:
	mov	w0, #10
	b	LBB0_23
LBB0_16:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_QUARTER
	cbz	x0, LBB0_18
; %bb.17:
	mov	w0, #5
	b	LBB0_23
LBB0_18:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_TURBO
	cbz	x0, LBB0_20
; %bb.19:
	mov	w0, #25
	b	LBB0_23
LBB0_20:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_A
	cbnz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_G
	cbz	x0, LBB0_24
LBB0_22:
	mov	w0, #20
LBB0_23:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_24:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_B
	mov	x8, x0
	mov	w0, #15
	cbnz	x8, LBB0_23
; %bb.25:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_PUREG
	mov	x8, x0
	mov	w0, #15
	cmp	x8, #0
	csel	w0, wzr, w0, eq
	b	LBB0_23
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_chanpref
.subsections_via_symbols
