	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mapgsm
_mapgsm:                                ## @mapgsm
	.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
	leal	(%rdi,%rdi,4), %eax
	movq	_IEEE80211_CHAN_HALF@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	movl	$20, %ecx
	movl	$10, %edx
	cmovel	%ecx, %edx
	movq	_IEEE80211_CHAN_QUARTER@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	movl	$5, %ecx
	cmovel	%edx, %ecx
	leal	(%rcx,%rax,2), %eax
	addl	$-24220, %eax                   ## imm = 0xA164
	cltq
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_QUARTER,4,2     ## @IEEE80211_CHAN_QUARTER
	.comm	_IEEE80211_CHAN_HALF,4,2        ## @IEEE80211_CHAN_HALF
	.no_dead_strip	_mapgsm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mapgsm
_mapgsm:                                ; @mapgsm
	.cfi_startproc
; %bb.0:
	mov	w8, #10
Lloh0:
	adrp	x9, _IEEE80211_CHAN_QUARTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CHAN_QUARTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IEEE80211_CHAN_HALF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_CHAN_HALF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w1
	mov	w10, #20
	csel	w10, w10, w8, eq
	tst	w9, w1
	mov	w9, #5
	csel	w9, w10, w9, eq
	madd	w8, w0, w8, w9
	mov	w9, #-24220
	add	w8, w8, w9
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_QUARTER,4,2     ; @IEEE80211_CHAN_QUARTER
	.comm	_IEEE80211_CHAN_HALF,4,2        ; @IEEE80211_CHAN_HALF
	.no_dead_strip	_mapgsm
.subsections_via_symbols
