	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_dummy_write_raw
_iio_dummy_write_raw:                   ## @iio_dummy_write_raw
	.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	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r15
	callq	_iio_priv
	addq	$-132, %rbx
	cmpq	$5, %rbx
	ja	LBB0_26
## %bb.1:
	movq	%rax, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$128, (%r15)
	jne	LBB0_26
## %bb.3:
	cmpl	$0, 8(%r15)
	je	LBB0_26
## %bb.4:
	movq	%r14, %rbx
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	%r12d, (%r14)
	jmp	LBB0_5
LBB0_24:
	cmpl	$129, (%r15)
	jne	LBB0_26
## %bb.25:
	movl	%r12d, 24(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_6:
	movl	(%r15), %eax
	cmpl	$138, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_26
## %bb.8:
	movq	%r14, %rbx
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	%r12d, 4(%r14)
	jmp	LBB0_5
LBB0_22:
	cmpl	$129, (%r15)
	jne	LBB0_26
## %bb.23:
	movq	%r14, %rbx
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	%r12d, 20(%r14)
	jmp	LBB0_5
LBB0_13:
	movq	%r14, %rdi
	addq	$28, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_dummy_scales@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jg	LBB0_14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	cmpl	%r12d, (%rdi,%r15,8)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r13d, 4(%rdi,%r15,8)
	jne	LBB0_16
LBB0_17:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jne	LBB0_19
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_21:
	movq	%r14, %rbx
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	%r12d, 16(%r14)
LBB0_5:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_19:
	movl	%r15d, %eax
	shlq	$3, %rax
	addq	(%rbx), %rax
	movq	%rax, 32(%r14)
	xorl	%ebx, %ebx
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_27
LBB0_9:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	cmovlel	%ebx, %r12d
	cmpl	$100, %r12d
	movl	$100, %eax
	cmovbl	%r12d, %eax
	movl	4(%r15), %ecx
	cmpl	$130, %ecx
	je	LBB0_12
## %bb.10:
	cmpl	$131, %ecx
	jne	LBB0_26
## %bb.11:
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, 12(%r14)
	jmp	LBB0_27
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_22
	.long	L0_0_set_13
	.long	L0_0_set_24
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dummy_scales,8,3               ## @dummy_scales
	.no_dead_strip	_iio_dummy_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_dummy_write_raw
_iio_dummy_write_raw:                   ; @iio_dummy_write_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	bl	_iio_priv
	sub	x8, x23, #132
	cmp	x8, #5
	b.hi	LBB0_27
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.3:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_27
; %bb.4:
	add	x21, x19, #28
	mov	x0, x21
	bl	_mutex_lock
	str	w20, [x19]
	b	LBB0_18
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, #129
	b.ne	LBB0_27
; %bb.6:
	mov	w22, #0
	str	w20, [x19, #24]
	b	LBB0_28
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, #138
	b.eq	LBB0_24
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_27
; %bb.9:
	add	x21, x19, #28
	mov	x0, x21
	bl	_mutex_lock
	str	w20, [x19, #4]
	b	LBB0_18
LBB0_10:
	ldr	w8, [x21]
	cmp	w8, #129
	b.ne	LBB0_27
; %bb.11:
	add	x21, x19, #28
	mov	x0, x21
	bl	_mutex_lock
	str	w20, [x19, #20]
	b	LBB0_18
LBB0_12:
	add	x21, x19, #28
	mov	x0, x21
	bl	_mutex_lock
Lloh2:
	adrp	x23, _dummy_scales@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dummy_scales@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.13:
	mov	x25, #0
	mov	x24, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x25, x25, #8
	cmp	x24, w0, sxtw
	b.ge	LBB0_20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	w8, [x0, x25]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x0, x25
	ldr	w8, [x8, #4]
	cmp	w8, w22
	b.ne	LBB0_14
	b	LBB0_20
LBB0_17:
	add	x21, x19, #28
	mov	x0, x21
	bl	_mutex_lock
	str	w20, [x19, #16]
LBB0_18:
	mov	x0, x21
	bl	_mutex_unlock
	mov	w22, #0
	b	LBB0_28
LBB0_19:
	mov	w24, #0
LBB0_20:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.ne	LBB0_22
; %bb.21:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_23
LBB0_22:
	mov	w22, #0
	ldr	x8, [x23]
	add	x8, x8, w24, uxtw #3
	str	x8, [x19, #32]
LBB0_23:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_28
LBB0_24:
	cmp	w20, #0
	csel	w8, w20, wzr, gt
	mov	w9, #100
	cmp	w8, #100
	csel	w8, w8, w9, lo
	ldr	w9, [x21, #4]
	cmp	w9, #130
	b.eq	LBB0_29
; %bb.25:
	cmp	w9, #131
	b.ne	LBB0_27
; %bb.26:
	mov	w22, #0
	str	w8, [x19, #8]
	b	LBB0_28
LBB0_27:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_28:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_29:
	mov	w22, #0
	str	w8, [x19, #12]
	b	LBB0_28
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dummy_scales,8,3               ; @dummy_scales
	.no_dead_strip	_iio_dummy_write_raw
.subsections_via_symbols
