	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_I2CRead                   ## -- Begin function bttv_I2CRead
	.p2align	4, 0x90
_bttv_I2CRead:                          ## @bttv_I2CRead
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	$0, -41(%rbp)
	movl	$-1, %r14d
	cmpq	$0, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_bttv_verbose@GOTPCREL(%rip), %r13
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %esi
	movzbl	%r15b, %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	callq	_pr_info
LBB0_4:
	movl	%r15d, %eax
	shrb	%al
	leaq	12(%rbx), %rdi
	movb	%al, 12(%rbx)
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_master_recv
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.9:
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_cont
LBB0_12:
	movzbl	-41(%rbp), %r14d
	jmp	LBB0_13
LBB0_5:
	testq	%r12, %r12
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_cont
	jmp	LBB0_13
LBB0_8:
	movl	8(%rbx), %esi
	movzbl	%r15b, %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bttv_verbose,8,3               ## @bttv_verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: i2c: checking for %s @ 0x%02x... "

L_.str.1:                               ## @.str.1
	.asciz	"not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d: i2c read 0x%x: error\n"

L_.str.3:                               ## @.str.3
	.asciz	"found\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_I2CRead                   ; -- Begin function bttv_I2CRead
	.p2align	2
_bttv_I2CRead:                          ; @bttv_I2CRead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	strb	wzr, [sp, #15]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _bttv_verbose@GOTPAGE
Lloh1:
	ldr	x22, [x22, _bttv_verbose@GOTPAGEOFF]
	cbz	x2, LBB0_6
; %bb.4:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x21, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_pr_info
LBB0_6:
	lsr	w8, w19, #1
	mov	x0, x21
	strb	w8, [x0, #12]!
	add	x1, sp, #15
	mov	w2, #1
	bl	_i2c_master_recv
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.7:
	cbz	x20, LBB0_10
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_cont
LBB0_10:
	ldrb	w0, [sp, #15]
	b	LBB0_2
LBB0_11:
	cbz	x20, LBB0_14
; %bb.12:
	ldr	x8, [x22]
	cbz	x8, LBB0_1
; %bb.13:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_cont
	b	LBB0_1
LBB0_14:
	ldr	w1, [x21, #8]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_pr_warn
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_bttv_verbose,8,3               ; @bttv_verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: i2c: checking for %s @ 0x%02x... "

l_.str.1:                               ; @.str.1
	.asciz	"not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d: i2c read 0x%x: error\n"

l_.str.3:                               ; @.str.3
	.asciz	"found\n"

.subsections_via_symbols
