	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freqerr_chk
_freqerr_chk:                           ## @freqerr_chk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-46(%rbp), %rdx
	movl	$67, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.1:
	movzbl	-46(%rbp), %eax
	leal	-256(%rax), %ecx
	testb	%al, %al
	cmovnsl	%eax, %ecx
	imull	%r12d, %ecx
	leal	255(%rcx), %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
	leaq	-41(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$73, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.2:
	testb	$4, -41(%rbp)
	jne	LBB0_7
## %bb.3:
	leaq	-41(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.4:
	xorl	%ecx, %ecx
	testb	$32, -41(%rbp)
	je	LBB0_11
## %bb.5:
	leaq	-43(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$43, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.6:
	leaq	-42(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$44, %esi
	jmp	LBB0_9
LBB0_7:
	leaq	-43(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.8:
	leaq	-42(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$15, %esi
LBB0_9:
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.10:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_smrt_info_get
	movzbl	-42(%rbp), %eax
	andl	$1, %eax
	shll	$8, %eax
	movzbl	-43(%rbp), %ecx
	leal	(%rax,%rcx), %edx
	cmpl	$256, %edx                      ## imm = 0x100
	leal	-512(%rax,%rcx), %eax
	cmovbl	%edx, %eax
	imull	(%rbx), %eax
	leal	8191(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$13, %ecx
LBB0_11:
	movl	%ecx, %r12d
	leaq	-41(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$34, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.12:
	leaq	-45(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$35, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.13:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$36, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.14:
	sarl	$8, %r13d
	movzbl	-41(%rbp), %eax
	movl	%eax, %ecx
	andl	$31, %ecx
	shll	$12, %ecx
	movzbl	-45(%rbp), %edx
	shll	$4, %edx
	orl	%ecx, %edx
	movzbl	-44(%rbp), %esi
	shrl	$4, %esi
	orl	%edx, %esi
	cmpb	$32, %al
	setb	%cl
	shll	%cl, %esi
	subl	%r15d, %esi
	addl	%r13d, %r12d
	imull	$1000, %esi, %eax               ## imm = 0x3E8
	addl	%r12d, %eax
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.15:
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:
	addl	$500, %eax                      ## imm = 0x1F4
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	jmp	LBB0_19
LBB0_18:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$500, %ecx                      ## imm = 0x1F4
	subl	%eax, %ecx
	imulq	$274877907, %rcx, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	negl	%eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_freqerr_chk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freqerr_chk
_freqerr_chk:                           ; @freqerr_chk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	add	x2, sp, #15
	mov	w1, #67
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.1:
	ldrb	w8, [sp, #15]
	sxtb	w9, w8
	orr	w10, w8, #0xffffff00
	cmp	w9, #0
	csel	w8, w10, w8, lt
	mul	w8, w8, w22
	add	w9, w8, #255
	cmp	w8, #0
	csel	w23, w9, w8, lt
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #73
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.2:
	ldrb	w8, [sp, #12]
	tbnz	w8, #2, LBB0_6
; %bb.3:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #42
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.4:
	ldrb	w8, [sp, #12]
	tbnz	w8, #5, LBB0_8
; %bb.5:
	mov	w22, #0
	b	LBB0_12
LBB0_6:
	add	x2, sp, #14
	mov	x0, x21
	mov	w1, #14
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.7:
	add	x2, sp, #13
	mov	x0, x21
	mov	w1, #15
	b	LBB0_10
LBB0_8:
	add	x2, sp, #14
	mov	x0, x21
	mov	w1, #43
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.9:
	add	x2, sp, #13
	mov	x0, x21
	mov	w1, #44
LBB0_10:
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.11:
	mov	x0, x21
	mov	x1, x22
	bl	_smrt_info_get
	ldrb	w8, [sp, #13]
	and	w8, w8, #0x1
	ldrb	w9, [sp, #14]
	bfi	w9, w8, #8, #1
	orr	w8, w9, #0xfffffe00
	cmp	w9, #255
	csel	w8, w8, w9, hi
	ldr	w9, [x21]
	mul	w8, w8, w9
	mov	w9, #8191
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w22, w8, #13
LBB0_12:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #34
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.13:
	add	x2, sp, #11
	mov	x0, x21
	mov	w1, #35
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.14:
	add	x2, sp, #10
	mov	x0, x21
	mov	w1, #36
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.15:
	asr	w8, w23, #8
	ldrb	w9, [sp, #12]
	ldrb	w10, [sp, #11]
	lsl	w10, w10, #4
	bfi	w10, w9, #12, #5
	ldrb	w11, [sp, #10]
	orr	w10, w10, w11, lsr #4
	cmp	w9, #32
	cset	w9, lo
	lsl	w9, w10, w9
	sub	w9, w9, w20
	add	w8, w22, w8
	mov	w10, #1000
	madd	w0, w9, w10, w8
	cbnz	w19, LBB0_19
; %bb.16:
	tbnz	w0, #31, LBB0_20
; %bb.17:
	add	w8, w0, #500
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #38
	b	LBB0_19
LBB0_18:
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh8:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w8, #500
	sub	w8, w8, w0
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #38
	neg	w0, w8
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_freqerr_chk
.subsections_via_symbols
