	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_zm_i2c
_init_zm_i2c:                           ## @init_zm_i2c
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$2120, %rsp                     ## imm = 0x848
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rsi
	movq	8(%rdi), %r15
	incq	%rsi
	movq	%r15, %rdi
	callq	_nv_ro08
	movslq	%eax, %r14
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	%r15, %rdi
	callq	_nv_ro08
	sarl	%eax
	movslq	%eax, %r12
	movq	(%rbx), %rsi
	addq	$3, %rsi
	movq	%r15, %rdi
	callq	_nv_ro08
	movslq	%eax, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r14, -2120(%rbp)               ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r12, -2112(%rbp)               ## 8-byte Spill
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_trace
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rsi, (%rbx)
	movq	%r13, -2104(%rbp)               ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movq	-2104(%rbp), %rax               ## 8-byte Reload
	cmpq	$2, %rax
	movl	$1, %r12d
	cmovaeq	%rax, %r12
	leaq	L_.str.1(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_nv_ro08
	movslq	%eax, %rsi
	movq	%rsi, -2096(%rbp,%r14,8)
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_trace
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%rsi, (%rbx)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_init_exec
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movq	-2120(%rbp), %rsi               ## 8-byte Reload
	callq	_init_i2c
	movq	-2112(%rbp), %rcx               ## 8-byte Reload
	movq	%rcx, -2152(%rbp)
	movq	-2104(%rbp), %rcx               ## 8-byte Reload
	movq	%rcx, -2144(%rbp)
	leaq	-2096(%rbp), %rcx
	movq	%rcx, -2136(%rbp)
	movl	$0, -2128(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	-2152(%rbp), %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_warn
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$2120, %rsp                     ## imm = 0x848
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZM_I2C\tI2C[0x%02x][0x%02x]\n"

L_.str.1:                               ## @.str.1
	.asciz	"\t0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c wr failed, %d\n"

	.no_dead_strip	_init_zm_i2c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_zm_i2c
_init_zm_i2c:                           ; @init_zm_i2c
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #2096
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x8, x21, [x0]
	add	x1, x8, #1
	mov	x0, x21
	bl	_nv_ro08
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	ldr	x8, [x19]
	add	x1, x8, #2
	mov	x0, x21
	bl	_nv_ro08
                                        ; kill: def $w0 killed $w0 def $x0
	sbfx	x23, x0, #1, #31
	ldr	x8, [x19]
	add	x1, x8, #3
	mov	x0, x21
	bl	_nv_ro08
	mov	x22, x0
	sxtw	x24, w22
	str	x23, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_trace
	ldr	x8, [x19]
	add	x1, x8, #4
	str	x1, [x19]
	cbz	w22, LBB0_3
; %bb.1:
	cmp	x24, #1
	csinc	x25, x24, xzr, hi
	add	x26, sp, #40
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_nv_ro08
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x1, [x26], #8
	mov	x0, x22
	bl	_trace
	ldr	x8, [x19]
	add	x1, x8, #1
	str	x1, [x19]
	subs	x25, x25, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_init_exec
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_init_i2c
	stp	x23, x24, [sp, #8]
	add	x8, sp, #40
	str	x8, [sp, #24]
	str	wzr, [sp, #32]
	cbz	x0, LBB0_7
; %bb.5:
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.6:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #2096
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZM_I2C\tI2C[0x%02x][0x%02x]\n"

l_.str.1:                               ; @.str.1
	.asciz	"\t0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c wr failed, %d\n"

	.no_dead_strip	_init_zm_i2c
.subsections_via_symbols
