	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx231xx_i2c_send_bytes
_cx231xx_i2c_send_bytes:                ## @cx231xx_i2c_send_bytes
	.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	%rsi, %r15
	movq	(%rdi), %r13
	movq	8(%r13), %r14
	movq	_TUNER_XC5000@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_is_tuner
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movl	(%r15), %ebx
	cmpl	$2, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$4, %ebx
	jne	LBB0_4
## %bb.5:
	movq	8(%r15), %rax
	movl	(%rax), %r8d
	shll	$8, %r8d
	orl	4(%rax), %r8d
	leal	-1(%r8), %ecx
	cmpl	$3, %ecx
	jb	LBB0_9
## %bb.6:
	cmpl	$13, %r8d
	je	LBB0_9
## %bb.7:
	testl	%r8d, %r8d
	jne	LBB0_10
## %bb.8:
	movl	$1, (%r14)
	jmp	LBB0_9
LBB0_15:
	movl	20(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -72(%rbp)
	movl	(%r15), %eax
	movl	%eax, -64(%rbp)
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	*16(%r14)
	jmp	LBB0_16
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_4:
	movq	8(%r15), %rax
LBB0_11:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	decl	%ebx
	leaq	4(%rax), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %ecx
	movl	%ecx, -44(%rbp)
	movl	16(%r15), %ecx
	movl	%ecx, -48(%rbp)
	movl	$1, -72(%rbp)
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	xorl	%eax, %eax
	cmpl	$17, %ebx
	setge	%al
	cmpl	$16, %ebx
	movl	$16, %ecx
	cmovll	%ebx, %ecx
	movl	%ecx, -64(%rbp)
	leaq	(%r12,%r14), %rcx
	movq	%rcx, -56(%rbp)
	movl	%eax, (%r13)
	xorl	%eax, %eax
	testq	%r14, %r14
	setne	%al
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	leaq	-72(%rbp), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
	cmpl	$17, %ebx
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %rax
	addq	$64, %r14
	addl	$-16, %ebx
	jmp	LBB0_12
LBB0_14:
	movq	$0, (%r13)
LBB0_16:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
LBB0_17:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, (%r14)
	je	LBB0_11
LBB0_9:
	movl	20(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	$4, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_dprintk1
	movq	8(%r14), %rax
	movl	20(%r15), %esi
	movq	8(%r15), %rdx
	movl	(%r15), %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	"GPIO WRITE: addr 0x%x, len %d, saddr 0x%x\n"

	.no_dead_strip	_cx231xx_i2c_send_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx231xx_i2c_send_bytes
_cx231xx_i2c_send_bytes:                ; @cx231xx_i2c_send_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
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_6
; %bb.1:
	ldr	w9, [x19]
	cmp	w9, #2
	b.eq	LBB0_7
; %bb.2:
	cmp	w9, #4
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldp	w10, w11, [x8]
	orr	w4, w11, w10, lsl #8
	sub	w10, w4, #1
	cmp	w10, #3
	ccmp	w4, #13, #4, hs
	b.eq	LBB0_16
; %bb.4:
	cbnz	w4, LBB0_15
; %bb.5:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_16
LBB0_6:
	ldr	d0, [x19, #16]
	str	d0, [sp, #24]
	str	xzr, [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
	b	LBB0_13
LBB0_7:
	mov	w0, #0
	b	LBB0_14
LBB0_8:
	ldr	x8, [x19, #8]
LBB0_9:
	mov	x22, #0
	sub	w26, w9, #1
	add	x23, x8, #4
	mov	w24, #1
	mov	w25, #16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x19, #16]
	str	d0, [sp, #24]
	str	w24, [sp]
	ldr	w8, [x8]
	subs	w27, w26, #16
	cset	w9, gt
	csel	w10, w26, w25, lt
	stp	w8, w10, [sp, #4]
	add	x8, x23, x22
	str	x8, [sp, #16]
	cmp	x22, #0
	cset	w8, ne
	stp	w9, w8, [x21]
	ldr	x8, [x20, #16]
	mov	x1, sp
	mov	x0, x21
	blr	x8
	cmp	w26, #17
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #8]
	add	x22, x22, #64
	mov	x26, x27
	b	LBB0_10
LBB0_12:
	str	xzr, [x21]
LBB0_13:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	w10, [x20]
	cbz	w10, LBB0_9
LBB0_16:
	ldr	w2, [x19, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	w3, #4
	bl	_dprintk1
	ldr	x4, [x20, #8]
	ldr	w1, [x19, #20]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	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	"GPIO WRITE: addr 0x%x, len %d, saddr 0x%x\n"

	.no_dead_strip	_cx231xx_i2c_send_bytes
.subsections_via_symbols
