	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_reset                  ## -- Begin function fjes_hw_reset
	.p2align	4, 0x90
_fjes_hw_reset:                         ## @fjes_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_XSCT_DCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_wr32
	movq	_FJES_DEVICE_RESET_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_rd32
	testl	%ebx, %ebx
	setg	%cl
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:
	imull	$1000, %ebx, %ebx               ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movl	(%r14), %edi
	callq	_rd32
	cmpl	$1001, %ebx                     ## imm = 0x3E9
	setge	%cl
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1000(%rbx), %eax
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	movl	%eax, %ebx
	jg	LBB0_3
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testb	%cl, %cl
	cmovnel	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XSCT_DCTL,4,2                  ## @XSCT_DCTL
	.comm	_FJES_DEVICE_RESET_TIMEOUT,4,2  ## @FJES_DEVICE_RESET_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_reset                  ; -- Begin function fjes_hw_reset
	.p2align	2
_fjes_hw_reset:                         ; @fjes_hw_reset
	.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
Lloh0:
	adrp	x19, _XSCT_DCTL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _XSCT_DCTL@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_wr32
Lloh2:
	adrp	x8, _FJES_DEVICE_RESET_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FJES_DEVICE_RESET_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_rd32
	cmp	w20, #0
	cset	w8, gt
	cmp	w0, #1
	ccmp	w20, #1, #8, eq
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #1000
	mul	w20, w20, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	bl	_msleep
	ldr	w0, [x19]
	bl	_rd32
	subs	w9, w20, #1000
	cset	w8, gt
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #1000
	mov	x20, x9
	b.gt	LBB0_2
LBB0_4:
Lloh5:
	adrp	x9, _EIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w0, wzr, w9, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XSCT_DCTL,4,2                  ; @XSCT_DCTL
	.comm	_FJES_DEVICE_RESET_TIMEOUT,4,2  ; @FJES_DEVICE_RESET_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
