	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb1000_get_firmware_version
_sb1000_get_firmware_version:           ## @sb1000_get_firmware_version
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sb1000_start_get_set_command
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	leaq	_sb1000_get_firmware_version.Command0(%rip), %rdx
	leaq	-39(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_card_send_command
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	cmpb	$-93, -39(%rbp)
	jne	LBB0_3
## %bb.4:
	movb	-38(%rbp), %al
	movb	%al, (%r12)
	movb	-37(%rbp), %al
	movb	%al, 1(%r12)
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sb1000_end_get_set_command
	jmp	LBB0_7
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_sb1000_get_firmware_version.Command0:  ## @sb1000_get_firmware_version.Command0
	.asciz	"\200#\000\000\000"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb1000_get_firmware_version
_sb1000_get_firmware_version:           ; @sb1000_get_firmware_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_sb1000_start_get_set_command
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x2, _sb1000_get_firmware_version.Command0@PAGE
Lloh1:
	add	x2, x2, _sb1000_get_firmware_version.Command0@PAGEOFF
	add	x3, sp, #9
	mov	x0, x20
	mov	x1, x19
	bl	_card_send_command
	cbnz	w0, LBB0_7
; %bb.2:
	ldrb	w8, [sp, #9]
	cmp	w8, #163
	b.ne	LBB0_5
; %bb.3:
	ldurh	w8, [sp, #10]
	strh	w8, [x22]
	cbz	w21, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_sb1000_end_get_set_command
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_sb1000_get_firmware_version.Command0:  ; @sb1000_get_firmware_version.Command0
	.asciz	"\200#\000\000\000"

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