	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atlas_write_raw
_atlas_write_raw:                       ## @atlas_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, %r12
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movslq	%ebx, %rbx
	imulq	$1717986919, %rbx, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be32
	movl	%eax, -44(%rbp)
	cmpl	$20000, %ebx                    ## imm = 0x4E20
	ja	LBB0_2
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.3:
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.4:
	movq	(%r15), %rax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movl	(%r14), %edi
	movl	8(%r15), %esi
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_write
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_CHAN_INFO_RAW,8,3          ## @IIO_CHAN_INFO_RAW
	.comm	_IIO_TEMP,8,3                   ## @IIO_TEMP
	.no_dead_strip	_atlas_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atlas_write_raw
_atlas_write_raw:                       ; @atlas_write_raw
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	bl	_iio_priv
	mov	x20, x0
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w23, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	mov	w8, #20000
	cmp	w23, w8
	b.hi	LBB0_5
; %bb.1:
	cbnz	w22, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_regmap_bulk_write
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_CHAN_INFO_RAW,8,3          ; @IIO_CHAN_INFO_RAW
	.comm	_IIO_TEMP,8,3                   ; @IIO_TEMP
	.no_dead_strip	_atlas_write_raw
.subsections_via_symbols
