	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sharpsl_pcmcia_init_reset
_sharpsl_pcmcia_init_reset:             ## @sharpsl_pcmcia_init_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, %r14
	movq	_SCOOP_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%rdi), %rbx
	shlq	$4, %rbx
	movl	12(%r15,%rbx), %edi
	callq	_reset_scoop
	movq	_platform_scoop_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	12(%r15,%rbx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdx
	xorl	%esi, %esi
	callq	*%rax
	jmp	LBB0_3
LBB0_2:
	movq	_SCOOP_CPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_write_scoop_reg
LBB0_3:
	movq	_NO_KEEP_VS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15,%rbx)
	movq	$0, (%r15,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCOOP_DEV,8,3                  ## @SCOOP_DEV
	.comm	_platform_scoop_config,8,3      ## @platform_scoop_config
	.comm	_SCOOP_CPR,4,2                  ## @SCOOP_CPR
	.comm	_NO_KEEP_VS,4,2                 ## @NO_KEEP_VS
	.no_dead_strip	_sharpsl_pcmcia_init_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sharpsl_pcmcia_init_reset
_sharpsl_pcmcia_init_reset:             ; @sharpsl_pcmcia_init_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	x19, x0
Lloh0:
	adrp	x8, _SCOOP_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCOOP_DEV@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x21, [x0]
	add	x22, x20, x21, lsl #4
	ldr	w0, [x22, #12]
	bl	_reset_scoop
Lloh3:
	adrp	x8, _platform_scoop_config@GOTPAGE
Lloh4:
	ldr	x8, [x8, _platform_scoop_config@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x22, #12]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x2, [x19]
	mov	w1, #0
	blr	x8
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _SCOOP_CPR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCOOP_CPR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_write_scoop_reg
LBB0_3:
Lloh9:
	adrp	x8, _NO_KEEP_VS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_KEEP_VS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	x9, x20, x21, lsl #4
	str	w8, [x9, #8]
	str	xzr, [x9]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SCOOP_DEV,8,3                  ; @SCOOP_DEV
	.comm	_platform_scoop_config,8,3      ; @platform_scoop_config
	.comm	_SCOOP_CPR,4,2                  ; @SCOOP_CPR
	.comm	_NO_KEEP_VS,4,2                 ; @NO_KEEP_VS
	.no_dead_strip	_sharpsl_pcmcia_init_reset
.subsections_via_symbols
