	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_do_xfer
_i2c_pxa_do_xfer:                       ## @i2c_pxa_do_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_i2c_pxa_wait_bus_not_busy
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	addq	$40, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_i2c_pxa_set_master
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	addq	$40, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%r12, 32(%rbx)
	movl	%r15d, (%rbx)
	movl	$0, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_i2c_pxa_start_message
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	cmpl	$0, (%rbx)
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	callq	_wait_event_timeout
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_i2c_pxa_stop_message
	movl	4(%rbx), %r14d
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_i2c_pxa_scream_blue_murder
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_pxa: timeout waiting for bus free\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2c_pxa_set_master: error %d\n"

	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"timeout"

	.no_dead_strip	_i2c_pxa_do_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_do_xfer
_i2c_pxa_do_xfer:                       ; @i2c_pxa_do_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_i2c_pxa_wait_bus_not_busy
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x19, #40
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_i2c_pxa_set_master
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	add	x0, x19, #40
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_4:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irq
	stp	xzr, x22, [x19, #24]
	stp	w21, wzr, [x19]
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_i2c_pxa_start_message
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w0, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w1, eq
Lloh4:
	adrp	x8, _HZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #2
	bl	_wait_event_timeout
	mov	x21, x0
	mov	x0, x19
	bl	_i2c_pxa_stop_message
	ldr	w20, [x19, #4]
	cbnz	x21, LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_i2c_pxa_scream_blue_murder
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_pxa: timeout waiting for bus free\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2c_pxa_set_master: error %d\n"

	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"timeout"

	.no_dead_strip	_i2c_pxa_do_xfer
.subsections_via_symbols
