	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5592r_set_channel_modes
_ad5592r_set_channel_modes:             ## @ad5592r_set_channel_modes
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_iio_priv_to_dev
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_BIT
	orl	%eax, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_BIT
	orl	%eax, %r15d
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	(%rbx), %eax
	cmpq	%rax, %r13
	jae	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	$-133, %ecx
	addl	%ecx, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_BIT
	orl	%eax, 16(%rbx)
	movl	%r13d, %edi
	callq	_BIT
	orl	%eax, 20(%rbx)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%r13d, %edi
	cmpl	$131, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$130, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_BIT
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_BIT
	orl	%eax, %r12d
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_BIT
	orl	%eax, 24(%rbx)
	movl	%r13d, %edi
	callq	_BIT
	orl	%eax, 28(%rbx)
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_BIT
	orl	%eax, 24(%rbx)
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_BIT
	orl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	movq	_AD5592R_REG_PULLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.18:
	movq	_AD5592R_REG_TRISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.19:
	movq	_AD5592R_REG_DAC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.20:
	movq	_AD5592R_REG_ADC_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.21:
	movq	_AD5592R_REG_GPIO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	movq	%rbx, %rdi
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.22:
	movq	_AD5592R_REG_GPIO_OUT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.23:
	movq	_AD5592R_REG_GPIO_IN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	%rbx, %rdi
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movl	(%r12), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	movzbl	-52(%rbp), %eax
	xorl	%r14d, %r14d
	cmpl	%r15d, %eax
	je	LBB0_27
## %bb.26:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_27:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_AD5592R_REG_PULLDOWN,4,2       ## @AD5592R_REG_PULLDOWN
	.comm	_AD5592R_REG_TRISTATE,4,2       ## @AD5592R_REG_TRISTATE
	.comm	_AD5592R_REG_DAC_EN,4,2         ## @AD5592R_REG_DAC_EN
	.comm	_AD5592R_REG_ADC_EN,4,2         ## @AD5592R_REG_ADC_EN
	.comm	_AD5592R_REG_GPIO_SET,4,2       ## @AD5592R_REG_GPIO_SET
	.comm	_AD5592R_REG_GPIO_OUT_EN,4,2    ## @AD5592R_REG_GPIO_OUT_EN
	.comm	_AD5592R_REG_GPIO_IN_EN,4,2     ## @AD5592R_REG_GPIO_IN_EN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ad5592r_set_channel_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5592r_set_channel_modes
_ad5592r_set_channel_modes:             ; @ad5592r_set_channel_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x26, [x0, #40]
	bl	_iio_priv_to_dev
	mov	x19, x0
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x25, #0
	mov	w21, #0
	mov	w22, #0
	mov	w23, #0
	mov	w24, #0
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_BIT
	orr	w22, w0, w22
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_BIT
	orr	w21, w0, w21
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldr	w8, [x20]
	cmp	x25, x8
	b.hs	LBB0_17
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x25, lsl #2]
	sub	w8, w8, #133
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_BIT
	ldr	w8, [x20, #16]
	orr	w8, w8, w0
	str	w8, [x20, #16]
	mov	x0, x25
	bl	_BIT
	ldr	w8, [x20, #20]
	orr	w8, w8, w0
	str	w8, [x20, #20]
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #32]
	ldr	w8, [x8, x25, lsl #2]
	mov	x0, x25
	cmp	w8, #131
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_BIT
	orr	w23, w0, w23
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_BIT
	orr	w22, w0, w22
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_BIT
	ldr	w8, [x20, #24]
	orr	w8, w8, w0
	str	w8, [x20, #24]
	mov	x0, x25
	bl	_BIT
	ldr	w8, [x20, #28]
	orr	w8, w8, w0
	str	w8, [x20, #28]
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_BIT
	ldr	w8, [x20, #24]
	orr	w8, w8, w0
	str	w8, [x20, #24]
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_BIT
	orr	w24, w0, w24
	b	LBB0_4
LBB0_16:
	mov	w24, #0
	mov	w23, #0
	mov	w22, #0
	mov	w21, #0
LBB0_17:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x26]
Lloh2:
	adrp	x9, _AD5592R_REG_PULLDOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD5592R_REG_PULLDOWN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x24
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.18:
	ldr	x8, [x26]
Lloh5:
	adrp	x9, _AD5592R_REG_TRISTATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AD5592R_REG_TRISTATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x23
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.19:
	ldr	x8, [x26]
Lloh8:
	adrp	x9, _AD5592R_REG_DAC_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AD5592R_REG_DAC_EN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x22
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.20:
	ldr	x8, [x26]
Lloh11:
	adrp	x22, _AD5592R_REG_ADC_EN@GOTPAGE
Lloh12:
	ldr	x22, [x22, _AD5592R_REG_ADC_EN@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.21:
	ldr	x8, [x26]
Lloh13:
	adrp	x9, _AD5592R_REG_GPIO_SET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AD5592R_REG_GPIO_SET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	ldr	w2, [x20, #28]
	mov	x0, x20
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.22:
	ldr	x8, [x26]
Lloh16:
	adrp	x9, _AD5592R_REG_GPIO_OUT_EN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AD5592R_REG_GPIO_OUT_EN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	ldr	w2, [x20, #24]
	mov	x0, x20
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.23:
	ldr	x8, [x26]
Lloh19:
	adrp	x9, _AD5592R_REG_GPIO_IN_EN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AD5592R_REG_GPIO_IN_EN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
	ldr	w2, [x20, #20]
	mov	x0, x20
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.24:
	ldr	x8, [x26, #8]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x20
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.25:
	ldrb	w8, [sp, #12]
	cmp	w8, w21
	b.ne	LBB0_27
; %bb.26:
	mov	w24, #0
	b	LBB0_28
LBB0_27:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_28:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_AD5592R_REG_PULLDOWN,4,2       ; @AD5592R_REG_PULLDOWN
	.comm	_AD5592R_REG_TRISTATE,4,2       ; @AD5592R_REG_TRISTATE
	.comm	_AD5592R_REG_DAC_EN,4,2         ; @AD5592R_REG_DAC_EN
	.comm	_AD5592R_REG_ADC_EN,4,2         ; @AD5592R_REG_ADC_EN
	.comm	_AD5592R_REG_GPIO_SET,4,2       ; @AD5592R_REG_GPIO_SET
	.comm	_AD5592R_REG_GPIO_OUT_EN,4,2    ; @AD5592R_REG_GPIO_OUT_EN
	.comm	_AD5592R_REG_GPIO_IN_EN,4,2     ; @AD5592R_REG_GPIO_IN_EN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ad5592r_set_channel_modes
.subsections_via_symbols
