	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hostapd_set_freq_params
LCPI0_0:
	.long	14                              ## 0xe
	.long	10                              ## 0xa
	.long	6                               ## 0x6
	.long	2                               ## 0x2
LCPI0_1:
	.long	4294967294                      ## 0xfffffffe
	.long	4294967290                      ## 0xfffffffa
	.long	4294967286                      ## 0xfffffff6
	.long	4294967282                      ## 0xfffffff2
LCPI0_2:
	.long	6                               ## 0x6
	.long	2                               ## 0x2
	.long	4294967294                      ## 0xfffffffe
	.long	4294967290                      ## 0xfffffffa
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hostapd_set_freq_params
	.p2align	4, 0x90
_hostapd_set_freq_params:               ## @hostapd_set_freq_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	cmpq	$0, 64(%rbp)
	je	LBB0_2
## %bb.1:
	movl	16(%rbp), %r13d
LBB0_2:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_os_memset
	movl	%r14d, (%r12)
	movl	%ebx, 4(%r12)
	movl	%r15d, 8(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r12)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%r12)
	movl	%r13d, 20(%r12)
	movl	24(%rbp), %r9d
	movl	%r9d, 24(%r12)
	leal	(%r9,%r9,4), %eax
	leal	(%rbx,%rax,2), %edi
	movl	%edi, 28(%r12)
	movl	$0, 32(%r12)
	testl	%r9d, %r9d
	movl	$20, %eax
	movl	$40, %edx
	cmovnel	%edx, %eax
	movl	%eax, 36(%r12)
	testl	%ecx, %ecx
	je	LBB0_34
## %bb.3:
	movl	32(%rbp), %edx
	leal	-128(%rdx), %ebx
	cmpl	$3, %ebx
	ja	LBB0_34
## %bb.4:
	movl	56(%rbp), %eax
	movl	48(%rbp), %esi
	movl	40(%rbp), %r8d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rbx
	addq	%rcx, %rbx
	jmpq	*%rbx
LBB0_5:
	movl	$-1, %eax
	testl	%esi, %esi
	jne	LBB0_35
## %bb.6:
	testl	%r8d, %r8d
	je	LBB0_34
## %bb.7:
	leal	(%r8,%r8,4), %ecx
	addl	$5000, %ecx                     ## imm = 0x1388
	cmpl	%edi, %ecx
	je	LBB0_34
## %bb.8:
	leal	(%r8,%r8,4), %ecx
	addl	$2407, %ecx                     ## imm = 0x967
	cmpl	%edi, %ecx
	jne	LBB0_35
	jmp	LBB0_34
LBB0_9:
	movq	_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.12:
	leal	4(%r8), %ecx
	movl	$-1, %eax
	cmpl	%esi, %ecx
	je	LBB0_35
## %bb.13:
	leal	-4(%r8), %ecx
	cmpl	%esi, %ecx
	je	LBB0_35
## %bb.14:
	leal	(%rsi,%rsi,4), %eax
	addl	$5000, %eax                     ## imm = 0x1388
	movl	%eax, 32(%r12)
	movl	$80, 36(%r12)
	testl	%esi, %esi
	setne	%sil
	jmp	LBB0_17
LBB0_15:
	movl	$80, 36(%r12)
	movl	$-1, %eax
	testl	%esi, %esi
	jne	LBB0_35
## %bb.16:
	xorl	%esi, %esi
LBB0_17:
	cmpl	$129, %edx
	setne	%dl
	movl	$-1, %eax
	testl	%r9d, %r9d
	je	LBB0_35
## %bb.18:
	orb	%sil, %dl
	je	LBB0_35
## %bb.19:
	testl	%r8d, %r8d
	je	LBB0_20
## %bb.26:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	paddd	LCPI0_2(%rip), %xmm0
	movd	%r8d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pcmpeqd	%xmm0, %xmm1
	pslld	$31, %xmm1
	movmskps	%xmm1, %ecx
	testl	%ecx, %ecx
	jne	LBB0_32
	jmp	LBB0_35
LBB0_27:
	movl	$160, 36(%r12)
	movq	_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ@GOTPCREL(%rip), %rcx
	movq	_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_28
## %bb.29:
	movl	$-1, %eax
	testl	%r9d, %r9d
	je	LBB0_35
## %bb.30:
	testl	%esi, %esi
	jne	LBB0_35
## %bb.31:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [14,10,6,2]
	paddd	%xmm0, %xmm1
	paddd	LCPI0_1(%rip), %xmm0
	movd	%r8d, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	packssdw	%xmm0, %xmm1
	psllw	$15, %xmm1
	pmovmskb	%xmm1, %ecx
	testl	$43690, %ecx                    ## imm = 0xAAAA
	je	LBB0_35
