	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blinkm_transfer_hw
_blinkm_transfer_hw:                    ## @blinkm_transfer_hw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	leal	-128(%rbx), %eax
	cmpl	$16, %eax
	ja	LBB0_12
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_5:
	movl	76(%r15), %eax
	movq	8(%r15), %rdx
	movl	%eax, (%rdx)
	movl	72(%r15), %eax
	movl	%eax, 4(%rdx)
	movl	68(%r15), %eax
	movl	%eax, 8(%rdx)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_blinkm_write
	jmp	LBB0_6
LBB0_13:
	movl	60(%r15), %eax
	movq	8(%r15), %rdx
	movl	%eax, (%rdx)
	movl	52(%r15), %eax
	movl	%eax, 4(%rdx)
	movl	44(%r15), %eax
	movl	%eax, 8(%rdx)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_blinkm_write
	movl	60(%r15), %eax
	movl	%eax, 64(%r15)
	movl	44(%r15), %eax
	movl	52(%r15), %ecx
	movl	%ecx, 56(%r15)
	movl	%eax, 48(%r15)
	jmp	LBB0_14
LBB0_8:
	movq	%r14, %rdi
	movl	$129, %esi
	xorl	%edx, %edx
	callq	_blinkm_write
	jmp	LBB0_14
LBB0_7:
	movl	40(%r15), %eax
	movq	8(%r15), %rdx
	movl	%eax, (%rdx)
	movl	36(%r15), %eax
	movl	%eax, 4(%rdx)
	movl	32(%r15), %eax
	movl	%eax, 8(%rdx)
	movq	%r14, %rdi
	movl	$136, %esi
	callq	_blinkm_write
	jmp	LBB0_14
LBB0_9:
	movl	28(%r15), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	24(%r15), %eax
	movl	%eax, 4(%rcx)
	movl	20(%r15), %eax
	movl	%eax, 8(%rcx)
	movq	%r14, %rdi
	movl	$139, %esi
	xorl	%edx, %edx
	callq	_blinkm_write
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	movl	$139, %esi
	callq	_blinkm_read
LBB0_6:
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 28(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 24(%r15)
	movl	8(%rax), %eax
	movl	%eax, 20(%r15)
	jmp	LBB0_14
LBB0_10:
	movl	16(%r15), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	$140, %esi
	xorl	%edx, %edx
	callq	_blinkm_write
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	movl	$140, %esi
	callq	_blinkm_read
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_14:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BlinkM: cmd %d not implemented yet.\n"

L_.str.1:                               ## @.str.1
	.asciz	"BlinkM: unknown command %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_blinkm_transfer_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blinkm_transfer_hw
_blinkm_transfer_hw:                    ; @blinkm_transfer_hw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_4
; %bb.1:
	sub	w8, w21, #128
	cmp	w8, #16
	b.hi	LBB0_15
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_13
LBB0_4:
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	ldr	w8, [x19, #76]
	ldr	x2, [x19, #8]
	str	w8, [x2]
	ldr	w8, [x19, #72]
	str	w8, [x2, #4]
	ldr	w8, [x19, #68]
	str	w8, [x2, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_blinkm_write
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19, #60]
	ldr	x2, [x19, #8]
	str	w8, [x2]
	ldr	w8, [x19, #52]
	str	w8, [x2, #4]
	ldr	w8, [x19, #44]
	str	w8, [x2, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_blinkm_write
	ldr	w8, [x19, #60]
	str	w8, [x19, #64]
	ldr	w8, [x19, #52]
	str	w8, [x19, #56]
	ldr	w8, [x19, #44]
	str	w8, [x19, #48]
	b	LBB0_13
LBB0_8:
	mov	x0, x20
	mov	w1, #129
	mov	x2, #0
	bl	_blinkm_write
	b	LBB0_13
LBB0_9:
	ldr	w8, [x19, #40]
	ldr	x2, [x19, #8]
	str	w8, [x2]
	ldr	w8, [x19, #36]
	str	w8, [x2, #4]
	ldr	w8, [x19, #32]
	str	w8, [x2, #8]
	mov	x0, x20
	mov	w1, #136
	bl	_blinkm_write
	b	LBB0_13
LBB0_10:
	ldr	w8, [x19, #28]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	w8, [x19, #24]
	str	w8, [x9, #4]
	ldr	w8, [x19, #20]
	str	w8, [x9, #8]
	mov	x0, x20
	mov	w1, #139
	mov	x2, #0
	bl	_blinkm_write
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	w1, #139
	bl	_blinkm_read
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	str	w9, [x19, #28]
	ldr	w9, [x8, #4]
	str	w9, [x19, #24]
	ldr	w8, [x8, #8]
	str	w8, [x19, #20]
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #16]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	mov	x0, x20
	mov	w1, #140
	mov	x2, #0
	bl	_blinkm_write
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	w1, #140
	bl	_blinkm_read
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	bl	_mutex_unlock
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BlinkM: cmd %d not implemented yet.\n"

l_.str.1:                               ; @.str.1
	.asciz	"BlinkM: unknown command %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_blinkm_transfer_hw
.subsections_via_symbols
