	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rndis_copy_module_params
_rndis_copy_module_params:              ## @rndis_copy_module_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_get_rndis_wlan_priv
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	_modparam_country@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%rbx), %rax
	movq	$0, 16(%rax)
	movq	_modparam_frameburst@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_modparam_afterburner@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_modparam_power_save@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_modparam_power_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_modparam_roamtrigger@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_modparam_roamdelta@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	callq	_toupper
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	24(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_toupper
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
LBB0_2:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.4:
	movl	$2, %eax
	cmpl	$3, %ecx
	jae	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movl	%eax, 4(%rbx)
LBB0_6:
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.8:
	movl	$3, %eax
	cmpl	$4, %ecx
	jae	LBB0_9
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, 8(%rbx)
LBB0_10:
	movl	12(%rbx), %ecx
	movl	$-80, %eax
	cmpl	$-80, %ecx
	jl	LBB0_12
## %bb.11:
	movl	$-60, %eax
	cmpl	$-59, %ecx
	jl	LBB0_13
LBB0_12:
	movl	%eax, 12(%rbx)
LBB0_13:
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	js	LBB0_14
## %bb.15:
	movl	$2, %eax
	cmpl	$3, %ecx
	jae	LBB0_16
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
LBB0_16:
	movl	%eax, 16(%rbx)
LBB0_17:
	movq	_modparam_workaround_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movl	$500, %ecx                      ## imm = 0x1F4
	cmovnsl	%eax, %ecx
	movl	%ecx, 20(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_modparam_country,8,3           ## @modparam_country
	.comm	_modparam_frameburst,4,2        ## @modparam_frameburst
	.comm	_modparam_afterburner,4,2       ## @modparam_afterburner
	.comm	_modparam_power_save,4,2        ## @modparam_power_save
	.comm	_modparam_power_output,4,2      ## @modparam_power_output
	.comm	_modparam_roamtrigger,4,2       ## @modparam_roamtrigger
	.comm	_modparam_roamdelta,4,2         ## @modparam_roamdelta
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EU"

L_.str.1:                               ## @.str.1
	.asciz	"FI"

	.comm	_modparam_workaround_interval,4,2 ## @modparam_workaround_interval
	.no_dead_strip	_rndis_copy_module_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rndis_copy_module_params
_rndis_copy_module_params:              ; @rndis_copy_module_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_get_rndis_wlan_priv
	mov	x19, x0
	str	w20, [x0]
Lloh0:
	adrp	x8, _modparam_country@GOTPAGE
Lloh1:
	ldr	x8, [x8, _modparam_country@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldr	x10, [x0, #24]
	str	x9, [x10]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [x0, #24]
	str	x8, [x9, #8]
	ldr	x8, [x0, #24]
	str	xzr, [x8, #16]
Lloh2:
	adrp	x8, _modparam_frameburst@GOTPAGE
Lloh3:
	ldr	x8, [x8, _modparam_frameburst@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _modparam_afterburner@GOTPAGE
Lloh6:
	ldr	x9, [x9, _modparam_afterburner@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh8:
	adrp	x8, _modparam_power_save@GOTPAGE
Lloh9:
	ldr	x8, [x8, _modparam_power_save@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _modparam_power_output@GOTPAGE
Lloh12:
	ldr	x9, [x9, _modparam_power_output@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #4]
Lloh14:
	adrp	x8, _modparam_roamtrigger@GOTPAGE
Lloh15:
	ldr	x8, [x8, _modparam_roamtrigger@GOTPAGEOFF]
Lloh16:
	adrp	x9, _modparam_roamdelta@GOTPAGE
Lloh17:
	ldr	x9, [x9, _modparam_roamdelta@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #12]
	ldr	x8, [x0, #24]
	ldr	x0, [x8]
	bl	_toupper
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	bl	_toupper
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	x0, [x19, #24]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_5
LBB0_2:
	cmp	w8, #3
	b.lo	LBB0_7
; %bb.3:
	mov	w8, #2
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #24]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	ldr	w8, [x19, #4]
	tbz	w8, #31, LBB0_2
LBB0_5:
	mov	w8, #0
LBB0_6:
	str	w8, [x19, #4]
LBB0_7:
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_10
; %bb.8:
	cmp	w8, #4
	b.lo	LBB0_12
; %bb.9:
	mov	w8, #3
	b	LBB0_11
LBB0_10:
	mov	w8, #0
LBB0_11:
	str	w8, [x19, #8]
LBB0_12:
	ldr	w8, [x19, #12]
	cmn	w8, #80
	b.ge	LBB0_14
; %bb.13:
	mov	w8, #-80
	b	LBB0_16
LBB0_14:
	cmn	w8, #59
	b.lt	LBB0_17
; %bb.15:
	mov	w8, #-60
LBB0_16:
	str	w8, [x19, #12]
LBB0_17:
	ldr	w8, [x19, #16]
	tbnz	w8, #31, LBB0_20
; %bb.18:
	cmp	w8, #3
	b.lo	LBB0_22
; %bb.19:
	mov	w8, #2
	b	LBB0_21
LBB0_20:
	mov	w8, #0
LBB0_21:
	str	w8, [x19, #16]
LBB0_22:
Lloh24:
	adrp	x8, _modparam_workaround_interval@GOTPAGE
Lloh25:
	ldr	x8, [x8, _modparam_workaround_interval@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	w9, #500
	cmp	w8, #0
	csel	w8, w9, w8, lt
	str	w8, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_modparam_country,8,3           ; @modparam_country
	.comm	_modparam_frameburst,4,2        ; @modparam_frameburst
	.comm	_modparam_afterburner,4,2       ; @modparam_afterburner
	.comm	_modparam_power_save,4,2        ; @modparam_power_save
	.comm	_modparam_power_output,4,2      ; @modparam_power_output
	.comm	_modparam_roamtrigger,4,2       ; @modparam_roamtrigger
	.comm	_modparam_roamdelta,4,2         ; @modparam_roamdelta
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EU"

l_.str.1:                               ; @.str.1
	.asciz	"FI"

	.comm	_modparam_workaround_interval,4,2 ; @modparam_workaround_interval
	.no_dead_strip	_rndis_copy_module_params
.subsections_via_symbols