LBB0_32:
	leal	(%r8,%r8,4), %eax
	addl	$5000, %eax                     ## imm = 0x1388
LBB0_33:
	movl	%eax, 28(%r12)
LBB0_34:
	xorl	%eax, %eax
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_28:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_35
LBB0_20:
	movl	$5210, %eax                     ## imm = 0x145A
	cmpl	$49, %r15d
	jl	LBB0_33
## %bb.21:
	movl	$5290, %eax                     ## imm = 0x14AA
	cmpl	$65, %r15d
	jb	LBB0_33
## %bb.22:
	movl	$5530, %eax                     ## imm = 0x159A
	cmpl	$113, %r15d
	jb	LBB0_33
## %bb.23:
	movl	$5610, %eax                     ## imm = 0x15EA
	cmpl	$129, %r15d
	jb	LBB0_33
## %bb.24:
	movl	$5690, %eax                     ## imm = 0x163A
	cmpl	$145, %r15d
	jb	LBB0_33
## %bb.25:
	cmpl	$162, %r15d
	movl	$5775, %ecx                     ## imm = 0x168F
	movl	$5000, %eax                     ## imm = 0x1388
	cmovbl	%ecx, %eax
	jmp	LBB0_33
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_15
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.comm	_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ,4,2 ## @VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"80+80 channel width is not supported!"

	.comm	_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ,4,2 ## @VHT_CAP_SUPP_CHAN_WIDTH_160MHZ
L_.str.1:                               ## @.str.1
	.asciz	"160MHZ channel width is not supported!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hostapd_set_freq_params
lCPI0_0:
	.long	14                              ; 0xe
	.long	10                              ; 0xa
	.long	6                               ; 0x6
	.long	2                               ; 0x2
lCPI0_1:
	.long	4294967294                      ; 0xfffffffe
	.long	4294967290                      ; 0xfffffffa
	.long	4294967286                      ; 0xfffffff6
	.long	4294967282                      ; 0xfffffff2
lCPI0_2:
	.long	6                               ; 0x6
	.long	2                               ; 0x2
	.long	4294967294                      ; 0xfffffffe
	.long	4294967290                      ; 0xfffffffa
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hostapd_set_freq_params
	.p2align	2
