	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function puv3_i2c_xfer
_puv3_i2c_xfer:                         ## @puv3_i2c_xfer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_I2C_ENABLE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_writel
	movq	_I2C_CON_MASTER@GOTPCREL(%rip), %rax
	movq	_I2C_CON_SPEED_STD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_I2C_CON_SLAVEDISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_I2C_CON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	movl	(%r12), %edi
	movq	_I2C_TAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	movq	_I2C_ENABLE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_writel
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_xfer_write
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	addq	$24, %r12
	incl	%r13d
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r12), %eax
	movl	(%r12), %r10d
	movl	8(%r12), %r8d
	cmpl	$2, %r8d
	leaq	L_.str.5(%rip), %r9
	leaq	L_.str.4(%rip), %rcx
	cmovgeq	%rcx, %r9
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	L_.str.6(%rip), %rbx
	leaq	L_.str.7(%rip), %rax
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_dev_dbg
	addq	$16, %rsp
	movl	8(%r12), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_xfer_read
	jmp	LBB0_7
LBB0_9:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_10:
	movl	(%r12), %eax
	movq	_I2C_TAR_PWIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movq	16(%r12), %rax
	movb	(%rax), %cl
	movb	1(%rax), %dl
	movb	%dl, (%rax)
	movq	16(%r12), %rax
	movb	%cl, 1(%rax)
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_ENABLE_DISABLE,4,2         ## @I2C_ENABLE_DISABLE
	.comm	_I2C_ENABLE,4,2                 ## @I2C_ENABLE
	.comm	_I2C_CON_MASTER,4,2             ## @I2C_CON_MASTER
	.comm	_I2C_CON_SPEED_STD,4,2          ## @I2C_CON_SPEED_STD
	.comm	_I2C_CON_SLAVEDISABLE,4,2       ## @I2C_CON_SLAVEDISABLE
	.comm	_I2C_CON,4,2                    ## @I2C_CON
	.comm	_I2C_TAR,4,2                    ## @I2C_TAR
	.comm	_I2C_ENABLE_ENABLE,4,2          ## @I2C_ENABLE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"puv3_i2c_xfer: processing %d messages:\n"

L_.str.1:                               ## @.str.1
	.asciz	" #%d: %sing %d byte%s %s 0x%02x\n"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
L_.str.2:                               ## @.str.2
	.asciz	"read"

L_.str.3:                               ## @.str.3
	.asciz	"writ"

L_.str.4:                               ## @.str.4
	.asciz	"s"

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"from"

L_.str.7:                               ## @.str.7
	.asciz	"to"

L_.str.8:                               ## @.str.8
	.asciz	"transfer complete\n"

	.comm	_I2C_TAR_PWIC,4,2               ## @I2C_TAR_PWIC
	.no_dead_strip	_puv3_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function puv3_i2c_xfer
_puv3_i2c_xfer:                         ; @puv3_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _I2C_ENABLE_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_ENABLE_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _I2C_ENABLE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _I2C_ENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_writel
Lloh5:
	adrp	x8, _I2C_CON_MASTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_CON_MASTER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _I2C_CON_SPEED_STD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_CON_SPEED_STD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _I2C_CON_SLAVEDISABLE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _I2C_CON_SLAVEDISABLE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh13:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh14:
	adrp	x8, _I2C_CON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2C_CON@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_writel
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _I2C_TAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2C_TAR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_writel
Lloh20:
	adrp	x8, _I2C_ENABLE_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_ENABLE_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_writel
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w24, #0
Lloh25:
	adrp	x25, _I2C_M_RD@GOTPAGE
Lloh26:
	ldr	x25, [x25, _I2C_M_RD@GOTPAGEOFF]
Lloh27:
	adrp	x26, l_.str.4@PAGE
Lloh28:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh29:
	adrp	x27, l_.str.6@PAGE
Lloh30:
	add	x27, x27, l_.str.6@PAGEOFF
Lloh31:
	adrp	x28, l_.str.7@PAGE
Lloh32:
	add	x28, x28, l_.str.7@PAGEOFF
Lloh33:
	adrp	x22, l_.str.1@PAGE
Lloh34:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh35:
	adrp	x23, l_.str.8@PAGE
Lloh36:
	add	x23, x23, l_.str.8@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_xfer_write
	cbz	w0, LBB0_7
	b	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldp	w11, w9, [x19, #4]
	cmp	w9, #1
Lloh37:
	adrp	x10, l_.str.5@PAGE
Lloh38:
	add	x10, x10, l_.str.5@PAGEOFF
	csel	x10, x26, x10, gt
	ldr	w12, [x19]
	tst	w8, w11
Lloh39:
	adrp	x8, l_.str.2@PAGE
Lloh40:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh41:
	adrp	x11, l_.str.3@PAGE
Lloh42:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x8, x11, x8, eq
	csel	x11, x28, x27, eq
	stp	x11, x12, [sp, #32]
	stp	x24, x8, [sp]
	stp	x9, x10, [sp, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_dev_dbg
	ldr	w2, [x19, #8]
	cbz	w2, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x25]
	mov	x0, x21
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_xfer_read
	cbnz	w0, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_dev_dbg
	add	x19, x19, #24
	add	w24, w24, #1
	cmp	w20, w24
	b.ne	LBB0_3
; %bb.8:
	mov	x0, x20
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldr	w8, [x19]
Lloh43:
	adrp	x9, _I2C_TAR_PWIC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _I2C_TAR_PWIC@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	ldrb	w9, [x8]
	ldrb	w10, [x8, #1]
	strb	w10, [x8]
	ldr	x8, [x19, #16]
	strb	w9, [x8, #1]
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_ENABLE_DISABLE,4,2         ; @I2C_ENABLE_DISABLE
	.comm	_I2C_ENABLE,4,2                 ; @I2C_ENABLE
	.comm	_I2C_CON_MASTER,4,2             ; @I2C_CON_MASTER
	.comm	_I2C_CON_SPEED_STD,4,2          ; @I2C_CON_SPEED_STD
	.comm	_I2C_CON_SLAVEDISABLE,4,2       ; @I2C_CON_SLAVEDISABLE
	.comm	_I2C_CON,4,2                    ; @I2C_CON
	.comm	_I2C_TAR,4,2                    ; @I2C_TAR
	.comm	_I2C_ENABLE_ENABLE,4,2          ; @I2C_ENABLE_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"puv3_i2c_xfer: processing %d messages:\n"

l_.str.1:                               ; @.str.1
	.asciz	" #%d: %sing %d byte%s %s 0x%02x\n"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
l_.str.2:                               ; @.str.2
	.asciz	"read"

l_.str.3:                               ; @.str.3
	.asciz	"writ"

l_.str.4:                               ; @.str.4
	.asciz	"s"

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"from"

l_.str.7:                               ; @.str.7
	.asciz	"to"

l_.str.8:                               ; @.str.8
	.asciz	"transfer complete\n"

	.comm	_I2C_TAR_PWIC,4,2               ; @I2C_TAR_PWIC
	.no_dead_strip	_puv3_i2c_xfer
.subsections_via_symbols
