	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbefifo_parse_status           ## -- Begin function sbefifo_parse_status
	.p2align	4, 0x90
_sbefifo_parse_status:                  ## @sbefifo_parse_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%esi, %r14d
	cmpq	$2, %rcx
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_pr_debug
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	-4(%rdx,%r12,4), %edi
	callq	_be32_to_cpu
	movq	%rax, %r13
	cmpq	%r12, %rax
	ja	LBB0_4
## %bb.3:
	cmpq	$2, %r13
	jbe	LBB0_4
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	subq	%r13, %r12
	movl	(%r15,%r12,4), %edi
	callq	_be32_to_cpu
	movq	%rax, %rbx
	movl	4(%r15,%r12,4), %edi
	callq	_be32_to_cpu
	movq	%rbx, %r8
	movq	%rax, %rbx
	movq	%r8, %rax
	shrq	$16, %rax
	cmpq	$49374, %rax                    ## imm = 0xC0DE
	jne	LBB0_9
## %bb.8:
	movzwl	%r8w, %eax
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.10:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:
	movl	%r14d, %edx
	sarl	$8, %edx
	movzbl	%r14b, %ecx
	movq	%rbx, %r8
	shrq	$16, %r8
	movzwl	%bx, %r9d
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_warn
	addq	$-3, %r13
	je	LBB0_13
## %bb.12:
	leaq	(%r15,%r12,4), %rsi
	addq	$8, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_sbefifo_dump_ffdc
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r12, (%rax)
	jmp	LBB0_15
LBB0_4:
	movl	%r14d, %edx
	sarl	$8, %edx
	movzbl	%r14b, %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %r8
	movq	%r12, %r9
	jmp	LBB0_5
LBB0_9:
	movl	%r14d, %edx
	sarl	$8, %edx
	movzbl	%r14b, %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r9
LBB0_5:
	callq	_dev_err
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sbefifo: cmd %04x, response too small: %zd\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"SBE cmd %02x:%02x status offset out of range: %d/%zd\n"

L_.str.2:                               ## @.str.2
	.asciz	"SBE cmd %02x:%02x, status signature invalid: 0x%08x 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"SBE error cmd %02x:%02x status=%04x:%04x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbefifo_parse_status           ; -- Begin function sbefifo_parse_status
	.p2align	2
_sbefifo_parse_status:                  ; @sbefifo_parse_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x23, x1
	cmp	x3, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x21
	bl	_pr_debug
	b	LBB0_13
LBB0_2:
	mov	x19, x4
	mov	x22, x2
	mov	x20, x0
	add	x8, x2, x21, lsl #2
	ldur	w0, [x8, #-4]
	bl	_be32_to_cpu
	mov	x24, x0
	cmp	x0, x21
	ccmp	x0, #2, #0, ls
	b.hi	LBB0_4
; %bb.3:
	asr	w2, w23, #8
	and	w3, w23, #0xff
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x4, x24
	b	LBB0_12
LBB0_4:
	sub	x26, x21, x24
	add	x21, x22, x26, lsl #2
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	x25, x0
	ldr	w0, [x21, #4]
	bl	_be32_to_cpu
	mov	x21, x0
	mov	w8, #49374
	cmp	x8, x25, lsr #16
	b.ne	LBB0_11
; %bb.5:
	sxtw	x8, w23
	cmp	x8, w25, uxth
	b.ne	LBB0_11
; %bb.6:
	cbz	x21, LBB0_9
; %bb.7:
	sub	x24, x24, #3
	asr	w2, w23, #8
	and	w3, w23, #0xff
	lsr	x4, x21, #16
	and	x5, x21, #0xffff
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	cbz	x24, LBB0_9
; %bb.8:
	add	x8, x22, x26, lsl #2
	add	x1, x8, #8
	mov	x0, x20
	mov	x2, x24
	mov	w3, #0
	bl	_sbefifo_dump_ffdc
LBB0_9:
	cbz	x19, LBB0_14
; %bb.10:
	str	x26, [x19]
	b	LBB0_14
LBB0_11:
	asr	w2, w23, #8
	and	w3, w23, #0xff
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x4, x25
LBB0_12:
	mov	x5, x21
	bl	_dev_err
LBB0_13:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sbefifo: cmd %04x, response too small: %zd\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"SBE cmd %02x:%02x status offset out of range: %d/%zd\n"

l_.str.2:                               ; @.str.2
	.asciz	"SBE cmd %02x:%02x, status signature invalid: 0x%08x 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"SBE error cmd %02x:%02x status=%04x:%04x\n"

.subsections_via_symbols
