	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a16_read
_mb86a16_read:                          ## @mb86a16_read
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	%esi, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	$1, -96(%rbp)
	leaq	-104(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$0, -80(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	$1, -72(%rbp)
	leaq	-100(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movl	(%rdi), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %r12d
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.3:
	movl	-100(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	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
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_dprintk
	movl	%ebx, %r12d
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.2:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read error(reg=0x%02x, ret=%i)"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb86a16_read
_mb86a16_read:                          ; @mb86a16_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	wzr, w1, [sp]
	mov	w8, #1
	str	w8, [sp, #8]
	add	x9, sp, #4
	str	x9, [sp, #16]
	str	wzr, [sp, #24]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	stp	w9, w8, [sp, #28]
	mov	x8, sp
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w9, [sp, #48]
	ldr	w0, [x0]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	mov	x20, x0
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [sp]
	str	w8, [x21]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _verbose@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	mov	x4, x19
	mov	x5, x20
	bl	_dprintk
	tbnz	w20, #31, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read error(reg=0x%02x, ret=%i)"

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