	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7616_write_scale_sw
_ad7616_write_scale_sw:                 ## @ad7616_write_scale_sw
	.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
	movl	%edx, %r15d
	movl	%esi, %r13d
	callq	_iio_priv
	movq	%rax, %r14
	movl	%r13d, %ebx
	sarl	%ebx
	movl	%ebx, %edi
	callq	_AD7616_RANGE_CH_ADDR
	movl	%eax, %r12d
	testb	$1, %r13b
	jne	LBB0_1
## %bb.2:
	movq	_AD7616_RANGE_CH_A_ADDR_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AD7616_RANGE_CH_B_ADDR_OFF@GOTPCREL(%rip), %rax
LBB0_3:
	addl	(%rax), %r12d
	incl	%r15d
	andl	$3, %r15d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_AD7616_RANGE_CH_MODE
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	(%rax), %r13
	movl	%ebx, %edi
	callq	_AD7616_RANGE_CH_MSK
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7616_RANGE_CH_A_ADDR_OFF,8,3 ## @AD7616_RANGE_CH_A_ADDR_OFF
	.comm	_AD7616_RANGE_CH_B_ADDR_OFF,8,3 ## @AD7616_RANGE_CH_B_ADDR_OFF
	.no_dead_strip	_ad7616_write_scale_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7616_write_scale_sw
_ad7616_write_scale_sw:                 ; @ad7616_write_scale_sw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	bl	_iio_priv
	mov	x21, x0
	asr	w22, w20, #1
	mov	x0, x22
	bl	_AD7616_RANGE_CH_ADDR
Lloh0:
	adrp	x8, _AD7616_RANGE_CH_A_ADDR_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7616_RANGE_CH_A_ADDR_OFF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AD7616_RANGE_CH_B_ADDR_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD7616_RANGE_CH_B_ADDR_OFF@GOTPAGEOFF]
	tst	w20, #0x1
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	add	w20, w0, w8
	add	w8, w19, #1
	and	w1, w8, #0x3
	mov	x0, x22
	bl	_AD7616_RANGE_CH_MODE
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x22
	bl	_AD7616_RANGE_CH_MSK
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7616_RANGE_CH_A_ADDR_OFF,8,3 ; @AD7616_RANGE_CH_A_ADDR_OFF
	.comm	_AD7616_RANGE_CH_B_ADDR_OFF,8,3 ; @AD7616_RANGE_CH_B_ADDR_OFF
	.no_dead_strip	_ad7616_write_scale_sw
.subsections_via_symbols
