	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rohm_i2c_burst_read
_rohm_i2c_burst_read:                   ## @rohm_i2c_burst_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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	%esi, -100(%rbp)
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	$1, -96(%rbp)
	leaq	-100(%rbp), %rsi
	movq	%rsi, -88(%rbp)
	movl	%eax, -40(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%ecx, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	_I2C_LOCK_SEGMENT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_lock_bus
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	___i2c_transfer
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	___i2c_transfer
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_unlock_bus
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.comm	_I2C_LOCK_SEGMENT,4,2           ## @I2C_LOCK_SEGMENT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_rohm_i2c_burst_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rohm_i2c_burst_read
_rohm_i2c_burst_read:                   ; @rohm_i2c_burst_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
	mov	w9, #1
	stp	w1, w9, [sp, #4]
	add	x9, sp, #4
	stp	x9, xzr, [sp, #16]
	str	w8, [sp, #64]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	w8, [sp, #32]
	str	w3, [sp, #40]
	stp	x2, x9, [sp, #48]
Lloh6:
	adrp	x21, _I2C_LOCK_SEGMENT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _I2C_LOCK_SEGMENT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_lock_bus
	add	x20, sp, #8
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	___i2c_transfer
	tbnz	x0, #63, LBB0_3
; %bb.1:
	add	x1, x20, #32
	mov	x0, x19
	mov	w2, #1
	bl	___i2c_transfer
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_unlock_bus
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.comm	_I2C_LOCK_SEGMENT,4,2           ; @I2C_LOCK_SEGMENT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_rohm_i2c_burst_read
.subsections_via_symbols
