	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm93_read_block
_lm93_read_block:                       ## @lm93_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
	movq	%rsi, %r12
	movq	_MAX_RETRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	movq	_lm93_block_read_cmds@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	4(%rax,%r12,8), %esi
	movq	_lm93_block_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_read_block_data
	movl	%eax, %ebx
	movq	(%r14), %rax
	cmpl	(%rax,%r12,8), %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax,%r12,8), %edx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	leal	4(%r13), %edi
	callq	_mdelay
	incl	%r13d
	movq	_MAX_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_lm93_block_read_cmds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	(%rax,%r12,8), %ebx
	jne	LBB0_6
## %bb.7:
	movq	_lm93_block_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RETRIES,4,2                ## @MAX_RETRIES
	.comm	_lm93_block_read_cmds,8,3       ## @lm93_block_read_cmds
	.comm	_lm93_block_buffer,4,2          ## @lm93_block_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lm93: block read data failed, command 0x%02x.\n"

	.no_dead_strip	_lm93_read_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm93_read_block
_lm93_read_block:                       ; @lm93_read_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
Lloh0:
	adrp	x27, _MAX_RETRIES@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MAX_RETRIES@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x25, _lm93_block_read_cmds@GOTPAGE
Lloh3:
	ldr	x25, [x25, _lm93_block_read_cmds@GOTPAGEOFF]
	lsl	x26, x1, #3
Lloh4:
	adrp	x24, _lm93_block_buffer@GOTPAGE
Lloh5:
	ldr	x24, [x24, _lm93_block_buffer@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	w28, #0
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x8, x26
	ldr	w1, [x8, #4]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_i2c_smbus_read_block_data
	mov	x22, x0
	ldr	x8, [x25]
	ldr	w9, [x8, x26]
	cmp	w0, w9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, x20, lsl #3
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x23
	bl	_dev_warn
	add	w0, w28, #4
	bl	_mdelay
	ldr	w8, [x27]
	add	w28, w28, #1
	cmp	w28, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldr	x8, [x25]
	ldr	w8, [x8, x26]
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_memcpy
LBB0_7:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RETRIES,4,2                ; @MAX_RETRIES
	.comm	_lm93_block_read_cmds,8,3       ; @lm93_block_read_cmds
	.comm	_lm93_block_buffer,4,2          ; @lm93_block_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lm93: block read data failed, command 0x%02x.\n"

	.no_dead_strip	_lm93_read_block
.subsections_via_symbols
