	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m62332_set_value
_m62332_set_value:                      ## @m62332_set_value
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r12
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	xorl	%r13d, %r13d
	cmpl	%r15d, (%rax,%rcx,4)
	je	LBB0_10
## %bb.1:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -56(%rbp)
	movl	%r15d, -52(%rbp)
	movq	%r12, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movl	12(%r12), %edi
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
LBB0_3:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_i2c_master_send
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	leaq	-56(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	je	LBB0_7
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.6:
	negl	%r13d
	jmp	LBB0_9
LBB0_7:
	xorl	%r13d, %r13d
	movq	(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rax,%rcx,4)
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.8:
	movl	12(%r12), %edi
	callq	_regulator_disable
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_m62332_set_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m62332_set_value
_m62332_set_value:                      ; @m62332_set_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_iio_priv
	ldr	x8, [x0]
	ldr	w8, [x8, w21, sxtw #2]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_12
LBB0_2:
	mov	x22, x0
	ldr	x24, [x0, #16]
	add	x19, x0, #8
	stp	w21, w20, [sp]
	mov	x0, x19
	bl	_mutex_lock
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w0, [x22, #12]
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_11
LBB0_4:
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x24
	bl	_i2c_master_send
	mov	x23, x0
	tbnz	w0, #31, LBB0_11
; %bb.5:
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.eq	LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_8
; %bb.7:
	neg	w23, w8
	b	LBB0_11
LBB0_8:
	sxtw	x8, w21
	ldr	x9, [x22]
	str	w20, [x9, x8, lsl #2]
	cbnz	w20, LBB0_10
; %bb.9:
	ldr	w0, [x22, #12]
	bl	_regulator_disable
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_m62332_set_value
.subsections_via_symbols
