	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function icn8505_write_xfer
LCPI0_0:
	.long	4294967288                      ## 0xfffffff8
	.long	4294967280                      ## 0xfffffff0
	.long	4294967272                      ## 0xffffffe8
	.long	4294967264                      ## 0xffffffe0
LCPI0_1:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_2:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_3:
	.long	4294967256                      ## 0xffffffd8
	.long	4294967256                      ## 0xffffffd8
	.long	4294967256                      ## 0xffffffd8
	.long	4294967256                      ## 0xffffffd8
LCPI0_4:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_5:
	.long	4294967224                      ## 0xffffffb8
	.long	4294967224                      ## 0xffffffb8
	.long	4294967224                      ## 0xffffffb8
	.long	4294967224                      ## 0xffffffb8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_icn8505_write_xfer:                    ## @icn8505_write_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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -208(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, -200(%rbp)                ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-192(%rbp), %rax
	leal	7(%r15), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	movq	%rax, -224(%rbp)
	sarl	$3, %ebx
	leal	(%rbx,%r13), %eax
	movl	%eax, -216(%rbp)
	movl	%esi, -212(%rbp)
	xorl	%edi, %edi
	cmpl	$33, %r9d
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_1:
	movl	%r12d, -196(%rbp)               ## 4-byte Spill
	cmpl	$8, %r15d
	movl	-200(%rbp), %r12d               ## 4-byte Reload
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	jl	LBB0_14
## %bb.2:
	movl	%ebx, %r8d
	cmpl	$4, %ebx
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	movl	%r8d, %eax
	andl	$-4, %eax
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm12               ## xmm12 = xmm0[0,0,0,0]
	movd	%r12d, %xmm0
	pshufd	$0, %xmm0, %xmm13               ## xmm13 = xmm0[0,0,0,0]
	leaq	-4(%rax), %rcx
	movq	%rcx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r9, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	xorl	%ecx, %ecx
	pcmpeqd	%xmm8, %xmm8
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [4294967256,4294967256,4294967256,4294967256]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm7
	pxor	%xmm8, %xmm7
	pslld	$3, %xmm7
	paddd	%xmm12, %xmm7
	pshuflw	$254, %xmm7, %xmm3              ## xmm3 = xmm7[2,3,3,3,4,5,6,7]
	movdqa	%xmm13, %xmm0
	psrad	%xmm3, %xmm0
	pshufd	$238, %xmm7, %xmm3              ## xmm3 = xmm7[2,3,2,3]
	pshuflw	$254, %xmm3, %xmm6              ## xmm6 = xmm3[2,3,3,3,4,5,6,7]
	movdqa	%xmm13, %xmm5
	psrad	%xmm6, %xmm5
	pshuflw	$84, %xmm7, %xmm6               ## xmm6 = xmm7[0,1,1,1,4,5,6,7]
	movdqa	%xmm13, %xmm7
	psrad	%xmm6, %xmm7
	pblendw	$15, %xmm0, %xmm5               ## xmm5 = xmm0[0,1,2,3],xmm5[4,5,6,7]
	pshuflw	$84, %xmm3, %xmm0               ## xmm0 = xmm3[0,1,1,1,4,5,6,7]
	movdqa	%xmm13, %xmm3
	psrad	%xmm0, %xmm3
	pblendw	$15, %xmm7, %xmm3               ## xmm3 = xmm7[0,1,2,3],xmm3[4,5,6,7]
	pblendw	$204, %xmm5, %xmm3              ## xmm3 = xmm3[0,1],xmm5[2,3],xmm3[4,5],xmm5[6,7]
	movdqa	%xmm2, %xmm7
	pslld	$3, %xmm7
	movdqa	%xmm12, %xmm0
	psubd	%xmm7, %xmm0
	paddd	%xmm9, %xmm0
	pshuflw	$254, %xmm0, %xmm5              ## xmm5 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm13, %xmm6
	psrad	%xmm5, %xmm6
	pshufd	$238, %xmm0, %xmm5              ## xmm5 = xmm0[2,3,2,3]
	pshuflw	$254, %xmm5, %xmm1              ## xmm1 = xmm5[2,3,3,3,4,5,6,7]
	movdqa	%xmm13, %xmm4
	psrad	%xmm1, %xmm4
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm13, %xmm1
	psrad	%xmm0, %xmm1
	pand	%xmm11, %xmm3
	movdqa	%xmm3, -192(%rbp,%rcx,4)
	pshuflw	$84, %xmm5, %xmm0               ## xmm0 = xmm5[0,1,1,1,4,5,6,7]
	movdqa	%xmm13, %xmm3
	psrad	%xmm0, %xmm3
	pblendw	$15, %xmm6, %xmm4               ## xmm4 = xmm6[0,1,2,3],xmm4[4,5,6,7]
	pblendw	$15, %xmm1, %xmm3               ## xmm3 = xmm1[0,1,2,3],xmm3[4,5,6,7]
	pblendw	$204, %xmm4, %xmm3              ## xmm3 = xmm3[0,1],xmm4[2,3],xmm3[4,5],xmm4[6,7]
	pand	%xmm11, %xmm3
	movdqa	%xmm3, -176(%rbp,%rcx,4)
	addq	$8, %rcx
	paddd	%xmm10, %xmm2
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	movdqa	LCPI0_5(%rip), %xmm2            ## xmm2 = [4294967224,4294967224,4294967224,4294967224]
	psubd	%xmm7, %xmm2
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	paddd	%xmm12, %xmm2
	pshuflw	$254, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,3,3,4,5,6,7]
	movdqa	%xmm13, %xmm1
	psrad	%xmm0, %xmm1
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	pshuflw	$254, %xmm0, %xmm3              ## xmm3 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm13, %xmm4
	psrad	%xmm3, %xmm4
	pblendw	$15, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,2,3],xmm4[4,5,6,7]
	pshuflw	$84, %xmm2, %xmm1               ## xmm1 = xmm2[0,1,1,1,4,5,6,7]
	movdqa	%xmm13, %xmm2
	psrad	%xmm1, %xmm2
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	psrad	%xmm0, %xmm13
	pblendw	$15, %xmm2, %xmm13              ## xmm13 = xmm2[0,1,2,3],xmm13[4,5,6,7]
	pblendw	$204, %xmm4, %xmm13             ## xmm13 = xmm13[0,1],xmm4[2,3],xmm13[4,5],xmm4[6,7]
	pand	LCPI0_2(%rip), %xmm13
	movdqa	%xmm13, -192(%rbp,%rcx,4)
