	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5592r_reset
_ad5592r_reset:                         ## @ad5592r_reset
	.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, %r15
	callq	_iio_priv_to_dev
	movq	%rax, %r14
	movl	8(%r15), %edi
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_AD5592R_REG_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movl	$3500, %edx                     ## imm = 0xDAC
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	$250, %edi
	callq	_udelay
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_AD5592R_REG_RESET,4,2          ## @AD5592R_REG_RESET
	.no_dead_strip	_ad5592r_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5592r_reset
_ad5592r_reset:                         ; @ad5592r_reset
	.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	x20, x0
	bl	_iio_priv_to_dev
	mov	x19, x0
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_gpiod_get_optional
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_udelay
	mov	x0, x21
	mov	w1, #1
	bl	_gpiod_set_value
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _AD5592R_REG_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AD5592R_REG_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #3500
	blr	x8
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	w0, #250
	bl	_udelay
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_AD5592R_REG_RESET,4,2          ; @AD5592R_REG_RESET
	.no_dead_strip	_ad5592r_reset
.subsections_via_symbols
