	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_reset_device
_zpa2326_reset_device:                  ## @zpa2326_reset_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_iio_priv
	movl	(%rax), %edi
	movq	_ZPA2326_CTRL_REG2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZPA2326_CTRL_REG2_SWRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_zpa2326_err
	jmp	LBB0_3
LBB0_2:
	movq	_ZPA2326_TPUP_USEC_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ZPA2326_TPUP_USEC_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_zpa2326_dbg
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPA2326_CTRL_REG2_REG,4,2      ## @ZPA2326_CTRL_REG2_REG
	.comm	_ZPA2326_CTRL_REG2_SWRESET,4,2  ## @ZPA2326_CTRL_REG2_SWRESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reset device (%d)"

	.comm	_ZPA2326_TPUP_USEC_MIN,4,2      ## @ZPA2326_TPUP_USEC_MIN
	.comm	_ZPA2326_TPUP_USEC_MAX,4,2      ## @ZPA2326_TPUP_USEC_MAX
L_.str.1:                               ## @.str.1
	.asciz	"reset"

	.no_dead_strip	_zpa2326_reset_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_reset_device
_zpa2326_reset_device:                  ; @zpa2326_reset_device
	.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	w0, [x0]
Lloh0:
	adrp	x8, _ZPA2326_CTRL_REG2_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPA2326_CTRL_REG2_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ZPA2326_CTRL_REG2_SWRESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPA2326_CTRL_REG2_SWRESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_zpa2326_err
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _ZPA2326_TPUP_USEC_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZPA2326_TPUP_USEC_MIN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ZPA2326_TPUP_USEC_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZPA2326_TPUP_USEC_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_usleep_range
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_zpa2326_dbg
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPA2326_CTRL_REG2_REG,4,2      ; @ZPA2326_CTRL_REG2_REG
	.comm	_ZPA2326_CTRL_REG2_SWRESET,4,2  ; @ZPA2326_CTRL_REG2_SWRESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reset device (%d)"

	.comm	_ZPA2326_TPUP_USEC_MIN,4,2      ; @ZPA2326_TPUP_USEC_MIN
	.comm	_ZPA2326_TPUP_USEC_MAX,4,2      ; @ZPA2326_TPUP_USEC_MAX
l_.str.1:                               ; @.str.1
	.asciz	"reset"

	.no_dead_strip	_zpa2326_reset_device
.subsections_via_symbols
