	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_freq_to_channel_ext  ## -- Begin function ieee80211_freq_to_channel_ext
	.p2align	4, 0x90
_ieee80211_freq_to_channel_ext:         ## @ieee80211_freq_to_channel_ext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	leal	-2(%rsi), %eax
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rbx
	cmpl	$-3, %eax
	jb	LBB0_38
## %bb.1:
	leal	-2412(%rdi), %eax
	cmpl	$60, %eax
	ja	LBB0_5
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_38
## %bb.3:
	addb	$-103, %dil
	movzbl	%dil, %eax
	imull	$205, %eax, %edx
	shrl	$10, %edx
	leal	(%rdx,%rdx,4), %edi
	subb	%dil, %al
	jne	LBB0_38
## %bb.4:
	xorl	%eax, %eax
	cmpl	$-1, %esi
	sete	%al
	leal	(%rax,%rax,2), %eax
	addl	$81, %eax
	cmpl	$1, %esi
	movl	$83, %esi
	cmovnel	%eax, %esi
	movl	%esi, (%rcx)
	movzbl	%dl, %eax
	movl	%eax, (%r8)
	movq	_HOSTAPD_MODE_IEEE80211G@GOTPCREL(%rip), %rbx
	jmp	LBB0_38
LBB0_5:
	cmpl	$2484, %edi                     ## imm = 0x9B4
	jne	LBB0_8
## %bb.6:
	orl	%esi, %edx
	jne	LBB0_38
## %bb.7:
	movl	$82, (%rcx)
	movl	$14, (%r8)
	movq	_HOSTAPD_MODE_IEEE80211B@GOTPCREL(%rip), %rbx
	jmp	LBB0_38
LBB0_8:
	leal	-4900(%rdi), %eax
	cmpl	$99, %eax
	ja	LBB0_12
## %bb.9:
	addl	$-4000, %edi                    ## imm = 0xF060
	imull	$-13107, %edi, %eax             ## imm = 0xCCCD
	movzwl	%ax, %eax
	cmpl	$13107, %eax                    ## imm = 0x3333
	ja	LBB0_38
## %bb.10:
	movzwl	%di, %eax
LBB0_11:
	imull	$52429, %eax, %eax              ## imm = 0xCCCD
	shrl	$18, %eax
	movzwl	%ax, %eax
	movl	%eax, (%r8)
	movl	$0, (%rcx)
	jmp	LBB0_37
LBB0_12:
	cmpl	$128, %edx
	je	LBB0_16
## %bb.13:
	cmpl	$129, %edx
	je	LBB0_17
## %bb.14:
	cmpl	$130, %edx
	jne	LBB0_18
## %bb.15:
	movl	$129, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_19
LBB0_16:
	movl	$130, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_19
LBB0_17:
	movl	$128, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_19
LBB0_18:
	xorl	%r9d, %r9d
	movb	$1, %r10b
LBB0_19:
	leal	-5180(%rdi), %eax
	cmpl	$60, %eax
	ja	LBB0_22
## %bb.20:
	addb	$120, %dil
	movzbl	%dil, %edx
	imull	$-51, %edx, %eax
	cmpb	$51, %al
	ja	LBB0_38
## %bb.21:
	imull	$205, %edx, %eax
	shrl	$10, %eax
	xorl	%edx, %edx
	cmpl	$-1, %esi
	sete	%dl
	addl	%edx, %edx
	addl	$115, %edx
	cmpl	$1, %esi
	movl	$116, %esi
	cmovnel	%edx, %esi
	testb	%r10b, %r10b
	cmovnel	%esi, %r9d
	movl	%r9d, (%rcx)
	movzbl	%al, %eax
	jmp	LBB0_36
LBB0_22:
	leal	-5260(%rdi), %eax
	cmpl	$60, %eax
	ja	LBB0_25
## %bb.23:
	addl	$-5000, %edi                    ## imm = 0xEC78
	imull	$-13107, %edi, %eax             ## imm = 0xCCCD
	movzwl	%ax, %eax
	cmpl	$13107, %eax                    ## imm = 0x3333
	ja	LBB0_38
