	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_set_country_reg
_mt7601u_set_country_reg:               ## @mt7601u_set_country_reg
	.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	%rdi, %r14
	movq	_MT_EE_COUNTRY_REGION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rsi,%rax,4), %edx
	cmpl	$8, %edx
	movl	$-1, %ecx
	cmovll	%edx, %ecx
	cmpl	$32, %edx
	movl	$8, %eax
	cmovnel	%ecx, %eax
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%r14), %edi
	movslq	%eax, %rbx
	leaq	(%rbx,%rbx,2), %rax
	leaq	_mt7601u_set_country_reg.chan_bounds(%rip), %rcx
	movq	8(%rcx,%rax,8), %rsi
	movq	16(%rcx,%rax,8), %rcx
	leaq	(%rcx,%rsi), %r8
	decq	%r8
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_3
LBB0_1:
	movl	$5, %ebx
LBB0_3:
	movq	(%r14), %rax
	leaq	(%rbx,%rbx,2), %rcx
	leaq	_mt7601u_set_country_reg.chan_bounds(%rip), %rdx
	movq	16(%rdx,%rcx,8), %rsi
	movq	%rsi, 16(%rax)
	movups	(%rdx,%rcx,8), %xmm0
	movups	%xmm0, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mt7601u_set_country_reg.chan_bounds
_mt7601u_set_country_reg.chan_bounds:
	.long	1                               ## 0x1
	.long	11                              ## 0xb
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	1                               ## 0x1
	.long	13                              ## 0xd
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	10                              ## 0xa
	.long	2                               ## 0x2
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	10                              ## 0xa
	.long	4                               ## 0x4
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	14                              ## 0xe
	.long	1                               ## 0x1
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	1                               ## 0x1
	.long	14                              ## 0xe
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	3                               ## 0x3
	.long	7                               ## 0x7
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	5                               ## 0x5
	.long	9                               ## 0x9
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	1                               ## 0x1
	.long	11                              ## 0xb
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.long	1                               ## 0x1
	.long	14                              ## 0xe
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0

	.comm	_MT_EE_COUNTRY_REGION,8,3       ## @MT_EE_COUNTRY_REGION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM country region %02hhx (channels %hhd-%hhd)\n"

	.no_dead_strip	_mt7601u_set_country_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_set_country_reg
_mt7601u_set_country_reg:               ; @mt7601u_set_country_reg
	.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, x0
Lloh0:
	adrp	x8, _MT_EE_COUNTRY_REGION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_EE_COUNTRY_REGION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w2, [x1, x8, lsl #2]
	cmp	w2, #8
	csinv	w8, w2, wzr, lt
	mov	w9, #8
	cmp	w2, #32
	csel	w8, w9, w8, eq
Lloh3:
	adrp	x20, _mt7601u_set_country_reg.chan_bounds@PAGE
Lloh4:
	add	x20, x20, _mt7601u_set_country_reg.chan_bounds@PAGEOFF
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	sxtw	x21, w8
	mov	w9, #24
	smaddl	x8, w8, w9, x20
	ldp	x8, x3, [x8, #8]
	add	x8, x3, x8
	sub	x4, x8, #1
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_3
LBB0_2:
	mov	w21, #5
LBB0_3:
	ldr	x8, [x19]
	mov	w9, #24
	madd	x9, x21, x9, x20
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @mt7601u_set_country_reg.chan_bounds
_mt7601u_set_country_reg.chan_bounds:
	.long	1                               ; 0x1
	.long	11                              ; 0xb
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	1                               ; 0x1
	.long	13                              ; 0xd
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	10                              ; 0xa
	.long	2                               ; 0x2
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	10                              ; 0xa
	.long	4                               ; 0x4
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	14                              ; 0xe
	.long	1                               ; 0x1
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	1                               ; 0x1
	.long	14                              ; 0xe
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	3                               ; 0x3
	.long	7                               ; 0x7
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	5                               ; 0x5
	.long	9                               ; 0x9
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	1                               ; 0x1
	.long	11                              ; 0xb
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.long	1                               ; 0x1
	.long	14                              ; 0xe
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0

	.comm	_MT_EE_COUNTRY_REGION,8,3       ; @MT_EE_COUNTRY_REGION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM country region %02hhx (channels %hhd-%hhd)\n"

	.no_dead_strip	_mt7601u_set_country_reg
.subsections_via_symbols
