	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpufreq_gx_verify
_cpufreq_gx_verify:                     ## @cpufreq_gx_verify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_stock_freq@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	$0, 8(%rdi)
	movq	_max_duration@GOTPCREL(%rip), %r15
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%r15)
	movl	%eax, %esi
	movl	%ecx, %edx
	callq	_cpufreq_verify_within_limits
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_gx_validate_speed
	movl	%eax, %ecx
	cmpl	(%rbx), %eax
	jae	LBB0_5
## %bb.4:
	movl	(%r14), %eax
	xorl	%edx, %edx
	divl	(%r15)
	addl	%eax, %ecx
LBB0_5:
	movl	%ecx, (%rbx)
	movl	4(%rbx), %edi
	cmpl	%edi, %ecx
	jbe	LBB0_7
## %bb.6:
	movl	%ecx, 4(%rbx)
	movl	%ecx, %edi
LBB0_7:
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_gx_validate_speed
	movl	%eax, %ecx
	movl	(%r14), %r8d
	xorl	%r14d, %r14d
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	(%r15)
	cmpl	4(%rbx), %ecx
	movl	$0, %edx
	cmoval	%eax, %edx
	subl	%edx, %ecx
	movl	(%rbx), %edx
	cmpl	%edx, %ecx
	cmovbel	%edx, %ecx
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r8d, %edx
	callq	_cpufreq_verify_within_limits
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stock_freq,4,2                 ## @stock_freq
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_max_duration,4,2               ## @max_duration
	.no_dead_strip	_cpufreq_gx_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpufreq_gx_verify
_cpufreq_gx_verify:                     ; @cpufreq_gx_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x20, _stock_freq@GOTPAGE
Lloh1:
	ldr	x20, [x20, _stock_freq@GOTPAGEOFF]
	ldr	w2, [x20]
	cbz	w2, LBB0_7
; %bb.2:
	mov	x19, x0
	str	xzr, [x0, #8]
Lloh2:
	adrp	x21, _max_duration@GOTPAGE
Lloh3:
	ldr	x21, [x21, _max_duration@GOTPAGEOFF]
	ldr	w8, [x21]
	udiv	w1, w2, w8
	bl	_cpufreq_verify_within_limits
	ldr	w0, [x19]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_gx_validate_speed
	ldr	w8, [x19]
	cmp	w0, w8
	b.hs	LBB0_4
; %bb.3:
	ldr	w8, [x20]
	ldr	w9, [x21]
	udiv	w8, w8, w9
	add	w0, w8, w0
LBB0_4:
	str	w0, [x19]
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ls	LBB0_6
; %bb.5:
	str	w0, [x19, #4]
	mov	x8, x0
LBB0_6:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x8
	bl	_gx_validate_speed
	ldr	w2, [x20]
	ldr	w8, [x21]
	udiv	w1, w2, w8
	ldp	w9, w8, [x19]
	cmp	w0, w8
	csel	w8, w1, wzr, hi
	sub	w8, w0, w8
	cmp	w8, w9
	csel	w8, w8, w9, hi
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_cpufreq_verify_within_limits
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_stock_freq,4,2                 ; @stock_freq
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_max_duration,4,2               ; @max_duration
	.no_dead_strip	_cpufreq_gx_verify
.subsections_via_symbols