## %bb.24:
	movzwl	%di, %eax
	imull	$52429, %eax, %eax              ## imm = 0xCCCD
	shrl	$18, %eax
	xorl	%edx, %edx
	cmpl	$-1, %esi
	sete	%dl
	addl	%edx, %edx
	addl	$118, %edx
	cmpl	$1, %esi
	movl	$119, %esi
	jmp	LBB0_34
LBB0_25:
	leal	-5745(%rdi), %eax
	cmpl	$100, %eax
	ja	LBB0_31
## %bb.26:
	leal	-5000(%rdi), %edx
	imull	$-13107, %edx, %eax             ## imm = 0xCCCD
	movzwl	%ax, %eax
	cmpl	$13107, %eax                    ## imm = 0x3333
	ja	LBB0_38
## %bb.27:
	movzwl	%dx, %eax
	imull	$52429, %eax, %eax              ## imm = 0xCCCD
	shrl	$18, %eax
	testb	%r10b, %r10b
	je	LBB0_35
## %bb.28:
	cmpl	$1, %esi
	je	LBB0_45
## %bb.29:
	cmpl	$-1, %esi
	jne	LBB0_46
## %bb.30:
	movl	$127, %r9d
	jmp	LBB0_35
LBB0_31:
	leal	-5000(%rdi), %r11d
	cmpl	$700, %r11d                     ## imm = 0x2BC
	ja	LBB0_39
## %bb.32:
	imull	$-13107, %r11d, %eax            ## imm = 0xCCCD
	movzwl	%ax, %eax
	cmpl	$13107, %eax                    ## imm = 0x3333
	ja	LBB0_38
## %bb.33:
	movzwl	%r11w, %eax
	imull	$52429, %eax, %eax              ## imm = 0xCCCD
	shrl	$18, %eax
	xorl	%edx, %edx
	cmpl	$-1, %esi
	sete	%dl
	addl	%edx, %edx
	addl	$121, %edx
	cmpl	$1, %esi
	movl	$122, %esi
LBB0_34:
	cmovnel	%edx, %esi
	testb	%r10b, %r10b
	cmovnel	%esi, %r9d
LBB0_35:
	movl	%r9d, (%rcx)
	movzwl	%ax, %eax
LBB0_36:
	movl	%eax, (%r8)
LBB0_37:
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rbx
LBB0_38:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%rbp
	retq
LBB0_39:
	cmpl	$899, %r11d                     ## imm = 0x383
	ja	LBB0_42
## %bb.40:
	imull	$-13107, %r11d, %eax            ## imm = 0xCCCD
	movzwl	%ax, %eax
	cmpl	$13107, %eax                    ## imm = 0x3333
	ja	LBB0_38
## %bb.41:
	movzwl	%r11w, %eax
	jmp	LBB0_11
LBB0_42:
	leal	-58320(%rdi), %eax
	cmpl	$6480, %eax                     ## imm = 0x1950
	ja	LBB0_38
## %bb.43:
	orl	%esi, %edx
	jne	LBB0_38
## %bb.44:
	addl	$9376, %edi                     ## imm = 0x24A0
	movzwl	%di, %eax
	imull	$31069, %eax, %eax              ## imm = 0x795D
	shrl	$26, %eax
	movl	%eax, (%r8)
	movl	$180, (%rcx)
	movq	_HOSTAPD_MODE_IEEE80211AD@GOTPCREL(%rip), %rbx
	jmp	LBB0_38
LBB0_45:
	movl	$126, %r9d
	jmp	LBB0_35
LBB0_46:
	cmpl	$5806, %edi                     ## imm = 0x16AE
	movl	$125, %r9d
	sbbl	$0, %r9d
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_HOSTAPD_MODES,4,2          ## @NUM_HOSTAPD_MODES
	.comm	_HOSTAPD_MODE_IEEE80211G,4,2    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_HOSTAPD_MODE_IEEE80211B,4,2    ## @HOSTAPD_MODE_IEEE80211B
	.comm	_HOSTAPD_MODE_IEEE80211A,4,2    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_HOSTAPD_MODE_IEEE80211AD,4,2   ## @HOSTAPD_MODE_IEEE80211AD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_freq_to_channel_ext  ; -- Begin function ieee80211_freq_to_channel_ext
	.p2align	2
