	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function user_reset_fdc
_user_reset_fdc:                        ## @user_reset_fdc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movl	%edx, %esi
	callq	_LOCK_FDC
	movq	_FD_RESET_ALWAYS@GOTPCREL(%rip), %rcx
	movq	_FDCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rax)
	jmp	LBB0_3
LBB0_2:
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_3:
	movq	_reset_cont@GOTPCREL(%rip), %rax
	movq	_cont@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_reset_fdc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WAIT
LBB0_4:
	xorl	%eax, %eax
	callq	_process_fd_request
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_RESET_ALWAYS,4,2            ## @FD_RESET_ALWAYS
	.comm	_FDCS,8,3                       ## @FDCS
	.comm	_reset_cont,4,2                 ## @reset_cont
	.comm	_cont,8,3                       ## @cont
	.comm	_reset_fdc,4,2                  ## @reset_fdc
	.no_dead_strip	_user_reset_fdc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function user_reset_fdc
_user_reset_fdc:                        ; @user_reset_fdc
	.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, x1
	mov	x1, x2
	bl	_LOCK_FDC
Lloh0:
	adrp	x8, _FD_RESET_ALWAYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_RESET_ALWAYS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _FDCS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDCS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w9, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _cont@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cont@GOTPAGEOFF]
Lloh8:
	adrp	x9, _reset_cont@GOTPAGE
Lloh9:
	ldr	x9, [x9, _reset_cont@GOTPAGEOFF]
Lloh10:
	str	x9, [x8]
Lloh11:
	adrp	x8, _reset_fdc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _reset_fdc@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_WAIT
LBB0_4:
	bl	_process_fd_request
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_RESET_ALWAYS,4,2            ; @FD_RESET_ALWAYS
	.comm	_FDCS,8,3                       ; @FDCS
	.comm	_reset_cont,4,2                 ; @reset_cont
	.comm	_cont,8,3                       ; @cont
	.comm	_reset_fdc,4,2                  ; @reset_fdc
	.no_dead_strip	_user_reset_fdc
.subsections_via_symbols
