	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_chk
_sync_chk:                              ## @sync_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	-17(%rbp), %rdx
	movl	$13, %esi
	callq	_mb86a16_read
	movq	_verbose@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MB86A16_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-17(%rbp), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movzbl	-17(%rbp), %eax
	movl	%eax, %ebx
	andl	$1, %ebx
	shrb	$2, %al
	andb	$7, %al
	movb	%al, (%r14)
	jmp	LBB0_3
LBB0_2:
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movb	$0, (%r14)
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_INFO,4,2               ## @MB86A16_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Status = %02x,"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_chk
_sync_chk:                              ; @sync_chk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	add	x2, sp, #15
	mov	w1, #13
	bl	_mb86a16_read
	mov	x8, x0
Lloh0:
	adrp	x9, _verbose@GOTPAGE
Lloh1:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MB86A16_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB86A16_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w8, [sp, #15]
	str	x8, [sp]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldrb	w8, [sp, #15]
	and	w0, w8, #0x1
	ubfx	w8, w8, #2, #3
	strb	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	strb	wzr, [x19]
Lloh13:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_INFO,4,2               ; @MB86A16_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Status = %02x,"

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

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