	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5761_write_raw
_ad5761_write_raw:                      ## @ad5761_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
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	jne	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movb	(%rsi), %cl
	movl	%edx, %eax
	shll	%cl, %eax
	testl	%edx, %edx
	js	LBB0_4
## %bb.3:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jge	LBB0_4
## %bb.5:
	movq	_AD5761_ADDR_DAC_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	popq	%rbp
	jmp	_ad5761_spi_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_RAW,8,3          ## @IIO_CHAN_INFO_RAW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5761_ADDR_DAC_WRITE,4,2      ## @AD5761_ADDR_DAC_WRITE
	.no_dead_strip	_ad5761_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5761_write_raw
_ad5761_write_raw:                      ; @ad5761_write_raw
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x4
	b.ne	LBB0_2
; %bb.1:
	cbz	w3, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	tbnz	w2, #31, LBB0_2
; %bb.4:
	ldr	w8, [x1]
	lsl	w2, w2, w8
	cmp	w2, #16, lsl #12                ; =65536
	b.ge	LBB0_2
; %bb.5:
Lloh6:
	adrp	x8, _AD5761_ADDR_DAC_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD5761_ADDR_DAC_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	_ad5761_spi_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_RAW,8,3          ; @IIO_CHAN_INFO_RAW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5761_ADDR_DAC_WRITE,4,2      ; @AD5761_ADDR_DAC_WRITE
	.no_dead_strip	_ad5761_write_raw
.subsections_via_symbols
