	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18218_rd_regs
_tda18218_rd_regs:                      ## @tda18218_rd_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
	movq	%rcx, %r14
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	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	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	$1, -96(%rbp)
	leaq	l_.str(%rip), %rax
	movq	%rax, -88(%rbp)
	movl	$0, -80(%rbp)
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	leaq	(%r14,%r12), %rcx
	movl	%ecx, -72(%rbp)
	movq	%r15, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movl	%eax, -52(%rbp)
	cmpq	%rbx, %rcx
	jbe	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %ecx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	(%r13), %rdi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	leaq	(%r15,%r12,8), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	(%r13), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %ecx
	movq	%r12, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XFER_SIZE,4,2              ## @MAX_XFER_SIZE
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.space	2

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.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.2:                               ## @.str.2
	.asciz	"%s: i2c rd failed=%d reg=%02x len=%d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18218_rd_regs
_tda18218_rd_regs:                      ; @tda18218_rd_regs
	.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, x3
	mov	x21, 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, #-56]
Lloh3:
	adrp	x8, _MAX_XFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_XFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	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, #0xffffffff0
	sub	x23, x9, x10
	mov	sp, x23
	mov	w9, #1
	stur	w9, [x29, #-104]
Lloh8:
	adrp	x9, l_.str@PAGE
Lloh9:
	add	x9, x9, l_.str@PAGEOFF
	stur	x9, [x29, #-96]
	stur	wzr, [x29, #-88]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	add	x10, x3, x1
	cmp	x10, x8
	stp	w9, w10, [x29, #-84]
	stur	x23, [x29, #-72]
Lloh10:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w8, w9, [x29, #-64]
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x22]
Lloh13:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_dev_warn
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x0, [x22]
	sub	x1, x29, #104
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.3:
	add	x1, x23, x20, lsl #3
	mov	x0, x21
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x3, x0
	ldr	x0, [x22]
Lloh20:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x19, [sp, #-16]!
	mov	x4, x20
	bl	_dev_warn
	add	sp, sp, #16
Lloh25:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XFER_SIZE,4,2              ; @MAX_XFER_SIZE
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.space	2

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.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.2:                               ; @.str.2
	.asciz	"%s: i2c rd failed=%d reg=%02x len=%d\n"

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