	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp4725_store_eeprom
_mcp4725_store_eeprom:                  ## @mcp4725_store_eeprom
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_dev_to_iio_dev
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtobool
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	cmpl	$0, -56(%rbp)
	je	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	shll	$3, %eax
	orl	$96, %eax
	cmpq	$0, 24(%r12)
	je	LBB0_4
## %bb.5:
	movl	4(%r12), %ecx
	addl	%ecx, %ecx
	addl	$2, %ecx
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
	orl	%eax, %ecx
	movl	%ecx, -52(%rbp)
	movl	8(%r12), %eax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movl	%ecx, -48(%rbp)
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, -44(%rbp)
	movq	16(%r12), %rdi
	leaq	-52(%rbp), %rsi
	movl	$3, %edx
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	cmpl	$3, %eax
	jne	LBB0_15
## %bb.8:
	movl	$21, %ebx
	leaq	-52(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %ebx
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	16(%r12), %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_i2c_master_recv
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$3, %eax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%ebx
	testb	$-128, -52(%rbp)
	je	LBB0_9
## %bb.13:
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.16:
	movl	%r14d, %eax
	jmp	LBB0_17
LBB0_14:
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_15:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mcp4725_store_eeprom() failed, incomplete\n"

	.no_dead_strip	_mcp4725_store_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp4725_store_eeprom
_mcp4725_store_eeprom:                  ; @mcp4725_store_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_dev_to_iio_dev
	bl	_iio_priv
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_strtobool
	tbnz	w0, #31, LBB0_16
; %bb.1:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_13
; %bb.2:
	ldr	w8, [x20]
	lsl	w8, w8, #3
	orr	w8, w8, #0x60
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w9, [x20, #4]
	lsl	w9, w9, #1
	add	w9, w9, #2
LBB0_4:
	orr	w8, w9, w8
	ldr	w9, [x20, #8]
	asr	w10, w9, #4
	stp	w8, w10, [sp, #12]
	ubfiz	w8, w9, #4, #4
	str	w8, [sp, #20]
	ldr	x0, [x20, #16]
	add	x1, sp, #12
	mov	w2, #3
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_16
; %bb.5:
	cmp	w0, #3
	b.ne	LBB0_15
; %bb.6:
	mov	w21, #21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x20, #16]
	add	x1, sp, #12
	mov	w2, #3
	bl	_i2c_master_recv
	tbnz	w0, #31, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #3
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #12]
	tbz	w8, #7, LBB0_7
; %bb.11:
	cmp	w21, #0
	b.le	LBB0_14
; %bb.12:
	mov	x0, x19
	b	LBB0_16
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	ldr	x0, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_15:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mcp4725_store_eeprom() failed, incomplete\n"

	.no_dead_strip	_mcp4725_store_eeprom
.subsections_via_symbols
