	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rtw_phy_tx_power_limit_config
___rtw_phy_tx_power_limit_config:       ## @__rtw_phy_tx_power_limit_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_RTW_MAX_CHANNEL_NUM_2G@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	testq	%r9, %r9
	je	LBB0_11
## %bb.1:
	movq	16(%rdi), %rax
	movq	24(%rdi), %rbx
	movq	(%rbx), %rbx
	movl	(%rbx,%rcx,8), %r8d
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%rax,%rcx,8), %r10
	cmpq	$8, %r9
	jae	LBB0_4
## %bb.2:
	xorl	%r11d, %r11d
	jmp	LBB0_3
LBB0_4:
	movq	%r9, %r11
	andq	$-8, %r11
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r11), %rax
	movq	%rax, %r14
	shrq	$3, %r14
	incq	%r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rbx
	andq	$-2, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r10,%rax,4), %xmm1
	movdqu	16(%r10,%rax,4), %xmm2
	movdqu	32(%r10,%rax,4), %xmm3
	movdqu	48(%r10,%rax,4), %xmm4
	psubd	%xmm0, %xmm1
	psubd	%xmm0, %xmm2
	movdqu	%xmm1, (%r10,%rax,4)
	movdqu	%xmm2, 16(%r10,%rax,4)
	psubd	%xmm0, %xmm3
	psubd	%xmm0, %xmm4
	movdqu	%xmm3, 32(%r10,%rax,4)
	movdqu	%xmm4, 48(%r10,%rax,4)
	addq	$16, %rax
	addq	$-2, %rbx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r14b
	jne	LBB0_9
	jmp	LBB0_10
LBB0_5:
	xorl	%eax, %eax
	testb	$1, %r14b
	je	LBB0_10
LBB0_9:
	movdqu	(%r10,%rax,4), %xmm1
	movdqu	16(%r10,%rax,4), %xmm2
	psubd	%xmm0, %xmm1
	psubd	%xmm0, %xmm2
	movdqu	%xmm1, (%r10,%rax,4)
	movdqu	%xmm2, 16(%r10,%rax,4)
	jmp	LBB0_10
LBB0_3:
	subl	%r8d, (%r10,%r11,4)
	incq	%r11
LBB0_10:
	cmpq	%r11, %r9
	jne	LBB0_3
LBB0_11:
	movq	_RTW_MAX_CHANNEL_NUM_5G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:
	movq	(%rdi), %rbx
	movq	8(%rdi), %rdi
	movq	(%rdi), %rdi
	movl	(%rdi,%rcx,8), %edi
	movq	(%rbx,%rsi,8), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx,%rcx,8), %rcx
	cmpq	$8, %rax
	jae	LBB0_15
## %bb.13:
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_15:
	movq	%rax, %rdx
	andq	$-8, %rdx
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.17:
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rsi,4), %xmm1
	movdqu	16(%rcx,%rsi,4), %xmm2
	movdqu	32(%rcx,%rsi,4), %xmm3
	movdqu	48(%rcx,%rsi,4), %xmm4
	psubd	%xmm0, %xmm1
	psubd	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rsi,4)
	movdqu	%xmm2, 16(%rcx,%rsi,4)
	psubd	%xmm0, %xmm3
	psubd	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rcx,%rsi,4)
	movdqu	%xmm4, 48(%rcx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rbx
	jne	LBB0_18
## %bb.19:
	testb	$1, %r8b
	jne	LBB0_20
	jmp	LBB0_21
LBB0_16:
	xorl	%esi, %esi
	testb	$1, %r8b
	je	LBB0_21
LBB0_20:
	movdqu	(%rcx,%rsi,4), %xmm1
	movdqu	16(%rcx,%rsi,4), %xmm2
	psubd	%xmm0, %xmm1
	psubd	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rsi,4)
	movdqu	%xmm2, 16(%rcx,%rsi,4)
	jmp	LBB0_21
LBB0_14:
	subl	%edi, (%rcx,%rdx,4)
	incq	%rdx
LBB0_21:
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_MAX_CHANNEL_NUM_2G,8,3     ## @RTW_MAX_CHANNEL_NUM_2G
	.comm	_RTW_MAX_CHANNEL_NUM_5G,8,3     ## @RTW_MAX_CHANNEL_NUM_5G
	.no_dead_strip	___rtw_phy_tx_power_limit_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rtw_phy_tx_power_limit_config
___rtw_phy_tx_power_limit_config:       ; @__rtw_phy_tx_power_limit_config
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RTW_MAX_CHANNEL_NUM_2G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_MAX_CHANNEL_NUM_2G@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	lsl	x8, x3, #3
	cbz	x10, LBB0_8
; %bb.1:
	ldp	x11, x9, [x0, #16]
	ldr	x9, [x9]
	ldr	w9, [x9, x8]
	ldr	x11, [x11, x1, lsl #3]
	ldr	x11, [x11, x2, lsl #3]
	ldr	x11, [x11, x8]
	cmp	x10, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	b	LBB0_6
LBB0_3:
	and	x12, x10, #0xfffffffffffffff0
	dup.4s	v0, w9
	add	x13, x11, #32
	mov	x14, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13, #-32]
	ldp	q3, q4, [x13]
	sub.4s	v1, v1, v0
	sub.4s	v2, v2, v0
	sub.4s	v3, v3, v0
	sub.4s	v4, v4, v0
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x12
	b.eq	LBB0_8
LBB0_6:
	sub	x10, x10, x12
	add	x11, x11, x12, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	sub	w12, w12, w9
	str	w12, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
Lloh3:
	adrp	x9, _RTW_MAX_CHANNEL_NUM_5G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTW_MAX_CHANNEL_NUM_5G@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	cbz	x10, LBB0_16
; %bb.9:
	ldp	x11, x9, [x0]
	ldr	x9, [x9]
	ldr	w9, [x9, x8]
	ldr	x11, [x11, x1, lsl #3]
	ldr	x11, [x11, x2, lsl #3]
	ldr	x8, [x11, x8]
	cmp	x10, #16
	b.hs	LBB0_11
; %bb.10:
	mov	x11, #0
	b	LBB0_14
LBB0_11:
	and	x11, x10, #0xfffffffffffffff0
	dup.4s	v0, w9
	add	x12, x8, #32
	mov	x13, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12]
	sub.4s	v1, v1, v0
	sub.4s	v2, v2, v0
	sub.4s	v3, v3, v0
	sub.4s	v4, v4, v0
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x10, x11
	b.eq	LBB0_16
LBB0_14:
	sub	x10, x10, x11
	add	x8, x8, x11, lsl #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	sub	w11, w11, w9
	str	w11, [x8], #4
	subs	x10, x10, #1
	b.ne	LBB0_15
LBB0_16:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_MAX_CHANNEL_NUM_2G,8,3     ; @RTW_MAX_CHANNEL_NUM_2G
	.comm	_RTW_MAX_CHANNEL_NUM_5G,8,3     ; @RTW_MAX_CHANNEL_NUM_5G
	.no_dead_strip	___rtw_phy_tx_power_limit_config
.subsections_via_symbols