_ieee80211_freq_to_channel_ext:         ; @ieee80211_freq_to_channel_ext
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #2
	cmn	w8, #3
	b.hs	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_2:
	sub	w8, w0, #2412
	cmp	w8, #60
	b.hi	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
	cbnz	w2, LBB0_42
; %bb.4:
	sub	w10, w0, #103
	and	w9, w10, #0xff
	mov	w11, #205
	mul	w9, w9, w11
	lsr	w9, w9, #10
	add	w11, w9, w9, lsl #2
	sub	w10, w10, w11
	tst	w10, #0xff
	b.ne	LBB0_42
; %bb.5:
	cmn	w1, #1
	mov	w8, #81
	mov	w10, #84
	csel	w8, w10, w8, eq
	mov	w10, #83
	cmp	w1, #1
	csel	w8, w10, w8, eq
	str	w8, [x3]
	str	w9, [x4]
Lloh5:
	adrp	x8, _HOSTAPD_MODE_IEEE80211G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOSTAPD_MODE_IEEE80211G@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
LBB0_6:
	cmp	w0, #2484
	b.ne	LBB0_9
; %bb.7:
	orr	w8, w2, w1
	cbnz	w8, LBB0_1
; %bb.8:
	mov	w8, #82
	str	w8, [x3]
	mov	w8, #14
	str	w8, [x4]
Lloh8:
	adrp	x8, _HOSTAPD_MODE_IEEE80211B@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HOSTAPD_MODE_IEEE80211B@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
LBB0_9:
	mov	w8, #-4900
	add	w8, w0, w8
	cmp	w8, #99
	b.hi	LBB0_12
; %bb.10:
	sub	w9, w0, #4000
	and	w8, w9, #0xffff
	mov	w10, #52429
	mul	w8, w8, w10
	lsr	w8, w8, #18
	add	w10, w8, w8, lsl #2
	sub	w9, w9, w10
	tst	w9, #0xffff
	b.ne	LBB0_1
LBB0_11:
	str	w8, [x4]
	str	wzr, [x3]
	b	LBB0_27
LBB0_12:
	cmp	w2, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	w2, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	w2, #130
	b.ne	LBB0_18
; %bb.15:
	mov	w9, #0
	mov	w8, #129
	b	LBB0_19
LBB0_16:
	mov	w9, #0
	mov	w8, #130
	b	LBB0_19
LBB0_17:
	mov	w9, #0
	mov	w8, #128
	b	LBB0_19
LBB0_18:
	mov	w8, #0
	mov	w9, #1
LBB0_19:
	mov	w10, #-5180
	add	w10, w0, w10
	cmp	w10, #60
	b.hi	LBB0_22
; %bb.20:
	add	w11, w0, #120
	and	w10, w11, #0xff
	mov	w12, #205
	mul	w10, w10, w12
	lsr	w10, w10, #10
	add	w12, w10, w10, lsl #2
	sub	w11, w11, w12
	tst	w11, #0xff
	b.ne	LBB0_1
; %bb.21:
	cmn	w1, #1
	mov	w11, #115
	mov	w12, #117
	csel	w11, w12, w11, eq
	mov	w12, #116
	b	LBB0_25
LBB0_22:
	mov	w10, #-5260
	add	w10, w0, w10
	cmp	w10, #60
	b.hi	LBB0_28
; %bb.23:
	mov	w10, #-5000
	add	w11, w0, w10
	and	w10, w11, #0xffff
	mov	w12, #52429
	mul	w10, w10, w12
	lsr	w10, w10, #18
	add	w12, w10, w10, lsl #2
	sub	w11, w11, w12
	tst	w11, #0xffff
	b.ne	LBB0_1
