	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_get_channel_params         ## -- Begin function rtw_get_channel_params
	.p2align	4, 0x90
_rtw_get_channel_params:                ## @rtw_get_channel_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movq	(%rsi), %rax
	movq	_RTW_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movl	(%rcx), %edx
	movl	4(%rcx), %r8d
	movl	(%rdi), %ecx
	movl	4(%rdi), %r10d
	movl	%edx, (%rax,%r9,4)
	leal	-130(%rcx), %edi
	cmpl	$2, %edi
	jb	LBB0_10
## %bb.1:
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_9
## %bb.3:
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	cmpl	%r10d, %r8d
	jle	LBB0_5
## %bb.4:
	addl	$-2, %edx
	movl	$1, %edi
	jmp	LBB0_11
LBB0_6:
	movq	_RTW_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r8d, %ecx
	subl	%r10d, %ecx
	jle	LBB0_8
## %bb.7:
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	cmpl	$10, %ecx
	setne	%r8b
	sete	%dil
	leal	(%rdx,%rdi,4), %ecx
	addl	$-2, %ecx
	leal	-6(%rdx,%rdi,4), %r10d
	leal	1(%r8,%r8), %edi
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	%r10d, %edx
	jmp	LBB0_11
LBB0_9:
	xorl	%edx, %edx
LBB0_10:
	xorl	%edi, %edi
LBB0_11:
	movl	%edx, 8(%rsi)
	movl	%r9d, 12(%rsi)
	movl	%edi, 16(%rsi)
	movslq	%r9d, %rcx
	movl	%edx, (%rax,%rcx,4)
	movq	_RTW_MAX_CHANNEL_WIDTH@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, 4(%rax,%rcx,4)
	incq	%rcx
	movslq	(%rdx), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_12
LBB0_13:
	popq	%rbp
	retq
LBB0_5:
	addl	$2, %edx
	movl	$2, %edi
	jmp	LBB0_11
LBB0_8:
	subl	%r8d, %r10d
	xorl	%ecx, %ecx
	cmpl	$10, %r10d
	setne	%cl
	leal	(%rdx,%rcx,4), %r8d
	addl	$-2, %r8d
	leal	2(%rdx,%rcx,4), %edx
	leal	2(%rcx,%rcx), %edi
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r8d, (%rax,%rcx,4)
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_CHANNEL_WIDTH_20,8,3       ## @RTW_CHANNEL_WIDTH_20
	.comm	_RTW_CHANNEL_WIDTH_40,8,3       ## @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ## @RTW_CHANNEL_WIDTH_80
	.comm	_RTW_MAX_CHANNEL_WIDTH,4,2      ## @RTW_MAX_CHANNEL_WIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_get_channel_params         ; -- Begin function rtw_get_channel_params
	.p2align	2
_rtw_get_channel_params:                ; @rtw_get_channel_params
	.cfi_startproc
; %bb.0:
	ldr	x11, [x0, #8]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _RTW_CHANNEL_WIDTH_20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTW_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	w10, w11, [x11]
	ldp	w13, w12, [x0]
	str	w10, [x8, x9, lsl #2]
	sub	w14, w13, #130
	cmp	w14, #2
	b.lo	LBB0_7
; %bb.1:
	cmp	w13, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w13, #129
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x9, _RTW_CHANNEL_WIDTH_40@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTW_CHANNEL_WIDTH_40@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w13, w10, #2
	mov	w14, #2
	sub	w10, w10, #2
	mov	w15, #1
	cmp	w11, w12
	csel	w10, w13, w10, le
	csel	w11, w14, w15, le
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x9, _RTW_CHANNEL_WIDTH_80@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTW_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	subs	w13, w11, w12
	b.le	LBB0_8
; %bb.5:
	mov	w11, #-6
	mov	w12, #-2
	cmp	w13, #10
	csel	w11, w12, w11, eq
	add	w10, w11, w10
	mov	w11, #3
	csinc	w11, w11, wzr, ne
	add	w12, w10, #4
	b	LBB0_9
LBB0_6:
	mov	w10, #0
LBB0_7:
	mov	w11, #0
	b	LBB0_10
LBB0_8:
	sub	w11, w12, w11
	mov	w12, #6
	mov	w13, #2
	cmp	w11, #10
	csel	w11, w13, w12, eq
	add	w10, w11, w10
	mov	w11, #4
	csel	w11, w13, w11, eq
	sub	w12, w10, #4
LBB0_9:
Lloh9:
	adrp	x13, _RTW_CHANNEL_WIDTH_40@GOTPAGE
Lloh10:
	ldr	x13, [x13, _RTW_CHANNEL_WIDTH_40@GOTPAGEOFF]
Lloh11:
	ldr	x13, [x13]
	str	w12, [x8, x13, lsl #2]
LBB0_10:
	stp	w10, w9, [x1, #8]
	str	w11, [x1, #16]
	str	w10, [x8, w9, sxtw #2]
Lloh12:
	adrp	x10, _RTW_MAX_CHANNEL_WIDTH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RTW_MAX_CHANNEL_WIDTH@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w9, w11
	b.ge	LBB0_13
; %bb.11:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x9, w9
	add	x8, x8, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x8, x9, lsl #2]
	add	x11, x9, #1
	ldrsw	x12, [x10]
	mov	x9, x11
	cmp	x11, x12
	b.lt	LBB0_12
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_CHANNEL_WIDTH_20,8,3       ; @RTW_CHANNEL_WIDTH_20
	.comm	_RTW_CHANNEL_WIDTH_40,8,3       ; @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ; @RTW_CHANNEL_WIDTH_80
	.comm	_RTW_MAX_CHANNEL_WIDTH,4,2      ; @RTW_MAX_CHANNEL_WIDTH
.subsections_via_symbols
