	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mhz2ieee             ## -- Begin function ieee80211_mhz2ieee
	.p2align	4, 0x90
_ieee80211_mhz2ieee:                    ## @ieee80211_mhz2ieee
	.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
LBB0_1:
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbp
	jmp	_mapgsm                         ## TAILCALL
LBB0_2:
	movq	_IEEE80211_CHAN_2GHZ@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_6
## %bb.3:
	movl	$14, %eax
	cmpl	$2484, %edi                     ## imm = 0x9B4
	je	LBB0_21
## %bb.4:
	jge	LBB0_10
LBB0_5:
	addl	$-2407, %edi                    ## imm = 0xF699
	jmp	LBB0_15
LBB0_6:
	movq	_IEEE80211_CHAN_5GHZ@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_11
## %bb.7:
	cmpl	$5000, %edi                     ## imm = 0x1388
	jg	LBB0_20
## %bb.8:
	leal	-4941(%rdi), %eax
	cmpl	$48, %eax
	ja	LBB0_14
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbp
	jmp	_mappsb                         ## TAILCALL
LBB0_10:
	addl	$-2512, %edi                    ## imm = 0xF630
	movslq	%edi, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$35, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	addl	$15, %eax
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_11:
	movl	$14, %eax
	cmpl	$2484, %edi                     ## imm = 0x9B4
	je	LBB0_21
## %bb.12:
	jge	LBB0_16
## %bb.13:
	leal	-907(%rdi), %eax
	cmpl	$15, %eax
	ja	LBB0_5
	jmp	LBB0_1
LBB0_14:
	addl	$-4000, %edi                    ## imm = 0xF060
LBB0_15:
	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_16:
	cmpl	$4999, %edi                     ## imm = 0x1387
	ja	LBB0_20
## %bb.17:
	leal	-4941(%rdi), %eax
	cmpl	$48, %eax
	jbe	LBB0_9
## %bb.18:
	cmpl	$4901, %edi                     ## imm = 0x1325
	jb	LBB0_22
## %bb.19:
	addl	$-4000, %edi                    ## imm = 0xF060
	movzwl	%di, %eax
	imull	$52429, %eax, %eax              ## imm = 0xCCCD
	shrl	$18, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_20:
	addl	$-5000, %edi                    ## imm = 0xEC78
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rdi, %rax
	shrq	$34, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_22:
	addl	$-2512, %edi                    ## imm = 0xF630
	movswl	%di, %eax
	imull	$26215, %eax, %eax              ## imm = 0x6667
	movl	%eax, %ecx
	sarl	$19, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	addl	$15, %eax
	movzwl	%ax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mhz2ieee             ; -- Begin function ieee80211_mhz2ieee
	.p2align	2
_ieee80211_mhz2ieee:                    ; @ieee80211_mhz2ieee
	.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
LBB0_1:
	b	_mapgsm
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:
	cmp	w0, #2484
	b.ne	LBB0_9
LBB0_4:
	mov	w0, #14
                                        ; kill: def $w0 killed $w0 killed $x0
	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_10
; %bb.6:
	mov	w8, #5000
	cmp	w0, w8
	b.gt	LBB0_14
; %bb.7:
	mov	w8, #-4941
	add	w8, w0, w8
	cmp	w8, #48
	b.hi	LBB0_15
; %bb.8:
	b	_mappsb
LBB0_9:
	sub	w8, w0, #2512
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w10
	add	w8, w8, #15
	sub	w10, w0, #2407
	smull	x9, w10, w9
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	cmp	w0, #2483
	csel	w0, w8, w9, gt
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_10:
	cmp	w0, #2484
	b.eq	LBB0_4
; %bb.11:
	cmp	w0, #2483
	b.gt	LBB0_17
; %bb.12:
	sub	w8, w0, #907
	cmp	w8, #15
	b.ls	LBB0_1
; %bb.13:
	sub	w8, w0, #2407
	b	LBB0_16
LBB0_14:
	mov	w8, #-5000
	add	w8, w0, w8
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #34
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_15:
	sub	w8, w0, #4000
LBB0_16:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w0, w8, w9
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_17:
	lsr	w8, w0, #3
	cmp	w8, #624
	b.hi	LBB0_20
; %bb.18:
	mov	w8, #-4941
	add	w8, w0, w8
	cmp	w8, #48
	b.hi	LBB0_21
; %bb.19:
	b	_mappsb
LBB0_20:
	mov	w8, #-5000
	add	w8, w0, w8
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #34
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_21:
	mov	w8, #4901
	cmp	w0, w8
	b.lo	LBB0_23
; %bb.22:
	sub	w8, w0, #4000
	and	w8, w8, #0xffff
	mov	w9, #52429
	mul	w8, w8, w9
	lsr	w0, w8, #18
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_23:
	sub	w8, w0, #2512
	sxth	w8, w8
	mov	w9, #26215
	mul	w8, w8, w9
	asr	w9, w8, #19
	add	w8, w9, w8, lsr #31
	add	w8, w8, #15
	and	w0, w8, #0xffff
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
.subsections_via_symbols
