	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at24_regmap_write
_at24_regmap_write:                     ## @at24_regmap_write
	.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	%rcx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	%edx, -44(%rbp)
	leaq	-44(%rbp), %rsi
	callq	_at24_translate_offset
	movq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_at24_adjust_write_count
	movq	%rax, %rbx
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	movq	_at24_write_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	addq	%r14, %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movl	-44(%rbp), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_regmap_bulk_write
	movl	%eax, %r15d
	movl	-44(%rbp), %ecx
	movq	(%r12), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %r8d
	callq	_dev_dbg
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_at24_write_timeout,4,2         ## @at24_write_timeout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write %zu@%d --> %d (%ld)\n"

	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.no_dead_strip	_at24_regmap_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at24_regmap_write
_at24_regmap_write:                     ; @at24_regmap_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x3
	mov	x19, x1
	mov	x23, x0
	str	w2, [sp, #12]
	add	x1, sp, #12
	bl	_at24_translate_offset
	ldp	x21, x20, [x0]
	ldr	w1, [sp, #12]
	mov	x0, x23
	mov	x2, x22
	bl	_at24_adjust_write_count
	mov	x22, x0
Lloh0:
	adrp	x27, _jiffies@GOTPAGE
Lloh1:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldr	x23, [x27]
Lloh2:
	adrp	x8, _at24_write_timeout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _at24_write_timeout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x23, x0, x23
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x27]
	ldr	w1, [sp, #12]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	bl	_regmap_bulk_write
	mov	x26, x0
	ldr	w3, [sp, #12]
	ldr	x5, [x27]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x4, x26
	bl	_dev_dbg
	cbz	w26, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
	mov	x0, x25
	mov	x1, x23
	bl	_time_before
	cbnz	x0, LBB0_1
; %bb.3:
Lloh7:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	neg	x22, x8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_at24_write_timeout,4,2         ; @at24_write_timeout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write %zu@%d --> %d (%ld)\n"

	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.no_dead_strip	_at24_regmap_write
.subsections_via_symbols
