	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18218_wr_regs
_tda18218_wr_regs:                      ## @tda18218_wr_regs
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_XFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	8(%r15), %rcx
	movl	4(%rcx), %eax
	movl	%eax, -64(%rbp)
	leal	1(%r12), %eax
	cltq
	cmpq	%rax, %rbx
	jae	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
	movl	$0, %eax
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.3:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r14), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r13, %r14
	addq	$4, %r14
	movl	(%rcx), %eax
	movq	%r12, %rbx
                                        ## kill: def $r12d killed $r12d killed $r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %edx
	cmpl	%eax, %r12d
	cmovll	%r12d, %edx
	leal	1(%rdx), %eax
	movl	%eax, -72(%rbp)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	subl	%r12d, %eax
	movl	%eax, (%r13)
	movl	%ebx, %eax
	subl	%r12d, %eax
	cltq
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	(%r15), %rdi
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %eax
	subl	%eax, %r12d
	incl	%r12d
	testl	%r12d, %r12d
	jg	LBB0_4
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %r12
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	xorl	%ebx, %ebx
LBB0_8:
	movq	(%r15), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XFER_SIZE,4,2              ## @MAX_XFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: i2c wr reg=%04x: len=%d is too big!\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s: i2c wr failed=%d reg=%02x len=%d\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_tda18218_wr_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18218_wr_regs
_tda18218_wr_regs:                      ; @tda18218_wr_regs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_XFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_XFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x24, x9, x10
	mov	sp, x24
	stp	x24, xzr, [x29, #-96]
	ldr	x9, [x0, #8]
	ldr	w10, [x9, #4]
	stur	w10, [x29, #-80]
	add	w10, w3, #1
	cmp	x8, w10, sxtw
	b.hs	LBB0_2
; %bb.1:
	ldr	x0, [x21]
Lloh8:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x20
	bl	_dev_warn
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.3:
	add	w25, w20, w19
	add	x23, x24, #4
	ldr	w8, [x9]
	mov	x26, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #1
	cmp	w26, w8
	csel	w2, w26, w9, lt
	add	w8, w2, #1
	stur	w8, [x29, #-88]
	sub	w8, w25, w26
	str	w8, [x24]
	sub	w8, w20, w26
	add	x1, x22, w8, sxtw #2
	mov	x0, x23
	bl	_memcpy
	ldr	x0, [x21]
	sub	x1, x29, #96
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	sub	w9, w26, w8
	add	w26, w9, #1
	cmp	w26, #0
	b.gt	LBB0_4
; %bb.6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	mov	w3, #0
	b	LBB0_9
LBB0_8:
	mov	x3, x0
LBB0_9:
	ldr	x0, [x21]
Lloh15:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x20, [sp, #-16]!
	mov	x4, x19
	bl	_dev_warn
	add	sp, sp, #16
Lloh20:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XFER_SIZE,4,2              ; @MAX_XFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: i2c wr reg=%04x: len=%d is too big!\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s: i2c wr failed=%d reg=%02x len=%d\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_tda18218_wr_regs
.subsections_via_symbols
