	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5421_write_raw
_ad5421_write_raw:                      ## @ad5421_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
	cmpq	$130, %r8
	je	LBB0_6
## %bb.1:
	cmpq	$129, %r8
	je	LBB0_8
## %bb.2:
	cmpq	$128, %r8
	jne	LBB0_10
## %bb.3:
	cmpl	$65536, %edx                    ## imm = 0x10000
	jae	LBB0_10
## %bb.4:
	movq	_AD5421_REG_DAC_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movswl	%dx, %eax
	cmpl	%edx, %eax
	jne	LBB0_10
## %bb.7:
	addl	$32768, %edx                    ## imm = 0x8000
	movq	_AD5421_REG_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	cmpl	$65536, %edx                    ## imm = 0x10000
	jb	LBB0_9
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_AD5421_REG_GAIN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_ad5421_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5421_REG_DAC_DATA,4,2        ## @AD5421_REG_DAC_DATA
	.comm	_AD5421_REG_OFFSET,4,2          ## @AD5421_REG_OFFSET
	.comm	_AD5421_REG_GAIN,4,2            ## @AD5421_REG_GAIN
	.no_dead_strip	_ad5421_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5421_write_raw
_ad5421_write_raw:                      ; @ad5421_write_raw
	.cfi_startproc
; %bb.0:
	cmp	x4, #130
	b.eq	LBB0_5
; %bb.1:
	cmp	x4, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	x4, #128
	b.ne	LBB0_8
; %bb.3:
	cmp	w2, #16, lsl #12                ; =65536
	b.hs	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _AD5421_REG_DAC_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5421_REG_DAC_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	b	_ad5421_write
LBB0_5:
	cmp	w2, w2, sxth
	b.ne	LBB0_8
; %bb.6:
	add	w2, w2, #8, lsl #12             ; =32768
Lloh3:
	adrp	x8, _AD5421_REG_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD5421_REG_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	b	_ad5421_write
LBB0_7:
	cmp	w2, #16, lsl #12                ; =65536
	b.lo	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
Lloh9:
	adrp	x8, _AD5421_REG_GAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD5421_REG_GAIN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	b	_ad5421_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5421_REG_DAC_DATA,4,2        ; @AD5421_REG_DAC_DATA
	.comm	_AD5421_REG_OFFSET,4,2          ; @AD5421_REG_OFFSET
	.comm	_AD5421_REG_GAIN,4,2            ; @AD5421_REG_GAIN
	.no_dead_strip	_ad5421_write_raw
.subsections_via_symbols
