	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_sd_buffer_postenable
_ad_sd_buffer_postenable:               ## @ad_sd_buffer_postenable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_iio_device_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_iio_triggered_buffer_postenable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_find_first_bit
	movq	(%rbx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %esi
	movq	%r14, %rdi
	callq	_ad_sigma_delta_set_channel
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_spi_bus_lock
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	movq	_AD_SD_MODE_CONTINUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ad_sigma_delta_set_mode
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_spi_bus_unlock
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_4:
	movl	$0, 8(%r14)
	movq	16(%r14), %rax
	movl	4(%rax), %edi
	callq	_enable_irq
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_SD_MODE_CONTINUOUS,4,2      ## @AD_SD_MODE_CONTINUOUS
	.no_dead_strip	_ad_sd_buffer_postenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_sd_buffer_postenable
_ad_sd_buffer_postenable:               ; @ad_sd_buffer_postenable
	.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	x21, x0
	bl	_iio_device_get_drvdata
	mov	x19, x0
	mov	x0, x21
	bl	_iio_triggered_buffer_postenable
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldp	w1, w0, [x21, #8]
	bl	_find_first_bit
	ldr	x8, [x21]
	ldr	w1, [x8, w0, uxtw #2]
	mov	x0, x19
	bl	_ad_sigma_delta_set_channel
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_spi_bus_lock
	movi.2s	v0, #1
	str	d0, [x19]
Lloh0:
	adrp	x8, _AD_SD_MODE_CONTINUOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD_SD_MODE_CONTINUOUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ad_sigma_delta_set_mode
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_spi_bus_unlock
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	b	LBB0_6
LBB0_5:
	str	wzr, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_enable_irq
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_SD_MODE_CONTINUOUS,4,2      ; @AD_SD_MODE_CONTINUOUS
	.no_dead_strip	_ad_sd_buffer_postenable
.subsections_via_symbols
