	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5360_write_raw
_ad5360_write_raw:                      ## @ad5360_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_iio_priv
	movl	4(%r12), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	addq	$-128, %rbx
	cmpq	$3, %rbx
	ja	LBB0_16
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rbx,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_2:
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.3:
	cmpl	%r15d, %edx
	jle	LBB0_16
## %bb.4:
	movq	_AD5360_CMD_WRITE_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	testl	%r15d, %r15d
	jg	LBB0_16
## %bb.14:
	negl	%edx
	cmpl	%r15d, %edx
	jge	LBB0_16
## %bb.15:
	negl	%r15d
	addb	$-14, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r15d
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_ad5360_get_channel_vref_index
	movq	_AD5360_CMD_SPECIAL_FUNCTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_AD5360_REG_SF_OFS
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_6
LBB0_10:
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.11:
	cmpl	%r15d, %edx
	jle	LBB0_16
## %bb.12:
	movq	_AD5360_CMD_WRITE_GAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.8:
	cmpl	%r15d, %edx
	jle	LBB0_16
## %bb.9:
	movq	_AD5360_CMD_WRITE_OFFSET@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movl	8(%r12), %r8d
	movl	12(%r12), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad5360_write                   ## TAILCALL
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5360_CMD_WRITE_DATA,4,2      ## @AD5360_CMD_WRITE_DATA
	.comm	_AD5360_CMD_WRITE_OFFSET,4,2    ## @AD5360_CMD_WRITE_OFFSET
	.comm	_AD5360_CMD_WRITE_GAIN,4,2      ## @AD5360_CMD_WRITE_GAIN
	.comm	_AD5360_CMD_SPECIAL_FUNCTION,4,2 ## @AD5360_CMD_SPECIAL_FUNCTION
	.no_dead_strip	_ad5360_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5360_write_raw
_ad5360_write_raw:                      ; @ad5360_write_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x4
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	sub	x10, x22, #128
	cmp	x10, #3
	b.hi	LBB0_16
; %bb.1:
	ldr	w9, [x21, #4]
	mov	w8, #1
	lsl	w8, w8, w9
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	tbnz	w20, #31, LBB0_16
; %bb.3:
	cmp	w8, w20
	b.le	LBB0_16
; %bb.4:
Lloh2:
	adrp	x8, _AD5360_CMD_WRITE_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AD5360_CMD_WRITE_DATA@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	cmp	w20, #0
	b.gt	LBB0_16
; %bb.6:
	neg	w8, w8
	cmp	w8, w20
	b.ge	LBB0_16
; %bb.7:
	neg	w8, w20
	sub	w9, w9, #14
	lsr	w20, w8, w9
	ldr	w1, [x21]
	bl	_ad5360_get_channel_vref_index
Lloh4:
	adrp	x8, _AD5360_CMD_SPECIAL_FUNCTION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AD5360_CMD_SPECIAL_FUNCTION@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	bl	_AD5360_REG_SF_OFS
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	mov	w4, #0
	b	LBB0_15
LBB0_8:
	tbnz	w20, #31, LBB0_16
; %bb.9:
	cmp	w8, w20
	b.le	LBB0_16
; %bb.10:
Lloh7:
	adrp	x8, _AD5360_CMD_WRITE_GAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AD5360_CMD_WRITE_GAIN@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	tbnz	w20, #31, LBB0_16
; %bb.12:
	cmp	w8, w20
	b.le	LBB0_16
; %bb.13:
Lloh9:
	adrp	x8, _AD5360_CMD_WRITE_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD5360_CMD_WRITE_OFFSET@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	ldp	w4, w2, [x21, #8]
	mov	x0, x19
	mov	x3, x20
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ad5360_write
LBB0_16:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5360_CMD_WRITE_DATA,4,2      ; @AD5360_CMD_WRITE_DATA
	.comm	_AD5360_CMD_WRITE_OFFSET,4,2    ; @AD5360_CMD_WRITE_OFFSET
	.comm	_AD5360_CMD_WRITE_GAIN,4,2      ; @AD5360_CMD_WRITE_GAIN
	.comm	_AD5360_CMD_SPECIAL_FUNCTION,4,2 ; @AD5360_CMD_SPECIAL_FUNCTION
	.no_dead_strip	_ad5360_write_raw
.subsections_via_symbols