LBB0_11:
	cmpq	%r8, %rax
	je	LBB0_14
LBB0_12:
	leal	(,%rax,8), %ecx
	subl	%ecx, %r15d
	addl	$-8, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movl	%r15d, %ecx
	sarl	%cl, %edi
	movzbl	%dil, %ecx
	movl	%ecx, -192(%rbp,%rax,4)
	incq	%rax
	addl	$-8, %r15d
	cmpq	%rax, %r8
	jne	LBB0_13
LBB0_14:
	movslq	%ebx, %rax
	leaq	-192(,%rax,4), %rdi
	addq	%rbp, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movl	4(%r14), %edi
	leaq	-224(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	LBB0_17
## %bb.15:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	cmpl	$0, 16(%rbp)
	jne	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	-196(%rbp), %edx                ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_dev_err
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [4294967288,4294967280,4294967272,4294967264]
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing addr %#x reg %#x: %d\n"

	.no_dead_strip	_icn8505_write_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function icn8505_write_xfer
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_icn8505_write_xfer:                    ; @icn8505_write_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x8, sp, #28
	str	x8, [sp, #8]
	add	w8, w3, #7
	cmp	w3, #0
	csel	w8, w8, w3, lt
	asr	w26, w8, #3
	add	w8, w26, w5
	stp	w8, w1, [sp, #16]
	cmp	w5, #32
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_2:
	cmp	w25, #8
	b.lt	LBB0_10
; %bb.3:
	cmp	w26, #16
	b.hs	LBB0_5
; %bb.4:
	mov	x8, #0
	b	LBB0_8
LBB0_5:
	and	x8, x26, #0xfffffff0
	dup.4s	v0, w25
	dup.4s	v1, w19
	sub	w9, w25, #40
	dup.4s	v2, w9
	sub	w9, w25, #72
	dup.4s	v3, w9
	sub	w9, w25, #104
	dup.4s	v4, w9
	add	x9, sp, #28
	add	x9, x9, #32
Lloh6:
	adrp	x10, lCPI0_0@PAGE
Lloh7:
	ldr	q5, [x10, lCPI0_0@PAGEOFF]
	movi.2d	v6, #0x0000ff000000ff
	movi.4s	v7, #16
	mov	x10, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mvn.16b	v16, v5
	shl.4s	v16, v16, #3
	shl.4s	v17, v5, #3
	add.4s	v16, v16, v0
	neg.4s	v16, v16
	sshl.4s	v16, v1, v16
	sub.4s	v18, v17, v2
	sshl.4s	v18, v1, v18
	sub.4s	v19, v17, v3
	sshl.4s	v19, v1, v19
	sub.4s	v17, v17, v4
	sshl.4s	v17, v1, v17
	and.16b	v16, v16, v6
	and.16b	v18, v18, v6
	and.16b	v19, v19, v6
	and.16b	v17, v17, v6
	stp	q16, q18, [x9, #-32]
	stp	q19, q17, [x9], #64
	add.4s	v5, v5, v7
	subs	x10, x10, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x26
	b.eq	LBB0_10
LBB0_8:
	sub	w9, w25, w8, lsl #3
	sub	w9, w9, #8
	add	x10, sp, #28
	add	x10, x10, x8, lsl #2
	sub	x8, x26, x8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w19, w9
	and	w11, w11, #0xff
	str	w11, [x10], #4
	sub	w9, w9, #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	add	x8, sp, #28
	add	x0, x8, w26, sxtw #2
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x22, #4]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.11:
	mov	w23, #0
	b	LBB0_14
LBB0_12:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w23, w0, w8, lt
	cbnz	w21, LBB0_14
; %bb.13:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	mov	x4, x23
	bl	_dev_err
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x23
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing addr %#x reg %#x: %d\n"

	.no_dead_strip	_icn8505_write_xfer
.subsections_via_symbols
