	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7606B_sw_mode_config
_ad7606B_sw_mode_config:                ## @ad7606B_sw_mode_config
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_iio_priv
	movq	%rax, %rbx
	movq	l___const.ad7606B_sw_mode_config.os+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.ad7606B_sw_mode_config.os(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	32(%rbx), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movl	%eax, %edi
	movq	%r15, %rcx
	callq	_gpiod_set_array_value
LBB0_2:
	movq	_ad7606B_oversampling_avail@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 28(%rbx)
	movq	_ad7606_write_scale_sw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ad7606_write_os_sw@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	_AD7606_CONFIGURATION_REGISTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AD7606_SINGLE_DOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_ad7606b_sw_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ad7606B_sw_mode_config.os
l___const.ad7606B_sw_mode_config.os:
	.quad	1                               ## 0x1
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0

	.comm	_ad7606B_oversampling_avail,8,3 ## @ad7606B_oversampling_avail
	.comm	_ad7606_write_scale_sw,4,2      ## @ad7606_write_scale_sw
	.comm	_ad7606_write_os_sw,4,2         ## @ad7606_write_os_sw
	.comm	_AD7606_CONFIGURATION_REGISTER,4,2 ## @AD7606_CONFIGURATION_REGISTER
	.comm	_AD7606_SINGLE_DOUT,4,2         ## @AD7606_SINGLE_DOUT
	.comm	_ad7606b_sw_channels,4,2        ## @ad7606b_sw_channels
	.no_dead_strip	_ad7606B_sw_mode_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7606B_sw_mode_config
_ad7606B_sw_mode_config:                ; @ad7606B_sw_mode_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_iio_priv
	mov	x20, x0
Lloh3:
	adrp	x8, l___const.ad7606B_sw_mode_config.os@PAGE
Lloh4:
	add	x8, x8, l___const.ad7606B_sw_mode_config.os@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, sp
	bl	_ARRAY_SIZE
	ldr	x8, [x20, #32]
	ldp	w2, w1, [x8]
	mov	x3, sp
	bl	_gpiod_set_array_value
LBB0_2:
Lloh5:
	adrp	x8, _ad7606B_oversampling_avail@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ad7606B_oversampling_avail@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x20]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
Lloh7:
	adrp	x8, _ad7606_write_scale_sw@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ad7606_write_scale_sw@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #24]
Lloh10:
	adrp	x8, _ad7606_write_os_sw@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ad7606_write_os_sw@GOTPAGEOFF]
	str	x8, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _AD7606_CONFIGURATION_REGISTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AD7606_CONFIGURATION_REGISTER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
Lloh15:
	adrp	x9, _AD7606_SINGLE_DOUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AD7606_SINGLE_DOUT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
Lloh18:
	adrp	x8, _ad7606b_sw_channels@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ad7606b_sw_channels@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @__const.ad7606B_sw_mode_config.os
l___const.ad7606B_sw_mode_config.os:
	.quad	1                               ; 0x1
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0

	.comm	_ad7606B_oversampling_avail,8,3 ; @ad7606B_oversampling_avail
	.comm	_ad7606_write_scale_sw,4,2      ; @ad7606_write_scale_sw
	.comm	_ad7606_write_os_sw,4,2         ; @ad7606_write_os_sw
	.comm	_AD7606_CONFIGURATION_REGISTER,4,2 ; @AD7606_CONFIGURATION_REGISTER
	.comm	_AD7606_SINGLE_DOUT,4,2         ; @AD7606_SINGLE_DOUT
	.comm	_ad7606b_sw_channels,4,2        ; @ad7606b_sw_channels
	.no_dead_strip	_ad7606B_sw_mode_config
.subsections_via_symbols
