	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt2160_read_block
_qt2160_read_block:                     ## @qt2160_read_block
	.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
	movl	%ecx, %r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_1:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.2:
	movl	%ebx, %r13d
	movl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r14,4)
	incq	%r14
	cmpl	%r14d, %r12d
	jne	LBB0_3
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_i2c_master_recv
	xorl	%ebx, %ebx
	cmpl	%r12d, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r14d, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't send request. Returned %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't read registers. Returned %d bytes\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't read register. Returned %d\n"

	.no_dead_strip	_qt2160_read_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt2160_read_block
_qt2160_read_block:                     ; @qt2160_read_block
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	bl	_i2c_smbus_write_byte
	cbz	w0, LBB0_7
LBB0_2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
	cbz	w20, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_i2c_smbus_write_byte
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_i2c_smbus_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w21, [x22], #4
	add	w23, w23, #1
	sub	w20, w20, #1
	cbnz	w20, LBB0_4
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_i2c_master_recv
	cmp	w0, w20
	b.ne	LBB0_9
LBB0_8:
	mov	w21, #0
	b	LBB0_12
LBB0_9:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_12:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't send request. Returned %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't read registers. Returned %d bytes\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't read register. Returned %d\n"

	.no_dead_strip	_qt2160_read_block
.subsections_via_symbols
