	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_pio_xfer
_i2c_pxa_pio_xfer:                      ## @i2c_pxa_pio_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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	__ICR
	movl	%eax, %edi
	callq	_readl
	movq	_ICR_IUE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_i2c_pxa_reset
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r12d
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.3:
	addq	$4, -48(%rbp)                   ## 8-byte Folded Spill
	incl	%r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%r12d
	testl	%r12d, %r12d
	jle	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_i2c_pxa_do_pio_xfer
	movl	%eax, %r13d
	movq	_I2C_RETRY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_i2c_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_i2c_pxa_scream_blue_murder
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_i2c_pxa_set_slave
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICR_IUE,4,2                    ## @ICR_IUE
	.comm	_I2C_RETRY,4,2                  ## @I2C_RETRY
	.comm	_i2c_debug,8,3                  ## @i2c_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Retrying transmission\n"

L_.str.1:                               ## @.str.1
	.asciz	"exhausted retries"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_i2c_pxa_pio_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pxa_pio_xfer
_i2c_pxa_pio_xfer:                      ; @i2c_pxa_pio_xfer
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	__ICR
	bl	_readl
Lloh0:
	adrp	x8, _ICR_IUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICR_IUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x22]
	tbz	w8, #31, LBB0_3
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_i2c_pxa_reset
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_8
LBB0_3:
	add	x22, x22, #4
	add	w25, w8, #1
Lloh3:
	adrp	x26, _I2C_RETRY@GOTPAGE
Lloh4:
	ldr	x26, [x26, _I2C_RETRY@GOTPAGEOFF]
Lloh5:
	adrp	x27, _i2c_debug@GOTPAGE
Lloh6:
	ldr	x27, [x27, _i2c_debug@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #100
	bl	_udelay
	sub	w25, w25, #1
	cmp	w25, #0
	b.le	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_i2c_pxa_do_pio_xfer
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_dev_dbg
	b	LBB0_4
LBB0_8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_i2c_pxa_scream_blue_murder
Lloh11:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_9:
	mov	x24, x0
LBB0_10:
	mov	x0, x19
	mov	x1, x24
	bl	_i2c_pxa_set_slave
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ICR_IUE,4,2                    ; @ICR_IUE
	.comm	_I2C_RETRY,4,2                  ; @I2C_RETRY
	.comm	_i2c_debug,8,3                  ; @i2c_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Retrying transmission\n"

l_.str.1:                               ; @.str.1
	.asciz	"exhausted retries"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_i2c_pxa_pio_xfer
.subsections_via_symbols
