	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h_mspro_block_wait_for_ced
_h_mspro_block_wait_for_ced:            ## @h_mspro_block_wait_for_ced
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	testl	%esi, %esi
	jne	LBB0_3
## %bb.1:
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	movq	_MEMSTICK_INT_CMDNAK@GOTPCREL(%rip), %rdx
	movq	_MEMSTICK_INT_ERR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_4
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	movl	%esi, 8(%rax)
	jmp	LBB0_3
LBB0_4:
	movq	_MEMSTICK_INT_CED@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mspro_block_complete_req       ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait for ced: value %x\n"

	.comm	_MEMSTICK_INT_CMDNAK,4,2        ## @MEMSTICK_INT_CMDNAK
	.comm	_MEMSTICK_INT_ERR,4,2           ## @MEMSTICK_INT_ERR
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MEMSTICK_INT_CED,4,2           ## @MEMSTICK_INT_CED
	.no_dead_strip	_h_mspro_block_wait_for_ced
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h_mspro_block_wait_for_ced
_h_mspro_block_wait_for_ced:            ; @h_mspro_block_wait_for_ced
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	cbnz	w1, LBB0_5
; %bb.1:
	ldr	x9, [x8]
	ldr	w9, [x9]
Lloh2:
	adrp	x10, _MEMSTICK_INT_CMDNAK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MEMSTICK_INT_CMDNAK@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x11, _MEMSTICK_INT_ERR@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MEMSTICK_INT_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _EFAULT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	neg	w1, w9
	str	w1, [x8, #8]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _MEMSTICK_INT_CED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEMSTICK_INT_CED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
	mov	w1, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mspro_block_complete_req
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait for ced: value %x\n"

	.comm	_MEMSTICK_INT_CMDNAK,4,2        ; @MEMSTICK_INT_CMDNAK
	.comm	_MEMSTICK_INT_ERR,4,2           ; @MEMSTICK_INT_ERR
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MEMSTICK_INT_CED,4,2           ; @MEMSTICK_INT_CED
	.no_dead_strip	_h_mspro_block_wait_for_ced
.subsections_via_symbols
