	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function card_state_change
_card_state_change:                     ## @card_state_change
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_CARD_TO_DEV
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_rsxx_card_state_to_str
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_rsxx_card_state_to_str
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movl	%ebx, (%r14)
	cmpq	$0, 16(%r14)
	je	LBB0_11
## %bb.1:
	addl	$-128, %ebx
	cmpl	$8, %ebx
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movl	8(%r14), %edi
	xorl	%esi, %esi
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_capacity                   ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_CARD_TO_DEV
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_crit
LBB0_4:
	leaq	4(%r14), %rsi
	movq	%r14, %rdi
	callq	_rsxx_get_card_size8
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_CARD_TO_DEV
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
LBB0_6:
	cmpq	$0, 16(%r14)
	je	LBB0_11
## %bb.7:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	sarl	$9, %esi
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_CARD_TO_DEV
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_crit
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card state change detected.(%s -> %s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Hardware has entered read-only mode!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed attaching DMA devices\n"

L_.str.3:                               ## @.str.3
	.asciz	"Hardware Fault reported!\n"

	.no_dead_strip	_card_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function card_state_change
_card_state_change:                     ; @card_state_change
	.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	x20, x1
	mov	x19, x0
	bl	_CARD_TO_DEV
	mov	x21, x0
	ldr	w0, [x19]
	bl	_rsxx_card_state_to_str
	mov	x22, x0
	mov	x0, x20
	bl	_rsxx_card_state_to_str
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_info
	str	w20, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.1:
	sub	w8, w20, #128
	cmp	w8, #8
	b.hi	LBB0_10
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w0, [x19, #8]
	mov	w1, #0
LBB0_4:
	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
	b	_set_capacity
LBB0_5:
	mov	x0, x19
	bl	_CARD_TO_DEV
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_crit
LBB0_6:
	add	x1, x19, #4
	mov	x0, x19
	bl	_rsxx_get_card_size8
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_CARD_TO_DEV
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldp	w8, w0, [x19, #4]
	asr	w1, w8, #9
	b	LBB0_4
LBB0_10:
	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
LBB0_11:
	mov	x0, x19
	bl	_CARD_TO_DEV
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_crit
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card state change detected.(%s -> %s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Hardware has entered read-only mode!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed attaching DMA devices\n"

l_.str.3:                               ; @.str.3
	.asciz	"Hardware Fault reported!\n"

	.no_dead_strip	_card_state_change
.subsections_via_symbols
