	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _rtl8812ae_phy_get_world_wide_limit
LCPI0_0:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__rtl8812ae_phy_get_world_wide_limit:   ## @_rtl8812ae_phy_get_world_wide_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_MAX_REGULATION_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$2, %rcx
	jb	LBB0_11
## %bb.1:
	leaq	-1(%rcx), %r8
	movl	$1, %edx
	cmpq	$4, %r8
	jb	LBB0_10
## %bb.2:
	movq	%r8, %rdx
	andq	$-4, %rdx
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	leaq	-4(%rdx), %rax
	movq	%rax, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r9, %rax
	andq	$-2, %rax
	movl	$1, %esi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [2147483648,2147483648]
	movdqa	%xmm1, %xmm2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm5
	pxor	%xmm8, %xmm5
	movdqu	(%rdi,%rsi,8), %xmm6
	movdqu	16(%rdi,%rsi,8), %xmm7
	movdqu	32(%rdi,%rsi,8), %xmm4
	movdqa	%xmm6, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm5, %xmm3
	pcmpeqd	%xmm0, %xmm3
	pcmpgtd	%xmm0, %xmm5
	pshufd	$160, %xmm5, %xmm0              ## xmm0 = xmm5[0,0,2,2]
	pand	%xmm3, %xmm0
	por	%xmm5, %xmm0
	blendvpd	%xmm0, %xmm6, %xmm1
	movdqa	%xmm2, %xmm3
	pxor	%xmm8, %xmm3
	movdqa	%xmm7, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm3, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm7, %xmm2
	movapd	%xmm1, %xmm3
	xorpd	%xmm8, %xmm3
	movdqa	%xmm4, %xmm0
	pxor	%xmm8, %xmm0
	movapd	%xmm3, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm4, %xmm1
	movdqu	48(%rdi,%rsi,8), %xmm3
	movapd	%xmm2, %xmm4
	xorpd	%xmm8, %xmm4
	movdqa	%xmm3, %xmm0
	pxor	%xmm8, %xmm0
	movapd	%xmm4, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm4
	pshufd	$160, %xmm4, %xmm0              ## xmm0 = xmm4[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm4, %xmm0
	blendvpd	%xmm0, %xmm3, %xmm2
	addq	$8, %rsi
	addq	$-2, %rax
	jne	LBB0_5
## %bb.6:
	testb	$1, %r9b
	je	LBB0_8
LBB0_7:
	movdqu	(%rdi,%rsi,8), %xmm4
	movdqu	16(%rdi,%rsi,8), %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [2147483648,2147483648]
	movdqa	%xmm1, %xmm6
	pxor	%xmm5, %xmm6
	movdqa	%xmm4, %xmm0
	pxor	%xmm5, %xmm0
	movdqa	%xmm6, %xmm7
	pcmpeqd	%xmm0, %xmm7
	pcmpgtd	%xmm0, %xmm6
	pshufd	$160, %xmm6, %xmm0              ## xmm0 = xmm6[0,0,2,2]
	pand	%xmm7, %xmm0
	por	%xmm6, %xmm0
	blendvpd	%xmm0, %xmm4, %xmm1
	movdqa	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	pxor	%xmm3, %xmm5
	movdqa	%xmm4, %xmm6
	pcmpeqd	%xmm5, %xmm6
	pcmpgtd	%xmm5, %xmm4
	pshufd	$160, %xmm4, %xmm0              ## xmm0 = xmm4[0,0,2,2]
	pand	%xmm6, %xmm0
	por	%xmm4, %xmm0
	blendvpd	%xmm0, %xmm3, %xmm2
LBB0_8:
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [2147483648,2147483648]
	movdqa	%xmm1, %xmm0
	pxor	%xmm3, %xmm0
	movdqa	%xmm2, %xmm4
	pxor	%xmm3, %xmm4
	movdqa	%xmm4, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm4
	pshufd	$160, %xmm4, %xmm0              ## xmm0 = xmm4[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm4, %xmm0
	blendvpd	%xmm0, %xmm1, %xmm2
	pshufd	$238, %xmm2, %xmm1              ## xmm1 = xmm2[2,3,2,3]
	movdqa	%xmm2, %xmm0
	pxor	%xmm3, %xmm0
	pxor	%xmm1, %xmm3
	movdqa	%xmm3, %xmm4
	pcmpeqd	%xmm0, %xmm4
	pcmpgtd	%xmm0, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm4, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm2, %xmm1
	movq	%xmm1, %rax
	cmpq	%rdx, %r8
	je	LBB0_11
## %bb.9:
	orq	$1, %rdx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rsi
	cmpq	%rax, %rsi
	cmovlq	%rsi, %rax
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %esi
	movapd	%xmm1, %xmm2
	testb	$1, %r9b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGULATION_NUM,8,3         ## @MAX_REGULATION_NUM
	.no_dead_strip	__rtl8812ae_phy_get_world_wide_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8812ae_phy_get_world_wide_limit
__rtl8812ae_phy_get_world_wide_limit:   ; @_rtl8812ae_phy_get_world_wide_limit
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_REGULATION_NUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_REGULATION_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, #2
	b.lo	LBB0_8
; %bb.1:
	sub	x11, x9, #1
	cmp	x11, #8
	b.hs	LBB0_3
; %bb.2:
	mov	w10, #1
	b	LBB0_6
LBB0_3:
	and	x12, x11, #0xfffffffffffffff8
	orr	x10, x12, #0x1
	add	x13, x0, #40
	dup.2d	v0, x8
	mov	x8, x12
	mov.16b	v3, v0
	mov.16b	v2, v0
	mov.16b	v1, v0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	cmgt.2d	v16, v0, v4
	bit.16b	v0, v4, v16
	cmgt.2d	v4, v3, v5
	bit.16b	v3, v5, v4
	cmgt.2d	v4, v2, v6
	bit.16b	v2, v6, v4
	cmgt.2d	v4, v1, v7
	bit.16b	v1, v7, v4
	subs	x8, x8, #8
	b.ne	LBB0_4
; %bb.5:
	cmgt.2d	v4, v3, v0
	bif.16b	v0, v3, v4
	cmgt.2d	v3, v2, v0
	bif.16b	v0, v2, v3
	cmgt.2d	v2, v1, v0
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmgt	d2, d1, d0
	bif.8b	v0, v1, v2
	fmov	x8, d0
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_6:
	sub	x9, x9, x10
	add	x10, x0, x10, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x11, x8
	csel	x8, x11, x8, lt
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGULATION_NUM,8,3         ; @MAX_REGULATION_NUM
	.no_dead_strip	__rtl8812ae_phy_get_world_wide_limit
.subsections_via_symbols
