	.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_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_MV64XXX_I2C_REG_CONTROL_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	4(%rbx), %edi
	jmp	LBB0_4
LBB0_9:
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movslq	40(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 40(%rbx)
	movl	(%rax,%rcx,4), %edi
	jmp	LBB0_7
LBB0_8:
	movl	12(%rbx), %edi
	jmp	LBB0_7
LBB0_6:
	movl	8(%rbx), %edi
LBB0_7:
	movq	_MV64XXX_I2C_REG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	jmp	LBB0_3
LBB0_10:
	movq	_MV64XXX_I2C_REG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	48(%rbx), %rcx
	movq	(%rcx), %rcx
	movslq	40(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 40(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_12
LBB0_2:
	movq	_MV64XXX_I2C_REG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	48(%rbx), %rcx
	movq	(%rcx), %rcx
	movslq	40(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 40(%rbx)
	movl	%eax, (%rcx,%rdx,4)
LBB0_3:
	movl	4(%rbx), %edi
LBB0_4:
	movq	_MV64XXX_I2C_REG_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_11:
	leaq	36(%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, 32(%rbx)
LBB0_12:
	movq	_MV64XXX_I2C_REG_CONTROL_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	4(%rbx), %edi
	movl	%edi, 4(%rbx)
	movq	_MV64XXX_I2C_REG_CONTROL_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MV64XXX_I2C_REG_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	$0, 20(%rbx)
	addq	$16, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_MV64XXX_I2C_REG_CONTROL,8,3    ## @MV64XXX_I2C_REG_CONTROL
	.comm	_MV64XXX_I2C_REG_CONTROL_START,4,2 ## @MV64XXX_I2C_REG_CONTROL_START
	.comm	_MV64XXX_I2C_REG_DATA,8,3       ## @MV64XXX_I2C_REG_DATA
	.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_11
; %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]
Lloh2:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_START@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_START@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_10
LBB0_3:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #40]
	add	w10, w9, #1
	str	w10, [x19, #40]
	ldr	w0, [x8, x9, lsl #2]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #12]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #8]
LBB0_6:
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _MV64XXX_I2C_REG_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MV64XXX_I2C_REG_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _MV64XXX_I2C_REG_DATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MV64XXX_I2C_REG_DATA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #40]
	add	w10, w9, #1
	str	w10, [x19, #40]
	str	w0, [x8, x9, lsl #2]
	b	LBB0_12
LBB0_8:
	ldr	x8, [x19, #24]
Lloh11:
	adrp	x9, _MV64XXX_I2C_REG_DATA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MV64XXX_I2C_REG_DATA@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #40]
	add	w10, w9, #1
	str	w10, [x19, #40]
	str	w0, [x8, x9, lsl #2]
LBB0_9:
	ldr	w0, [x19, #4]
LBB0_10:
	ldr	x8, [x19, #24]
Lloh14:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	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_11:
	add	x0, x19, #36
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #32]
LBB0_12:
Lloh22:
	adrp	x8, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
Lloh25:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #24]
Lloh28:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	str	wzr, [x19, #20]
	add	x0, x19, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_MV64XXX_I2C_REG_CONTROL,8,3    ; @MV64XXX_I2C_REG_CONTROL
	.comm	_MV64XXX_I2C_REG_CONTROL_START,4,2 ; @MV64XXX_I2C_REG_CONTROL_START
	.comm	_MV64XXX_I2C_REG_DATA,8,3       ; @MV64XXX_I2C_REG_DATA
	.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
