	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ieee2mhz             ## -- Begin function ieee80211_ieee2mhz
	.p2align	4, 0x90
_ieee80211_ieee2mhz:                    ## @ieee80211_ieee2mhz
	.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
	movq	_IEEE80211_CHAN_GSM@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movslq	%edi, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %eax
	addl	$907, %eax                      ## imm = 0x38B
	popq	%rbp
	retq
LBB0_2:
	movq	_IEEE80211_CHAN_2GHZ@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_6
## %bb.3:
	movl	$2484, %eax                     ## imm = 0x9B4
	cmpl	$14, %edi
	je	LBB0_15
## %bb.4:
	jge	LBB0_13
LBB0_5:
	leal	(%rdi,%rdi,4), %eax
	addl	$2407, %eax                     ## imm = 0x967
	popq	%rbp
	retq
LBB0_6:
	movq	_IEEE80211_CHAN_5GHZ@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_IEEE80211_CHAN_HALF@GOTPCREL(%rip), %rax
	movq	_IEEE80211_CHAN_QUARTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%esi, %ecx
	je	LBB0_14
## %bb.8:
	addl	$-37, %edi
	leal	(%rdi,%rdi,4), %eax
	imull	$-858993459, %edi, %ecx         ## imm = 0xCCCCCCCD
	addl	$429496729, %ecx                ## imm = 0x19999999
	xorl	%edx, %edx
	cmpl	$858993459, %ecx                ## imm = 0x33333333
	setae	%dl
	leal	(%rax,%rdx,2), %eax
	addl	$4940, %eax                     ## imm = 0x134C
	popq	%rbp
	retq
LBB0_9:
	movl	$2484, %eax                     ## imm = 0x9B4
	cmpl	$14, %edi
	je	LBB0_15
## %bb.10:
	jl	LBB0_5
## %bb.12:
	cmpl	$26, %edi
	ja	LBB0_14
LBB0_13:
	leal	(%rdi,%rdi,4), %eax
	leal	2212(,%rax,4), %eax
	popq	%rbp
	retq
LBB0_14:
	leal	(%rdi,%rdi,4), %eax
	addl	$5000, %eax                     ## imm = 0x1388
LBB0_15:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_GSM,4,2         ## @IEEE80211_CHAN_GSM
	.comm	_IEEE80211_CHAN_2GHZ,4,2        ## @IEEE80211_CHAN_2GHZ
	.comm	_IEEE80211_CHAN_5GHZ,4,2        ## @IEEE80211_CHAN_5GHZ
	.comm	_IEEE80211_CHAN_HALF,4,2        ## @IEEE80211_CHAN_HALF
	.comm	_IEEE80211_CHAN_QUARTER,4,2     ## @IEEE80211_CHAN_QUARTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ieee2mhz             ; -- Begin function ieee80211_ieee2mhz
	.p2align	2
_ieee80211_ieee2mhz:                    ; @ieee80211_ieee2mhz
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IEEE80211_CHAN_GSM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CHAN_GSM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w8, w8, w8, lsl #2
	add	w0, w8, #907
	ret
LBB0_2:
Lloh3:
	adrp	x8, _IEEE80211_CHAN_2GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CHAN_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #2484
	mov	w9, #20
	mul	w9, w0, w9
	add	w9, w9, #2212
	add	w10, w0, w0, lsl #2
	add	w10, w10, #2407
	cmp	w0, #13
	csel	w9, w9, w10, gt
LBB0_4:
	cmp	w0, #14
	csel	w0, w8, w9, eq
	ret
LBB0_5:
Lloh6:
	adrp	x8, _IEEE80211_CHAN_5GHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHAN_5GHZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _IEEE80211_CHAN_HALF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_CHAN_HALF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IEEE80211_CHAN_QUARTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_CHAN_QUARTER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	add	w9, w0, w0, lsl #2
	mov	w10, #5000
	add	w9, w9, w10
	sub	w10, w0, #37
	add	w11, w10, w10, lsl #2
	mov	w12, #52429
	movk	w12, #52428, lsl #16
	mov	w13, #39321
	movk	w13, #6553, lsl #16
	madd	w10, w10, w12, w13
	mov	w12, #13106
	movk	w12, #13107, lsl #16
	cmp	w10, w12
	cset	w10, hi
	add	w10, w11, w10, lsl #1
	mov	w11, #4940
	add	w10, w10, w11
	tst	w8, w1
	csel	w0, w9, w10, eq
	ret
LBB0_7:
	mov	w8, #2484
	add	w9, w0, w0, lsl #2
	mov	w10, #5000
	add	w10, w9, w10
	mov	w11, #20
	mul	w11, w0, w11
	add	w11, w11, #2212
	cmp	w0, #26
	csel	w10, w10, w11, hi
	add	w9, w9, #2407
	cmp	w0, #13
	csel	w9, w10, w9, gt
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_GSM,4,2         ; @IEEE80211_CHAN_GSM
	.comm	_IEEE80211_CHAN_2GHZ,4,2        ; @IEEE80211_CHAN_2GHZ
	.comm	_IEEE80211_CHAN_5GHZ,4,2        ; @IEEE80211_CHAN_5GHZ
	.comm	_IEEE80211_CHAN_HALF,4,2        ; @IEEE80211_CHAN_HALF
	.comm	_IEEE80211_CHAN_QUARTER,4,2     ; @IEEE80211_CHAN_QUARTER
.subsections_via_symbols
