	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb1000_activate
_sb1000_activate:                       ## @sb1000_activate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, %edi
	callq	_ssleep
	leaq	_sb1000_activate.Command0(%rip), %rdx
	leaq	-23(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_card_send_command
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	_sb1000_activate.Command1(%rip), %rdx
	leaq	-23(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_card_send_command
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	cmpb	$-15, -20(%rbp)
	jne	LBB0_3
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sb1000_start_get_set_command
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sb1000_start_get_set_command
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_sb1000_activate.Command0:              ## @sb1000_activate.Command0
	.asciz	"\200\021\000\000\000"

_sb1000_activate.Command1:              ## @sb1000_activate.Command1
	.asciz	"\200\026\000\000\000"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sb1000_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb1000_activate
_sb1000_activate:                       ; @sb1000_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w0, #1
	bl	_ssleep
Lloh0:
	adrp	x2, _sb1000_activate.Command0@PAGE
Lloh1:
	add	x2, x2, _sb1000_activate.Command0@PAGEOFF
	add	x3, sp, #9
	mov	x0, x20
	mov	x1, x19
	bl	_card_send_command
	cbnz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x2, _sb1000_activate.Command1@PAGE
Lloh3:
	add	x2, x2, _sb1000_activate.Command1@PAGEOFF
	add	x3, sp, #9
	mov	x0, x20
	mov	x1, x19
	bl	_card_send_command
	cbnz	w0, LBB0_6
; %bb.2:
	ldrb	w8, [sp, #12]
	cmp	w8, #241
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1000
	bl	_udelay
	mov	x0, x20
	mov	x1, x19
	bl	_sb1000_start_get_set_command
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_sb1000_start_get_set_command
	cbnz	w0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_sb1000_activate.Command0:              ; @sb1000_activate.Command0
	.asciz	"\200\021\000\000\000"

_sb1000_activate.Command1:              ; @sb1000_activate.Command1
	.asciz	"\200\026\000\000\000"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sb1000_activate
.subsections_via_symbols
