	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_write_regs            ## -- Begin function tda18271_write_regs
	.p2align	4, 0x90
_tda18271_write_regs:                   ## @tda18271_write_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TDA18271_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -120(%rbp)
	testl	%r12d, %r12d
	sete	%al
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r14), %ecx
	movslq	%ecx, %rcx
	cmpq	%rbx, %rcx
	seta	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_BUG_ON
	movl	$-129, %eax
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	addl	8(%r15), %eax
	movl	$39, %r15d
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.tda18271_write_regs(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
LBB0_2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_tda18271_i2c_gate_ctrl
	testl	%r12d, %r12d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
## %bb.3:
	movq	%r13, %rax
	orq	$1, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	1(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	49(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addq	$3, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
	cmpl	%r12d, %r15d
	cmovgel	%r12d, %r15d
	movb	%bl, (%r13)
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rcx
	decq	%rcx
	leal	1(%r15), %r8d
	movl	%r15d, %eax
	movl	$1, %edi
	cmpl	$8, %r15d
	jb	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx), %r10
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	subq	%r10, %rdx
	cmpq	$32, %rdx
	jb	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r11
	cmpl	$32, %eax
	jae	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r15), %r8d
	jmp	LBB0_29
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edx
	andl	$-32, %edx
	leaq	-32(%rdx), %rsi
	movq	%rsi, %r9
	shrq	$5, %r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r9, %rbx
	andq	$-2, %rbx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	%rcx, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%rsi,%rdi), %xmm0
	movups	-32(%rsi,%rdi), %xmm1
	movups	%xmm0, 1(%r13,%rdi)
	movups	%xmm1, 17(%r13,%rdi)
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, 33(%r13,%rdi)
	movups	%xmm1, 49(%r13,%rdi)
	addq	$64, %rdi
	addq	$-2, %rbx
	jne	LBB0_16
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r9b
	movq	%r11, %rbx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	orq	$1, %rdi
	leaq	(%rdi,%rcx), %r9
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movups	(%rsi,%r9), %xmm0
	movups	16(%rsi,%r9), %xmm1
	movups	%xmm0, (%r13,%rdi)
	movups	%xmm1, 16(%r13,%rdi)
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, %rax
	je	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	$24, %al
	je	LBB0_21
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %esi
	andl	$-8, %esi
	leaq	1(%rsi), %rdi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10,%rdx), %rbx
	movq	%rbx, 1(%r13,%rdx)
	addq	$8, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rsi, %rax
	movq	%r11, %rbx
	jne	LBB0_22
	jmp	LBB0_29
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	orq	$1, %rdx
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	movl	%eax, %esi
	subl	%edi, %esi
	movq	%rdi, %r9
	notq	%r9
	addq	%rax, %r9
	movq	%rbx, %r10
	andq	$3, %rsi
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx), %rbx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rdi), %edx
	movb	%dl, (%r13,%rdi)
	incq	%rdi
	decq	%rsi
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$3, %r9
	jae	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r10, %rbx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%r10, %rbx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-3(%rcx,%rdi), %edx
	movb	%dl, (%r13,%rdi)
	movzbl	-2(%rcx,%rdi), %edx
	movb	%dl, 1(%r13,%rdi)
	movzbl	-1(%rcx,%rdi), %edx
	movb	%dl, 2(%r13,%rdi)
	movzbl	(%rcx,%rdi), %edx
	movb	%dl, 3(%r13,%rdi)
	addq	$4, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, -128(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	12(%rax), %edi
	leaq	-136(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%r15d, %ebx
	subl	%r15d, %r12d
	jne	LBB0_4
LBB0_31:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_tda18271_i2c_gate_ctrl
	jmp	LBB0_32
LBB0_34:
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_tda18271_i2c_gate_ctrl
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_tda_err
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.33:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA18271_NUM_REGS,4,2          ## @TDA18271_NUM_REGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: idx = 0x%x, len = %d, i2c_transfer returned: %d\n"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.tda18271_write_regs
l_switch.table.tda18271_write_regs:
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_write_regs            ; -- Begin function tda18271_write_regs
	.p2align	2
_tda18271_write_regs:                   ; @tda18271_write_regs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x24, [x0]
	ldr	x25, [x24]
Lloh3:
	adrp	x8, _TDA18271_NUM_REGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDA18271_NUM_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	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, #0x1fffffff0
	sub	x26, x9, x10
	mov	sp, x26
	stp	x26, xzr, [x29, #-112]
	ldr	w9, [x24, #16]
	stur	w9, [x29, #-96]
	cmp	w2, #0
	add	w9, w2, w1
	sxtw	x9, w9
	ccmp	x9, x8, #2, ne
	cset	w0, hi
	bl	_BUG_ON
	ldr	w8, [x24, #8]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, l_switch.table.tda18271_write_regs@PAGE
Lloh9:
	add	x9, x9, l_switch.table.tda18271_write_regs@PAGEOFF
	ldr	w22, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w22, #39
LBB0_3:
	mov	x0, x20
	mov	w1, #1
	bl	_tda18271_i2c_gate_ctrl
	cbz	w21, LBB0_24
; %bb.4:
	add	x27, x26, #1
	add	x28, x25, #1
	add	x9, x26, #33
	add	x8, x25, #33
	stp	x8, x9, [x29, #-128]            ; 16-byte Folded Spill
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w22, w21
	csel	w22, w22, w21, lt
	strb	w19, [x26]
	cmp	w22, #0
	b.le	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w19, #1
	sxtw	x9, w8
	add	w8, w22, #1
	sub	x10, x8, #1
	cmp	x10, #8
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x28, x9
	sub	x11, x27, x11
	cmp	x11, #64
	b.hs	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #1
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x12, x9
	add	x9, x25, x9
	add	x10, x26, x12
	sub	x11, x8, x12
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x9], #1
	strb	w12, [x10], #1
	subs	x11, x11, #1
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w22, #1
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	stur	w8, [x29, #-104]
	ldr	w0, [x24, #12]
	sub	x1, x29, #112
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w19, w22, w19
	subs	w21, w21, w22
	b.ne	LBB0_5
	b	LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x10, #64
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, #0
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x11, x10, #0xffffffffffffffc0
	ldp	x12, x13, [x29, #-128]          ; 16-byte Folded Reload
	add	x12, x12, x9
	mov	x14, x11
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #64
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x10, x11
	b.eq	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	tst	x10, #0x38
	b.eq	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x13, x10, #0xfffffffffffffff8
	orr	x12, x13, #0x1
	add	x14, x11, x9
	add	x14, x28, x14
	add	x15, x27, x11
	sub	x11, x11, x13
LBB0_21:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x14], #8
	str	d0, [x15], #8
	adds	x11, x11, #8
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x10, x13
	b.ne	LBB0_9
	b	LBB0_12
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	orr	x12, x11, #0x1
	b	LBB0_9
LBB0_24:
	mov	x0, x20
	mov	w1, #0
	bl	_tda18271_i2c_gate_ctrl
	mov	w23, #0
	b	LBB0_26
LBB0_25:
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_tda18271_i2c_gate_ctrl
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_tda_err
LBB0_26:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x23
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA18271_NUM_REGS,4,2          ; @TDA18271_NUM_REGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: idx = 0x%x, len = %d, i2c_transfer returned: %d\n"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.tda18271_write_regs
l_switch.table.tda18271_write_regs:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	3                               ; 0x3

.subsections_via_symbols
