	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7887_ring_preenable
_ad7887_ring_preenable:                 ## @ad7887_ring_preenable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	cmpl	$3, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$2, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_AD7887_CH0@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_AD7887_CH0_CH1@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_7
LBB0_4:
	movq	_AD7887_CH1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%rsi, 8(%rax)
	movl	16(%rax), %edi
	callq	_spi_sync
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7887_CH0,8,3                 ## @AD7887_CH0
	.comm	_AD7887_CH1,8,3                 ## @AD7887_CH1
	.comm	_AD7887_CH0_CH1,8,3             ## @AD7887_CH0_CH1
	.no_dead_strip	_ad7887_ring_preenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7887_ring_preenable
_ad7887_ring_preenable:                 ; @ad7887_ring_preenable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_iio_priv
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AD7887_CH0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD7887_CH0@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _AD7887_CH0_CH1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD7887_CH0_CH1@GOTPAGEOFF]
LBB0_5:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x0, #8]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _AD7887_CH1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AD7887_CH1@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	str	x1, [x0, #8]
	ldr	w0, [x0, #16]
	bl	_spi_sync
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7887_CH0,8,3                 ; @AD7887_CH0
	.comm	_AD7887_CH1,8,3                 ; @AD7887_CH1
	.comm	_AD7887_CH0_CH1,8,3             ; @AD7887_CH0_CH1
	.no_dead_strip	_ad7887_ring_preenable
.subsections_via_symbols