_hostapd_set_freq_params:               ; @hostapd_set_freq_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x8, [x29, #32]
	cmp	x8, #0
	csel	w26, wzr, w6, eq
	mov	w27, #40
	mov	w1, #0
	mov	w2, #40
	bl	_os_memset
	stp	w25, w24, [x19]
	stp	w20, w23, [x19, #8]
	stp	w22, w26, [x19, #16]
	mov	w8, #10
	madd	w11, w21, w8, w24
	stp	w21, w11, [x19, #24]
	mov	w8, #20
	cmp	w21, #0
	csel	w8, w27, w8, ne
	stp	wzr, w8, [x19, #32]
	cbz	w22, LBB0_23
; %bb.1:
	ldr	w10, [x29, #16]
	sub	w13, w10, #128
	cmp	w13, #3
	b.hi	LBB0_23
; %bb.2:
	ldp	w9, w12, [x29, #24]
	ldr	w8, [x29, #20]
Lloh0:
	adrp	x14, lJTI0_0@PAGE
Lloh1:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_3
	ldrb	w16, [x14, x13]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_3:
	cbnz	w9, LBB0_12
; %bb.4:
	cbz	w8, LBB0_23
; %bb.5:
	add	w8, w8, w8, lsl #2
	mov	w9, #5000
	add	w9, w8, w9
	cmp	w9, w11
	b.eq	LBB0_23
; %bb.6:
	add	w8, w8, #2407
	cmp	w8, w11
	b.ne	LBB0_12
	b	LBB0_23
LBB0_7:
Lloh2:
	adrp	x11, _VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPAGE
Lloh3:
	ldr	x11, [x11, _VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	tst	w11, w12
	b.eq	LBB0_25
; %bb.8:
	add	w11, w8, #4
	mov	w0, #-1
	cmp	w11, w9
	b.eq	LBB0_24
; %bb.9:
	sub	w11, w8, #4
	cmp	w11, w9
	b.eq	LBB0_24
; %bb.10:
	add	w11, w9, w9, lsl #2
	mov	w12, #5000
	add	w11, w11, w12
	mov	w12, #80
	stp	w11, w12, [x19, #32]
	cmp	w9, #0
	cset	w9, ne
	b	LBB0_17
LBB0_11:
	mov	w11, #80
	str	w11, [x19, #36]
	cbz	w9, LBB0_17
LBB0_12:
	mov	w0, #-1
	b	LBB0_24
LBB0_13:
	mov	w10, #160
	str	w10, [x19, #36]
Lloh5:
	adrp	x10, _VHT_CAP_SUPP_CHAN_WIDTH_160MHZ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VHT_CAP_SUPP_CHAN_WIDTH_160MHZ@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPAGE
Lloh9:
	ldr	x11, [x11, _VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w12
	b.eq	LBB0_26
; %bb.14:
	mov	w0, #-1
	cbz	w21, LBB0_24
; %bb.15:
	cbnz	w9, LBB0_24
; %bb.16:
	dup.4s	v0, w20
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	add.4s	v1, v0, v1
Lloh13:
	adrp	x9, lCPI0_1@PAGE
Lloh14:
	ldr	q2, [x9, lCPI0_1@PAGEOFF]
	add.4s	v0, v0, v2
	dup.4s	v2, w8
	cmeq.4s	v0, v0, v2
	cmeq.4s	v1, v1, v2
	uzp1.8h	v0, v1, v0
	xtn.8b	v0, v0
	umov.b	w9, v0[1]
	and	w9, w9, #0x1
	umov.b	w10, v0[0]
	and	w10, w10, #0x1
	bfi	w10, w9, #1, #1
	umov.b	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w10, w9, #2, #1
	umov.b	w9, v0[3]
	and	w9, w9, #0x1
	bfi	w10, w9, #3, #1
	umov.b	w9, v0[4]
	and	w9, w9, #0x1
	bfi	w10, w9, #4, #1
	umov.b	w9, v0[5]
	and	w9, w9, #0x1
	bfi	w10, w9, #5, #1
	umov.b	w9, v0[6]
	and	w9, w9, #0x1
	orr	w9, w10, w9, lsl #6
	umov.b	w10, v0[7]
	orr	w9, w9, w10, lsl #7
	tst	w9, #0xff
	b.ne	LBB0_21
	b	LBB0_12
LBB0_17:
	cmp	w10, #129
	cset	w10, ne
	mov	w0, #-1
	cbz	w21, LBB0_24
; %bb.18:
	orr	w9, w10, w9
	cbz	w9, LBB0_24
; %bb.19:
	cbz	w8, LBB0_28
; %bb.20:
	dup.4s	v0, w20
Lloh15:
	adrp	x9, lCPI0_2@PAGE
Lloh16:
	ldr	q1, [x9, lCPI0_2@PAGEOFF]
	add.4s	v0, v0, v1
	dup.4s	v1, w8
	cmeq.4s	v0, v0, v1
	xtn.4h	v0, v0
	umov.h	w9, v0[0]
	umov.h	w10, v0[1]
	and	w10, w10, #0x1
	bfi	w9, w10, #1, #1
	umov.h	w10, v0[2]
	and	w10, w10, #0x1
	bfi	w9, w10, #2, #1
	umov.h	w10, v0[3]
	bfi	w9, w10, #3, #29
	tst	w9, #0xf
	b.eq	LBB0_12
LBB0_21:
	add	w8, w8, w8, lsl #2
	mov	w9, #5000
	add	w8, w8, w9
LBB0_22:
	str	w8, [x19, #28]
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh22:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_27:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_24
LBB0_28:
	cmp	w20, #49
	b.ge	LBB0_30
; %bb.29:
	mov	w8, #5210
	b	LBB0_22
LBB0_30:
	cmp	w20, #65
	b.hs	LBB0_32
; %bb.31:
	mov	w8, #5290
	b	LBB0_22
LBB0_32:
	cmp	w20, #113
	b.hs	LBB0_34
; %bb.33:
	mov	w8, #5530
	b	LBB0_22
LBB0_34:
	cmp	w20, #129
	b.hs	LBB0_36
; %bb.35:
	mov	w8, #5610
	b	LBB0_22
LBB0_36:
	cmp	w20, #145
	b.hs	LBB0_38
; %bb.37:
	mov	w8, #5690
	b	LBB0_22
LBB0_38:
	mov	w8, #5000
	mov	w9, #5775
	cmp	w20, #162
	csel	w8, w9, w8, lo
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
                                        ; -- End function
	.comm	_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ,4,2 ; @VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"80+80 channel width is not supported!"

	.comm	_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ,4,2 ; @VHT_CAP_SUPP_CHAN_WIDTH_160MHZ
l_.str.1:                               ; @.str.1
	.asciz	"160MHZ channel width is not supported!"

.subsections_via_symbols
