	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a16_read_ber
_mb86a16_read_ber:                      ## @mb86a16_read_ber
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	$0, (%rsi)
	movq	_MB86A16_BERMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.1:
	movq	_MB86A16_BERTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.2:
	movq	_MB86A16_BERLSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.3:
	movq	_MB86A16_BERMID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.4:
	movq	_MB86A16_BERMSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.5:
	xorl	%ebx, %ebx
	testb	$4, -48(%rbp)
	je	LBB0_13
## %bb.6:
	movl	-52(%rbp), %r8d
	andl	$31, %r8d
	movl	%r8d, (%r14)
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_MB86A16_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	-48(%rbp), %ecx
	testb	$1, %cl
	jne	LBB0_7
## %bb.11:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	shll	$16, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	-44(%rbp), %eax
	andl	$2, %ecx
	leal	18(,%rcx,4), %ecx
	cltd
	idivl	%ecx
	movl	%eax, (%r14)
	movl	(%r15), %edi
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_10
LBB0_12:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	shrl	$3, %ecx
	andl	$3, %ecx
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	shll	$16, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	-44(%rbp), %eax
	movl	$100000000, %esi                ## imm = 0x5F5E100
	cmpl	$3, %ecx
	je	LBB0_9
## %bb.8:
	leaq	l_switch.table.mb86a16_read_ber(%rip), %rdx
	movl	(%rdx,%rcx,4), %esi
LBB0_9:
	cltd
	idivl	%esi
	movl	%eax, (%r14)
	movl	(%r15), %edi
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
LBB0_10:
	movl	$1, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MB86A16_BERMON,4,2             ## @MB86A16_BERMON
	.comm	_MB86A16_BERTAB,4,2             ## @MB86A16_BERTAB
	.comm	_MB86A16_BERLSB,4,2             ## @MB86A16_BERLSB
	.comm	_MB86A16_BERMID,4,2             ## @MB86A16_BERMID
	.comm	_MB86A16_BERMSB,4,2             ## @MB86A16_BERMSB
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_DEBUG,4,2              ## @MB86A16_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BER coarse=[0x%02x]"

L_.str.1:                               ## @.str.1
	.asciz	"BER fine=[0x%02x]"

	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_mb86a16_read_ber
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mb86a16_read_ber
l_switch.table.mb86a16_read_ber:
	.long	12500000                        ## 0xbebc20
	.long	25000000                        ## 0x17d7840
	.long	50000000                        ## 0x2faf080

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb86a16_read_ber
_mb86a16_read_ber:                      ; @mb86a16_read_ber
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	ldr	x20, [x0]
	str	wzr, [x1]
Lloh0:
	adrp	x8, _MB86A16_BERMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB86A16_BERMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x20
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _MB86A16_BERTAB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB86A16_BERTAB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x20
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _MB86A16_BERLSB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MB86A16_BERLSB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #20
	mov	x0, x20
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _MB86A16_BERMID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MB86A16_BERMID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _MB86A16_BERMSB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MB86A16_BERMSB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.5:
	ldrb	w8, [sp, #28]
	tbnz	w8, #2, LBB0_9
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _verbose@GOTPAGE
Lloh16:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x3, l_.str.2@PAGE
Lloh22:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh23:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w8, [sp, #24]
	and	w8, w8, #0x1f
	str	w8, [x19]
Lloh26:
	adrp	x20, _verbose@GOTPAGE
Lloh27:
	ldr	x20, [x20, _verbose@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh28:
	adrp	x21, _MB86A16_DEBUG@GOTPAGE
Lloh29:
	ldr	x21, [x21, _MB86A16_DEBUG@GOTPAGEOFF]
	ldr	w1, [x21]
	str	x8, [sp]
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldr	w8, [sp, #28]
	tbnz	w8, #0, LBB0_11
; %bb.10:
	ldp	w9, w10, [sp, #12]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	ldr	w10, [sp, #20]
	orr	w9, w9, w10
	tst	w8, #0x2
	mov	w8, #26
	mov	w10, #18
	csel	w8, w10, w8, eq
	sdiv	w8, w9, w8
	b	LBB0_15
LBB0_11:
	ubfx	x9, x8, #3, #2
	ldp	w8, w10, [sp, #12]
	lsl	w10, w10, #8
	orr	w8, w10, w8, lsl #16
	ldr	w10, [sp, #20]
	orr	w8, w8, w10
	cmp	w9, #3
	b.ne	LBB0_13
; %bb.12:
	mov	w9, #57600
	movk	w9, #1525, lsl #16
	b	LBB0_14
LBB0_13:
Lloh32:
	adrp	x10, l_switch.table.mb86a16_read_ber@PAGE
Lloh33:
	add	x10, x10, l_switch.table.mb86a16_read_ber@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
LBB0_14:
	sdiv	w8, w8, w9
LBB0_15:
	str	w8, [x19]
	ldr	w0, [x20]
	ldr	w1, [x21]
	str	x8, [sp]
Lloh34:
	adrp	x3, l_.str.1@PAGE
Lloh35:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MB86A16_BERMON,4,2             ; @MB86A16_BERMON
	.comm	_MB86A16_BERTAB,4,2             ; @MB86A16_BERTAB
	.comm	_MB86A16_BERLSB,4,2             ; @MB86A16_BERLSB
	.comm	_MB86A16_BERMID,4,2             ; @MB86A16_BERMID
	.comm	_MB86A16_BERMSB,4,2             ; @MB86A16_BERMSB
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_DEBUG,4,2              ; @MB86A16_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BER coarse=[0x%02x]"

l_.str.1:                               ; @.str.1
	.asciz	"BER fine=[0x%02x]"

	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_mb86a16_read_ber
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mb86a16_read_ber
l_switch.table.mb86a16_read_ber:
	.long	12500000                        ; 0xbebc20
	.long	25000000                        ; 0x17d7840
	.long	50000000                        ; 0x2faf080

.subsections_via_symbols
