	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx231xx_i2c_recv_bytes_with_saddr
_cx231xx_i2c_recv_bytes_with_saddr:     ## @cx231xx_i2c_recv_bytes_with_saddr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	(%rdi), %r15
	movq	(%r15), %r14
	movl	(%rsi), %eax
	cmpl	$1, %eax
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.2:
	movq	8(%r12), %rax
	movl	(%rax), %r13d
	shll	$8, %r13d
	orl	4(%rax), %r13d
	jmp	LBB0_4
LBB0_3:
	movq	8(%r12), %rax
	movl	(%rax), %r13d
LBB0_4:
	movq	_TUNER_XC5000@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_is_tuner
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %ecx
	cmpl	$15, %ecx
	jg	LBB0_7
## %bb.6:
	movl	20(%rbx), %edx
	movl	(%r12), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %r8d
	callq	_dprintk1
	leal	-4(%r13), %eax
	testl	$-5, %eax
	je	LBB0_8
LBB0_7:
	movl	20(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %eax
	movl	%eax, -72(%rbp)
	movl	%r13d, -68(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	*16(%r14)
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	20(%r12), %esi
	movq	8(%r12), %rdx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	8(%r14), %rax
	movl	20(%rbx), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TUNER_XC5000,4,2               ## @TUNER_XC5000
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_read: addr 0x%x, len %d, saddr 0x%x, len %d\n"

	.no_dead_strip	_cx231xx_i2c_recv_bytes_with_saddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx231xx_i2c_recv_bytes_with_saddr
_cx231xx_i2c_recv_bytes_with_saddr:     ; @cx231xx_i2c_recv_bytes_with_saddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x22, x1
	ldr	x21, [x0]
	ldr	x20, [x21]
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x22, #8]
	ldp	w9, w8, [x8]
	orr	w23, w8, w9, lsl #8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x22, #8]
	ldr	w23, [x8]
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
Lloh0:
	adrp	x8, _TUNER_XC5000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUNER_XC5000@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_is_tuner
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w3, [x19]
	cmp	w3, #15
	b.gt	LBB0_8
; %bb.7:
	ldr	w2, [x19, #20]
	ldr	w5, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x4, x23
	bl	_dprintk1
	sub	w8, w23, #4
	tst	w8, #0xfffffffb
	b.eq	LBB0_9
LBB0_8:
	ldr	d0, [x19, #16]
	str	d0, [sp, #24]
	ldr	w8, [x22]
	stp	w8, w23, [sp]
	ldr	w8, [x19]
	str	w8, [sp, #8]
	ldr	x8, [x19, #8]
	str	x8, [sp, #16]
	ldr	x8, [x20, #16]
	mov	x1, sp
	mov	x0, x21
	blr	x8
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	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
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	x8, [x20]
	ldr	w1, [x22, #20]
	ldr	x2, [x22, #8]
	ldr	w3, [x22]
	mov	x0, x20
	blr	x8
	ldr	x4, [x20, #8]
	ldr	w1, [x19, #20]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	mov	x0, x20
	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
	add	sp, sp, #96
	br	x4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TUNER_XC5000,4,2               ; @TUNER_XC5000
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_read: addr 0x%x, len %d, saddr 0x%x, len %d\n"

	.no_dead_strip	_cx231xx_i2c_recv_bytes_with_saddr
.subsections_via_symbols
