	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_read_extended         ## -- Begin function tda18271_read_extended
	.p2align	4, 0x90
_tda18271_read_extended:                ## @tda18271_read_extended
	.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
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	(%rbx), %r13
	movq	_TDA18271_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movb	$0, -97(%rbp)
	leaq	-97(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	$1, -88(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -80(%rbp)
	movq	%r14, -72(%rbp)
	movl	%r15d, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movl	%eax, -56(%rbp)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_tda18271_i2c_gate_ctrl
	movl	8(%rbx), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %r15d
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_tda18271_i2c_gate_ctrl
	cmpl	$2, %r15d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_tda_err
LBB0_2:
	movq	_TDA18271_NUM_REGS@GOTPCREL(%rip), %r10
	movl	(%r10), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	xorl	%ecx, %ecx
	movq	_R_EB9@GOTPCREL(%rip), %rdx
	movq	_R_EB16@GOTPCREL(%rip), %rsi
	movq	_R_EB17@GOTPCREL(%rip), %rdi
	movq	_R_EB19@GOTPCREL(%rip), %r9
	movq	_R_EB20@GOTPCREL(%rip), %r8
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	movslq	%eax, %rbx
	cmpq	%rbx, %rcx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %ebx
	cmpq	%rbx, %rcx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rsi), %ebx
	cmpq	%rbx, %rcx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdi), %ebx
	cmpq	%rbx, %rcx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r9), %ebx
	cmpq	%rbx, %rcx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r8), %ebx
	cmpq	%rbx, %rcx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r14,%rcx), %eax
	movb	%al, (%r13,%rcx)
	movl	(%r10), %eax
	jmp	LBB0_10
LBB0_11:
	movq	_tda18271_debug@GOTPCREL(%rip), %rax
	movq	_DBG_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	$1, %esi
	callq	_tda18271_dump_regs
LBB0_13:
	xorl	%eax, %eax
	cmpl	$2, %r15d
	cmovnel	%r15d, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA18271_NUM_REGS,4,2          ## @TDA18271_NUM_REGS
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: i2c_transfer returned: %d\n"

	.comm	_R_EB9,4,2                      ## @R_EB9
	.comm	_R_EB16,4,2                     ## @R_EB16
	.comm	_R_EB17,4,2                     ## @R_EB17
	.comm	_R_EB19,4,2                     ## @R_EB19
	.comm	_R_EB20,4,2                     ## @R_EB20
	.comm	_tda18271_debug,4,2             ## @tda18271_debug
	.comm	_DBG_REG,4,2                    ## @DBG_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tda18271_read_extended
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_tda18271_read_extended
	.p2align	2
_tda18271_read_extended:                ; @tda18271_read_extended
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0]
	ldr	x21, [x20]
Lloh3:
	adrp	x22, _TDA18271_NUM_REGS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TDA18271_NUM_REGS@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x23, x9, x10
	mov	sp, x23
	sturb	wzr, [x29, #-105]
	sub	x9, x29, #105
	stur	x9, [x29, #-104]
Lloh7:
	adrp	x9, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x29, #-96]
	ldr	w9, [x20, #12]
	stur	w9, [x29, #-88]
	stur	x23, [x29, #-80]
Lloh9:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w8, w10, [x29, #-72]
	stur	w9, [x29, #-64]
	mov	w1, #1
	bl	_tda18271_i2c_gate_ctrl
	ldr	w0, [x20, #8]
	sub	x1, x29, #104
	mov	w2, #2
	bl	_i2c_transfer
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_tda18271_i2c_gate_ctrl
	cmp	w20, #2
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_tda_err
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x9, #0
Lloh14:
	adrp	x10, _R_EB9@GOTPAGE
Lloh15:
	ldr	x10, [x10, _R_EB9@GOTPAGEOFF]
Lloh16:
	adrp	x11, _R_EB16@GOTPAGE
Lloh17:
	ldr	x11, [x11, _R_EB16@GOTPAGEOFF]
Lloh18:
	adrp	x12, _R_EB17@GOTPAGE
Lloh19:
	ldr	x12, [x12, _R_EB17@GOTPAGEOFF]
Lloh20:
	adrp	x13, _R_EB19@GOTPAGE
Lloh21:
	ldr	x13, [x13, _R_EB19@GOTPAGEOFF]
Lloh22:
	adrp	x14, _R_EB20@GOTPAGE
Lloh23:
	ldr	x14, [x14, _R_EB20@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x10]
	ldr	w16, [x11]
	ldr	w17, [x12]
	ldr	w0, [x13]
	ldr	w1, [x14]
	cmp	x9, x15
	ccmp	x9, x16, #4, ne
	ccmp	x9, x17, #4, ne
	ccmp	x9, x0, #4, ne
	ccmp	x9, x1, #4, ne
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x23, x9]
	strb	w8, [x21, x9]
	ldr	w8, [x22]
	b	LBB0_4
LBB0_7:
Lloh24:
	adrp	x8, _tda18271_debug@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tda18271_debug@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _DBG_REG@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DBG_REG@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_tda18271_dump_regs
LBB0_9:
	cmp	w20, #2
	csel	w0, wzr, w20, eq
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA18271_NUM_REGS,4,2          ; @TDA18271_NUM_REGS
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: i2c_transfer returned: %d\n"

	.comm	_R_EB9,4,2                      ; @R_EB9
	.comm	_R_EB16,4,2                     ; @R_EB16
	.comm	_R_EB17,4,2                     ; @R_EB17
	.comm	_R_EB19,4,2                     ; @R_EB19
	.comm	_R_EB20,4,2                     ; @R_EB20
	.comm	_tda18271_debug,4,2             ; @tda18271_debug
	.comm	_DBG_REG,4,2                    ; @DBG_REG
.subsections_via_symbols
