	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv64xxx_i2c_do_action
_mv64xxx_i2c_do_action:                 ## @mv64xxx_i2c_do_action
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	leal	-128(%rdx), %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
	callq	_BUG_ON
	incl	80(%rbx)
	decl	4(%rbx)
	movq	%rbx, %rdi
	callq	_mv64xxx_i2c_send_start
	cmpl	$0, 64(%rbx)
	je	LBB0_4
## %bb.3:
	movl	$5, %edi
	callq	_udelay
LBB0_4:
	xorl	%eax, %eax
	cmpl	$1, 4(%rbx)
	sete	%al
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	movq	40(%rbx), %rsi
	movq	72(%rbx), %rax
	movq	(%rax), %rax
	movslq	68(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 68(%rbx)
	movl	(%rax,%rcx,4), %edi
	jmp	LBB0_7
LBB0_8:
	movl	20(%rbx), %edi
	jmp	LBB0_6
LBB0_5:
	movl	16(%rbx), %edi
LBB0_6:
	movq	40(%rbx), %rsi
LBB0_7:
	addq	48(%rbx), %rsi
	callq	_writel
	jmp	LBB0_11
LBB0_12:
	movq	40(%rbx), %rdi
	addq	48(%rbx), %rdi
	callq	_readl
	movq	72(%rbx), %rcx
	movq	(%rcx), %rcx
	movslq	68(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 68(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movq	_MV64XXX_I2C_REG_CONTROL_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	12(%rbx), %edi
	movl	%edi, 12(%rbx)
	movq	_MV64XXX_I2C_REG_CONTROL_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	32(%rbx), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	movl	$0, 28(%rbx)
	cmpl	$0, 64(%rbx)
	je	LBB0_14
## %bb.13:
	movl	$5, %edi
	callq	_udelay
	jmp	LBB0_14
LBB0_10:
	movq	40(%rbx), %rdi
	addq	48(%rbx), %rdi
	callq	_readl
	movq	72(%rbx), %rcx
	movq	(%rcx), %rcx
	movslq	68(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 68(%rbx)
	movl	%eax, (%rcx,%rdx,4)
LBB0_11:
	movl	12(%rbx), %edi
	movq	32(%rbx), %rsi
	addq	48(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_15:
	leaq	60(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 56(%rbx)
LBB0_16:
	movq	_MV64XXX_I2C_REG_CONTROL_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	12(%rbx), %edi
	movl	%edi, 12(%rbx)
	movq	_MV64XXX_I2C_REG_CONTROL_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	32(%rbx), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	movl	$0, 28(%rbx)
LBB0_14:
	addq	$24, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MV64XXX_I2C_REG_CONTROL_INTEN,4,2 ## @MV64XXX_I2C_REG_CONTROL_INTEN
	.comm	_MV64XXX_I2C_REG_CONTROL_STOP,4,2 ## @MV64XXX_I2C_REG_CONTROL_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mv64xxx_i2c_do_action: Invalid action: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mv64xxx_i2c_do_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv64xxx_i2c_do_action
_mv64xxx_i2c_do_action:                 ; @mv64xxx_i2c_do_action
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w2, [x0]
	sub	w8, w2, #128
	cmp	w8, #8
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19, #80]
	add	w8, w8, #1
	str	w8, [x19, #80]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_mv64xxx_i2c_send_start
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w0, #5
	bl	_udelay
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	cset	w8, eq
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #68]
	add	w10, w9, #1
	str	w10, [x19, #68]
	ldr	w0, [x8, x9, lsl #2]
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #20]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #16]
LBB0_8:
	ldp	x9, x8, [x19, #40]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_12
LBB0_9:
	ldp	x9, x8, [x19, #40]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #68]
	add	w10, w9, #1
	str	w10, [x19, #68]
	str	w0, [x8, x9, lsl #2]
Lloh2:
	adrp	x8, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
Lloh5:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGEOFF]
	str	w8, [x19, #12]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #32]
	add	x1, x9, x8
	bl	_writel
	str	wzr, [x19, #28]
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_15
; %bb.10:
	mov	w0, #5
	bl	_udelay
	b	LBB0_15
LBB0_11:
	ldp	x9, x8, [x19, #40]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #68]
	add	w10, w9, #1
	str	w10, [x19, #68]
	str	w0, [x8, x9, lsl #2]
LBB0_12:
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #32]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_13:
	add	x0, x19, #60
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #56]
LBB0_14:
Lloh13:
	adrp	x8, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
Lloh16:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGEOFF]
	str	w8, [x19, #12]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #32]
	add	x1, x9, x8
	bl	_writel
	str	wzr, [x19, #28]
LBB0_15:
	add	x0, x19, #24
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_MV64XXX_I2C_REG_CONTROL_INTEN,4,2 ; @MV64XXX_I2C_REG_CONTROL_INTEN
	.comm	_MV64XXX_I2C_REG_CONTROL_STOP,4,2 ; @MV64XXX_I2C_REG_CONTROL_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mv64xxx_i2c_do_action: Invalid action: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mv64xxx_i2c_do_action
.subsections_via_symbols
