	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_xfer
_mpc_xfer:                              ## @mpc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mpc_i2c_start
	movq	_MPC_I2C_SR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readb
	movq	_CSR_MBB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_current@GOTPCREL(%rip), %r12
	movq	_HZ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r13), %rsi
	addq	%r14, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	_MPC_I2C_SR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readb
	movq	_CSR_MBB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
LBB0_5:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.6:
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$12, %rbx
	movl	$1, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leaq	L_.str.4(%rip), %rdx
	andl	-12(%rbx), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.3(%rip), %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	movl	-8(%rbx), %ecx
	movl	(%rbx), %r8d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %eax
	movl	(%rbx), %esi
	movl	-8(%rbx), %ecx
	movl	-4(%rbx), %edx
	testl	%eax, -12(%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %r8d
	callq	_mpc_read
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %r8d
	callq	_mpc_write
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	addq	$16, %rbx
	leaq	1(%r12), %rax
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%rax, %r12
	jb	LBB0_7
LBB0_14:
	movq	%r15, %rdi
	callq	_mpc_i2c_stop
	testl	%r14d, %r14d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovsl	%r14d, %eax
	movl	%eax, %r14d
	jmp	LBB0_21
LBB0_15:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_writeccr
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	%r15, %rdi
	callq	_mpc_i2c_stop
	jmp	LBB0_21
LBB0_17:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_MPC_I2C_SR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readb
	movq	_CSR_MCF@GOTPCREL(%rip), %rcx
	movq	_CSR_MBB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CSR_RXAK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_mpc_i2c_fixup
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MPC_I2C_SR,8,3                 ## @MPC_I2C_SR
	.comm	_CSR_MBB,4,2                    ## @CSR_MBB
	.comm	_current,4,2                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupted\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_HZ,8,3                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"timeout\n"

	.comm	_CSR_MCF,4,2                    ## @CSR_MCF
	.comm	_CSR_RXAK,4,2                   ## @CSR_RXAK
	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"Doing %s %d bytes to 0x%02x - %d of %d messages\n"

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

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

	.no_dead_strip	_mpc_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_xfer
_mpc_xfer:                              ; @mpc_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	x22, x1
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x23, [x21]
	bl	_i2c_get_adapdata
	mov	x19, x0
	bl	_mpc_i2c_start
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x25, _MPC_I2C_SR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MPC_I2C_SR@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readb
Lloh4:
	adrp	x24, _CSR_MBB@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CSR_MBB@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh6:
	adrp	x26, _current@GOTPAGE
Lloh7:
	ldr	x26, [x26, _current@GOTPAGEOFF]
Lloh8:
	adrp	x27, _HZ@GOTPAGE
Lloh9:
	ldr	x27, [x27, _HZ@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_signal_pending
	cbnz	x0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21]
	ldr	x8, [x27]
	add	x1, x8, x23
	bl	_time_after
	cbnz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_schedule
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readb
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_5:
	cmp	w20, #0
	b.le	LBB0_13
; %bb.6:
	mov	x21, #0
	mov	w24, w20
	add	x25, x22, #12
Lloh10:
	adrp	x26, _I2C_M_RD@GOTPAGE
Lloh11:
	ldr	x26, [x26, _I2C_M_RD@GOTPAGEOFF]
Lloh12:
	adrp	x28, l_.str.4@PAGE
Lloh13:
	add	x28, x28, l_.str.4@PAGEOFF
Lloh14:
	adrp	x22, l_.str.2@PAGE
Lloh15:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w8, [x26]
	ldp	w9, w10, [x25, #-12]
	tst	w8, w9
Lloh16:
	adrp	x8, l_.str.3@PAGE
Lloh17:
	add	x8, x8, l_.str.3@PAGEOFF
	csel	x8, x28, x8, eq
	add	x27, x21, #1
	ldr	w9, [x25]
	stp	x27, x20, [sp, #24]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
	mov	x1, x22
	bl	_dev_dbg
	ldr	w8, [x26]
	ldp	w2, w1, [x25, #-4]
	ldp	w9, w3, [x25, #-12]
	mov	x0, x19
	mov	x4, x21
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_mpc_read
	mov	x23, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_mpc_write
	mov	x23, x0
	tbnz	w0, #31, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #16
	add	x21, x21, #1
	cmp	x27, x24
	b.lo	LBB0_7
LBB0_11:
	mov	x0, x19
	bl	_mpc_i2c_stop
	cmp	w23, #0
	csel	w20, w23, w20, lt
	b	LBB0_18
LBB0_12:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #0
	bl	_writeccr
Lloh20:
	adrp	x8, _EINTR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
	mov	x0, x19
	bl	_mpc_i2c_stop
	b	LBB0_18
LBB0_14:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readb
Lloh24:
	adrp	x8, _CSR_MCF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CSR_MCF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _CSR_RXAK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CSR_RXAK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_mpc_i2c_fixup
LBB0_16:
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_18:
	mov	x0, x20
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MPC_I2C_SR,8,3                 ; @MPC_I2C_SR
	.comm	_CSR_MBB,4,2                    ; @CSR_MBB
	.comm	_current,4,2                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupted\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_HZ,8,3                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"timeout\n"

	.comm	_CSR_MCF,4,2                    ; @CSR_MCF
	.comm	_CSR_RXAK,4,2                   ; @CSR_RXAK
	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"Doing %s %d bytes to 0x%02x - %d of %d messages\n"

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

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

	.no_dead_strip	_mpc_xfer
.subsections_via_symbols