; %bb.24:
	cmn	w1, #1
	mov	w11, #118
	mov	w12, #120
	csel	w11, w12, w11, eq
	mov	w12, #119
LBB0_25:
	cmp	w1, #1
	csel	w11, w12, w11, eq
	cmp	w9, #0
	csel	w8, w11, w8, ne
LBB0_26:
	str	w8, [x3]
	str	w10, [x4]
LBB0_27:
Lloh11:
	adrp	x8, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
LBB0_28:
	mov	w10, #-5745
	add	w10, w0, w10
	cmp	w10, #100
	b.hi	LBB0_34
; %bb.29:
	mov	w10, #-5000
	add	w11, w0, w10
	and	w10, w11, #0xffff
	mov	w12, #52429
	mul	w10, w10, w12
	lsr	w10, w10, #18
	add	w12, w10, w10, lsl #2
	sub	w11, w11, w12
	tst	w11, #0xffff
	b.ne	LBB0_1
; %bb.30:
	cbz	w9, LBB0_26
; %bb.31:
	cmp	w1, #1
	b.eq	LBB0_43
; %bb.32:
	cmn	w1, #1
	b.ne	LBB0_44
; %bb.33:
	mov	w8, #127
	b	LBB0_26
LBB0_34:
	mov	w10, #-5000
	add	w10, w0, w10
	cmp	w10, #700
	b.hi	LBB0_37
; %bb.35:
	and	w11, w10, #0xffff
	mov	w12, #52429
	mul	w11, w11, w12
	lsr	w11, w11, #18
	add	w12, w11, w11, lsl #2
	sub	w10, w10, w12
	tst	w10, #0xffff
	b.ne	LBB0_1
; %bb.36:
	cmn	w1, #1
	mov	w10, #121
	mov	w12, #123
	csel	w10, w12, w10, eq
	mov	w12, #122
	cmp	w1, #1
	csel	w10, w12, w10, eq
	cmp	w9, #0
	csel	w8, w10, w8, ne
	str	w8, [x3]
	str	w11, [x4]
	b	LBB0_27
LBB0_37:
	cmp	w10, #899
	b.hi	LBB0_39
; %bb.38:
	and	w8, w10, #0xffff
	mov	w9, #52429
	mul	w8, w8, w9
	lsr	w8, w8, #18
	add	w9, w8, w8, lsl #2
	sub	w9, w10, w9
	tst	w9, #0xffff
	b.ne	LBB0_1
	b	LBB0_11
LBB0_39:
	mov	w9, #-58320
Lloh14:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
	mov	w10, #6480
	add	w9, w0, w9
	cmp	w9, w10
	b.hi	LBB0_42
; %bb.40:
	orr	w9, w2, w1
	cbnz	w9, LBB0_42
; %bb.41:
	mov	w8, #9376
	add	w8, w0, w8
	and	w8, w8, #0xffff
	mov	w9, #31069
	mul	w8, w8, w9
	lsr	w8, w8, #26
	str	w8, [x4]
	mov	w8, #180
	str	w8, [x3]
Lloh16:
	adrp	x8, _HOSTAPD_MODE_IEEE80211AD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HOSTAPD_MODE_IEEE80211AD@GOTPAGEOFF]
LBB0_42:
	ldr	w0, [x8]
	ret
LBB0_43:
	mov	w8, #126
	b	LBB0_26
LBB0_44:
	lsr	w8, w0, #1
	cmp	w8, #2903
	mov	w8, #124
	cinc	w8, w8, hs
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_HOSTAPD_MODES,4,2          ; @NUM_HOSTAPD_MODES
	.comm	_HOSTAPD_MODE_IEEE80211G,4,2    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_HOSTAPD_MODE_IEEE80211B,4,2    ; @HOSTAPD_MODE_IEEE80211B
	.comm	_HOSTAPD_MODE_IEEE80211A,4,2    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_HOSTAPD_MODE_IEEE80211AD,4,2   ; @HOSTAPD_MODE_IEEE80211AD
.subsections_via_symbols
