	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geni_i2c_err
_geni_i2c_err:                          ## @geni_i2c_err
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_gi2c_log@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rax
	movq	%rax, 16(%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	8(%rax), %edx
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_4:
	movq	_NACK@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_GENI_ABORT_DONE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %edi
	movq	_gi2c_log@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_geni_i2c_err_misc              ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gi2c_log,8,3                   ## @gi2c_log
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"len:%d, slv-addr:0x%x, RD/WR:%d\n"

	.comm	_NACK,4,2                       ## @NACK
	.comm	_GENI_ABORT_DONE,4,2            ## @GENI_ABORT_DONE
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_geni_i2c_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geni_i2c_err
_geni_i2c_err:                          ; @geni_i2c_err
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	w0, [x19]
	ldp	w3, w2, [x8, #4]
	ldr	w4, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_3:
Lloh2:
	adrp	x8, _NACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GENI_ABORT_DONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GENI_ABORT_DONE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _gi2c_log@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gi2c_log@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sbfiz	x9, x20, #4, #32
	ldr	w2, [x8, x9]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_geni_i2c_err_misc
LBB0_6:
Lloh13:
	adrp	x8, _gi2c_log@GOTPAGE
Lloh14:
	ldr	x8, [x8, _gi2c_log@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x8, x8, w20, sxtw #4
	ldr	x8, [x8, #8]
	str	x8, [x19, #16]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_gi2c_log,8,3                   ; @gi2c_log
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"len:%d, slv-addr:0x%x, RD/WR:%d\n"

	.comm	_NACK,4,2                       ; @NACK
	.comm	_GENI_ABORT_DONE,4,2            ; @GENI_ABORT_DONE
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_geni_i2c_err
.subsections_via_symbols
