	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_chaninfo_to_channel  ## -- Begin function ieee80211_chaninfo_to_channel
	.p2align	4, 0x90
_ieee80211_chaninfo_to_channel:         ## @ieee80211_chaninfo_to_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	leal	-128(%r15), %eax
	cmpl	$6, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_CHANWIDTH_USE_HT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movl	$128, %edx
	jmp	LBB0_8
LBB0_4:
	movq	_CHANWIDTH_80MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_CHANWIDTH_160MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CHANWIDTH_80P80MHZ@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
LBB0_8:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_ieee80211_freq_to_channel_ext
	movq	%rax, %rcx
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_CHANWIDTH_USE_HT,4,2           ## @CHANWIDTH_USE_HT
	.comm	_CHANWIDTH_80MHZ,4,2            ## @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_80P80MHZ,4,2         ## @CHANWIDTH_80P80MHZ
	.comm	_CHANWIDTH_160MHZ,4,2           ## @CHANWIDTH_160MHZ
	.comm	_NUM_HOSTAPD_MODES,8,3          ## @NUM_HOSTAPD_MODES
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot determine operating class and channel (freq=%u chanwidth=%d sec_channel=%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_chaninfo_to_channel  ; -- Begin function ieee80211_chaninfo_to_channel
	.p2align	2
_ieee80211_chaninfo_to_channel:         ; @ieee80211_chaninfo_to_channel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _CHANWIDTH_USE_HT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHANWIDTH_USE_HT@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	w2, #128
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _CHANWIDTH_80MHZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CHANWIDTH_80MHZ@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _CHANWIDTH_160MHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHANWIDTH_160MHZ@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _CHANWIDTH_80P80MHZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHANWIDTH_80P80MHZ@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_ieee80211_freq_to_channel_ext
Lloh10:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_CHANWIDTH_USE_HT,4,2           ; @CHANWIDTH_USE_HT
	.comm	_CHANWIDTH_80MHZ,4,2            ; @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_80P80MHZ,4,2         ; @CHANWIDTH_80P80MHZ
	.comm	_CHANWIDTH_160MHZ,4,2           ; @CHANWIDTH_160MHZ
	.comm	_NUM_HOSTAPD_MODES,8,3          ; @NUM_HOSTAPD_MODES
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot determine operating class and channel (freq=%u chanwidth=%d sec_channel=%d)"

.subsections_via_symbols
