	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_reset
_i2c_pxa_reset:                         ## @i2c_pxa_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_i2c_pxa_abort
	movq	_ICR_UR@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	__ICR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_I2C_ISR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	__ISR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r14, %rdi
	callq	__ICR
	movl	%eax, %edi
	callq	_readl
	movl	(%r15), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r14, %rdi
	callq	__ICR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	__ISAR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_I2C_ICR_INIT@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%r14)
	movl	$0, %ebx
	je	LBB0_2
## %bb.1:
	movq	_ICR_FM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	__ICR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_i2c_pxa_set_slave
	movq	%r14, %rdi
	callq	__ICR
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %ebx
	movq	_ICR_IUE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	__ICR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	$100, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting I2C Controller Unit\n"

	.comm	_ICR_UR,4,2                     ## @ICR_UR
	.comm	_I2C_ISR_INIT,4,2               ## @I2C_ISR_INIT
	.comm	_I2C_ICR_INIT,4,2               ## @I2C_ICR_INIT
	.comm	_ICR_FM,4,2                     ## @ICR_FM
	.comm	_ICR_IUE,4,2                    ## @ICR_IUE
	.comm	_ICR_ALDIE,4,2                  ## @ICR_ALDIE
	.comm	_ICR_SADIE,4,2                  ## @ICR_SADIE
	.comm	_ICR_SSDIE,4,2                  ## @ICR_SSDIE
	.no_dead_strip	_i2c_pxa_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pxa_reset
_i2c_pxa_reset:                         ; @i2c_pxa_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_i2c_pxa_abort
Lloh2:
	adrp	x21, _ICR_UR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ICR_UR@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
Lloh4:
	adrp	x8, _I2C_ISR_INIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I2C_ISR_INIT@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	mov	x0, x19
	bl	__ISR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	bl	__ICR
	bl	_readl
	ldr	w8, [x21]
	bic	w20, w0, w8
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	ldr	w20, [x19]
	mov	x0, x19
	bl	__ISAR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
Lloh7:
	adrp	x8, _I2C_ICR_INIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_ICR_INIT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
Lloh10:
	adrp	x10, _ICR_FM@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ICR_FM@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w20, w9, w8
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	mov	w1, #0
	bl	_i2c_pxa_set_slave
	mov	x0, x19
	bl	__ICR
	bl	_readl
Lloh13:
	adrp	x8, _ICR_IUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICR_IUE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	w0, #100
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting I2C Controller Unit\n"

	.comm	_ICR_UR,4,2                     ; @ICR_UR
	.comm	_I2C_ISR_INIT,4,2               ; @I2C_ISR_INIT
	.comm	_I2C_ICR_INIT,4,2               ; @I2C_ICR_INIT
	.comm	_ICR_FM,4,2                     ; @ICR_FM
	.comm	_ICR_IUE,4,2                    ; @ICR_IUE
	.comm	_ICR_ALDIE,4,2                  ; @ICR_ALDIE
	.comm	_ICR_SADIE,4,2                  ; @ICR_SADIE
	.comm	_ICR_SSDIE,4,2                  ; @ICR_SSDIE
	.no_dead_strip	_i2c_pxa_reset
.subsections_via_symbols
