	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_sync
___card_sync:                           ## @__card_sync
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	callq	__CPU_ISR_Disable
	movq	%r14, %rdi
	callq	_CARD_GetErrorCode
	movq	%rax, %rbx
	movq	_CARD_ERROR_BUSY@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,4), %edi
	callq	_LWP_ThreadSleep
	movq	%r14, %rdi
	callq	_CARD_GetErrorCode
	cmpq	(%r12), %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
LBB0_3:
	callq	__CPU_ISR_Restore
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cardmap,8,3                    ## @cardmap
	.comm	_CARD_ERROR_BUSY,8,3            ## @CARD_ERROR_BUSY
	.no_dead_strip	___card_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_sync
___card_sync:                           ; @__card_sync
	.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, _cardmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	__CPU_ISR_Disable
	mov	x0, x19
	bl	_CARD_GetErrorCode
	mov	x20, x0
Lloh3:
	adrp	x22, _CARD_ERROR_BUSY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CARD_ERROR_BUSY@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x19, lsl #2]
	bl	_LWP_ThreadSleep
	mov	x0, x19
	bl	_CARD_GetErrorCode
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.2:
	mov	x20, x0
LBB0_3:
	bl	__CPU_ISR_Restore
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_CARD_ERROR_BUSY,8,3            ; @CARD_ERROR_BUSY
	.no_dead_strip	___card_sync
.subsections_via_symbols
