	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_read
_i2c_read:                              ## @i2c_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r15
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	%ecx, -96(%rbp)
	movq	%rdx, -88(%rbp)
	movl	$0, -80(%rbp)
	movl	%esi, -76(%rbp)
	movl	%r9d, -72(%rbp)
	movq	%r8, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%esi, -52(%rbp)
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_drxk_i2c_transfer
	movl	%eax, %r14d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %r14d
	jne	LBB0_1
## %bb.4:
	movl	%r12d, -100(%rbp)               ## 4-byte Spill
	xorl	%r12d, %r12d
	cmpl	$3, %eax
	jl	LBB0_12
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movl	-104(%rbp), %eax                ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pr_cont
	movl	-100(%rbp), %eax                ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_10
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	jmp	LBB0_12
LBB0_1:
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r14d, %r14d
	cmovsl	%r14d, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": ERROR!\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"i2c read error at addr 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	": read from"

L_.str.3:                               ## @.str.3
	.asciz	" %02x"

L_.str.4:                               ## @.str.4
	.asciz	", value = "

L_.str.5:                               ## @.str.5
	.asciz	"\n"

	.no_dead_strip	_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_read
_i2c_read:                              ; @i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	w3, [sp, #8]
	str	x2, [sp, #16]
	stp	wzr, w1, [sp, #24]
	str	w5, [sp, #32]
	str	x4, [sp, #40]
Lloh3:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w1, [sp, #48]
	add	x1, sp, #8
	mov	w2, #2
	bl	_drxk_i2c_transfer
Lloh6:
	adrp	x8, _debug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.1:
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.2:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	cmp	w23, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w23, w23
Lloh11:
	adrp	x22, l_.str.3@PAGE
Lloh12:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21], #4
	str	x8, [sp]
	mov	x0, x22
	bl	_pr_cont
	subs	x23, x23, #1
	b.ne	LBB0_4
LBB0_5:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_cont
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w21, w20
Lloh15:
	adrp	x20, l_.str.3@PAGE
Lloh16:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19], #4
	str	x8, [sp]
	mov	x0, x20
	bl	_pr_cont
	subs	x21, x21, #1
	b.ne	LBB0_7
LBB0_8:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_cont
LBB0_9:
	mov	w19, #0
	b	LBB0_13
LBB0_10:
	mov	x24, x0
	cmp	w8, #3
	b.lt	LBB0_12
; %bb.11:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_cont
LBB0_12:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w24, #0
	csneg	w19, w24, w8, lt
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pr_err
LBB0_13:
	ldr	x8, [sp, #56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": ERROR!\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"i2c read error at addr 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	": read from"

l_.str.3:                               ; @.str.3
	.asciz	" %02x"

l_.str.4:                               ; @.str.4
	.asciz	", value = "

l_.str.5:                               ; @.str.5
	.asciz	"\n"

	.no_dead_strip	_i2c_read
.subsections_via_symbols
