	.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, %r13
	movq	(%rdi), %r14
	movl	(%rsi), %r9d
	cmpl	$1, %r9d
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	cmpl	$2, %r9d
	jne	LBB0_4
## %bb.2:
	movq	8(%r13), %rax
	movl	(%rax), %r12d
	shll	$8, %r12d
	orl	4(%rax), %r12d
	jmp	LBB0_4
LBB0_3:
	movq	8(%r13), %rax
	movl	(%rax), %r12d
LBB0_4:
	movq	8(%r14), %r15
	cmpl	$1, (%r14)
	jne	LBB0_10
## %bb.5:
	cmpl	$97, 16(%rbx)
	jne	LBB0_10
## %bb.6:
	movq	(%r15), %rax
	movq	_TUNER_XC5000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movl	(%rbx), %ecx
	cmpl	$15, %ecx
	jg	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	$97, %edx
	movl	%r12d, %r8d
	callq	_dprintk1
	leal	-4(%r12), %eax
	testl	$-5, %eax
	je	LBB0_11
## %bb.9:
	movl	(%r13), %r9d
LBB0_10:
	movl	16(%rbx), %eax
	movl	%eax, -72(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	%r9d, -68(%rbp)
	movl	%r12d, -64(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	*24(%r15)
	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_11:
	movl	16(%r13), %esi
	movq	8(%r13), %rdx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	callq	*8(%r15)
	movq	16(%r15), %rax
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r15, %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,8,3               ## @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, #8]
	ldr	w5, [x1]
	cmp	w5, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w5, #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:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x19, #16]
	cmp	w8, #97
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TUNER_XC5000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUNER_XC5000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	w3, [x19]
	cmp	w3, #15
	b.gt	LBB0_11
; %bb.9:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	w2, #97
	mov	x4, x23
	bl	_dprintk1
	sub	w8, w23, #4
	tst	w8, #0xfffffffb
	b.eq	LBB0_12
; %bb.10:
	ldr	w5, [x22]
LBB0_11:
	ldp	w8, w9, [x19, #16]
	str	w9, [sp, #24]
	stp	w8, w5, [sp]
	ldr	w8, [x19]
	stp	w23, w8, [sp, #8]
	ldr	x8, [x19, #8]
	str	x8, [sp, #16]
	ldr	x8, [x20, #24]
	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_12:
	ldr	x8, [x20, #8]
	ldr	w1, [x22, #16]
	ldr	x2, [x22, #8]
	ldr	w3, [x22]
	mov	x0, x20
	blr	x8
	ldr	x4, [x20, #16]
	ldr	w1, [x19, #16]
	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,8,3               ; @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
