	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_frequency_to_channel ## -- Begin function ieee80211_frequency_to_channel
	.p2align	4, 0x90
_ieee80211_frequency_to_channel:        ## @ieee80211_frequency_to_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movl	$14, %eax
	cmpl	$2484, %edi                     ## imm = 0x9B4
	je	LBB0_1
## %bb.2:
	jge	LBB0_4
## %bb.3:
	addl	$-2407, %edi                    ## imm = 0xF699
	jmp	LBB0_8
LBB0_4:
	leal	-4910(%rdi), %eax
	cmpl	$70, %eax
	ja	LBB0_6
## %bb.5:
	addl	$-4000, %edi                    ## imm = 0xF060
	movzwl	%di, %eax
	imull	$52429, %eax, %eax              ## imm = 0xCCCD
	shrl	$18, %eax
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	cmpl	$45000, %edi                    ## imm = 0xAFC8
	ja	LBB0_9
## %bb.7:
	addl	$-5000, %edi                    ## imm = 0xEC78
LBB0_8:
	movslq	%edi, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_9:
	leal	-58320(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	$6480, %ecx                     ## imm = 0x1950
	ja	LBB0_1
## %bb.10:
	addl	$9376, %edi                     ## imm = 0x24A0
	movzwl	%di, %eax
	imull	$31069, %eax, %eax              ## imm = 0x795D
	shrl	$26, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_frequency_to_channel ; -- Begin function ieee80211_frequency_to_channel
	.p2align	2
_ieee80211_frequency_to_channel:        ; @ieee80211_frequency_to_channel
	.cfi_startproc
; %bb.0:
	cmp	w0, #2484
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #14
	ret
LBB0_2:
	cmp	w0, #2483
	b.gt	LBB0_4
; %bb.3:
	sub	w8, w0, #2407
	b	LBB0_8
LBB0_4:
	mov	w8, #-4910
	add	w8, w0, w8
	cmp	w8, #70
	b.hi	LBB0_6
; %bb.5:
	sub	w8, w0, #4000
	and	w8, w8, #0xffff
	mov	w9, #52429
	mul	w8, w8, w9
	lsr	w0, w8, #18
	ret
LBB0_6:
	mov	w8, #45000
	cmp	w0, w8
	b.hi	LBB0_9
; %bb.7:
	mov	w8, #-5000
	add	w8, w0, w8
LBB0_8:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w0, w8, w9
	ret
LBB0_9:
	mov	w8, #-58320
	mov	w9, #6480
	add	w8, w0, w8
	cmp	w8, w9
	mov	w8, #9376
	add	w8, w0, w8
	and	w8, w8, #0xffff
	mov	w9, #31069
	mul	w8, w8, w9
	lsr	w8, w8, #26
	csel	w0, wzr, w8, hi
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
