	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_wext_freq             ## -- Begin function cfg80211_wext_freq
	.p2align	4, 0x90
_cfg80211_wext_freq:                    ## @cfg80211_wext_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	jle	LBB0_2
## %bb.4:
	leaq	-1(%rdx), %rcx
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rcx
	jae	LBB0_12
## %bb.5:
	movl	$1000000, %ecx                  ## imm = 0xF4240
                                        ## implicit-def: $edx
	testq	%r8, %r8
	jne	LBB0_16
	jmp	LBB0_17
LBB0_6:
	movl	8(%rsi), %edi
	testl	%edi, %edi
	js	LBB0_7
## %bb.8:
	cmpl	$15, %edi
	jb	LBB0_9
## %bb.10:
	movq	_IEEE80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movl	$1000000, %ecx                  ## imm = 0xF4240
	jmp	LBB0_3
LBB0_12:
	andq	$-4, %rdx
	movl	$1000000, %ecx                  ## imm = 0xF4240
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rdi
	imulq	$1759218605, %rdi, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$44, %rcx
	addl	%eax, %ecx
	addq	$-4, %rdx
	jne	LBB0_13
## %bb.14:
	imulq	$274877907, %rdi, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	testq	%r8, %r8
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	decq	%r8
	jne	LBB0_16
LBB0_17:
	cmpl	$9, %edx
	jg	LBB0_3
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rsi), %eax
	cltd
	idivl	%ecx
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_IEEE80211_BAND_2GHZ@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_ieee80211_channel_to_frequency ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_BAND_2GHZ,4,2        ## @IEEE80211_BAND_2GHZ
	.comm	_IEEE80211_BAND_5GHZ,4,2        ## @IEEE80211_BAND_5GHZ
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_wext_freq             ; -- Begin function cfg80211_wext_freq
	.p2align	2
_cfg80211_wext_freq:                    ; @cfg80211_wext_freq
	.cfi_startproc
; %bb.0:
	ldr	x9, [x1]
	cbz	x9, LBB0_7
; %bb.1:
	mov	w8, #16960
	movk	w8, #15, lsl #16
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w10, #26215
	movk	w10, #26214, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x8
	smull	x8, w8, w10
	lsr	x12, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w12
	subs	x9, x9, #1
	b.ne	LBB0_3
; %bb.4:
	cmp	w11, #9
	b.gt	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	ldr	w9, [x1, #8]
	sdiv	w0, w9, w8
	ret
LBB0_7:
	ldr	w0, [x1, #8]
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _IEEE80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IEEE80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_BAND_2GHZ@GOTPAGEOFF]
	cmp	w0, #14
	csel	x8, x8, x9, hi
	ldr	w1, [x8]
	b	_ieee80211_channel_to_frequency
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_BAND_2GHZ,4,2        ; @IEEE80211_BAND_2GHZ
	.comm	_IEEE80211_BAND_5GHZ,4,2        ; @IEEE80211_BAND_5GHZ
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
