	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbefifo_collect_async_ffdc
_sbefifo_collect_async_ffdc:            ## @sbefifo_collect_async_ffdc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movl	$0, (%rdi)
	movq	_SBEFIFO_MAX_FFDC_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, -80(%rbp)
	movq	(%r13), %r8
	movq	%r8, -88(%rbp)
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r12
	leaq	-88(%rbp), %rdx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_iov_iter_kvec
	movl	$2, %edi
	callq	_cpu_to_be32
	movl	%eax, -56(%rbp)
	movq	_SBEFIFO_CMD_GET_SBE_FFDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	movq	%r12, %rcx
	callq	_sbefifo_do_command
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	movq	(%r13), %rbx
	leaq	-64(%rbp), %rdi
	callq	_iov_iter_count
	subq	%rax, %rbx
	shrq	$2, %rbx
	movq	%rbx, -72(%rbp)
	movq	_SBEFIFO_CMD_GET_SBE_FFDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_sbefifo_parse_status
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	%r15, %rdi
	callq	_vfree
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_sbefifo_dump_ffdc
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SBEFIFO_MAX_FFDC_SIZE,8,3      ## @SBEFIFO_MAX_FFDC_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate SBE FFDC buffer\n"

	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_SBEFIFO_CMD_GET_SBE_FFDC,4,2   ## @SBEFIFO_CMD_GET_SBE_FFDC
L_.str.1:                               ## @.str.1
	.asciz	"Error %d retrieving SBE FFDC\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error %d decoding SBE FFDC\n"

	.no_dead_strip	_sbefifo_collect_async_ffdc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbefifo_collect_async_ffdc
_sbefifo_collect_async_ffdc:            ; @sbefifo_collect_async_ffdc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x19, [x0, #8]
	str	wzr, [x0]
Lloh3:
	adrp	x22, _SBEFIFO_MAX_FFDC_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SBEFIFO_MAX_FFDC_SIZE@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_vmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x4, [x22]
	stp	x4, x0, [sp, #24]
Lloh5:
	adrp	x8, _WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #40
	add	x2, sp, #24
	mov	w3, #1
	bl	_iov_iter_kvec
	mov	w0, #2
	bl	_cpu_to_be32
	str	w0, [sp, #48]
Lloh8:
	adrp	x23, _SBEFIFO_CMD_GET_SBE_FFDC@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SBEFIFO_CMD_GET_SBE_FFDC@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cpu_to_be32
	str	w0, [sp, #52]
	add	x1, sp, #48
	add	x3, sp, #40
	mov	x0, x21
	mov	w2, #2
	bl	_sbefifo_do_command
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.2:
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
	ldr	x8, [sp, #56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.4:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_dev_err
LBB0_5:
	ldr	x21, [x22]
	add	x0, sp, #40
	bl	_iov_iter_count
	sub	x8, x21, x0
	lsr	x3, x8, #2
	str	x3, [sp, #16]
	ldr	w1, [x23]
	add	x4, sp, #16
	mov	x0, x19
	mov	x2, x20
	bl	_sbefifo_parse_status
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.6:
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	bl	_vfree
	ldr	x8, [sp, #56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_8
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_sbefifo_dump_ffdc
	b	LBB0_8
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SBEFIFO_MAX_FFDC_SIZE,8,3      ; @SBEFIFO_MAX_FFDC_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate SBE FFDC buffer\n"

	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_SBEFIFO_CMD_GET_SBE_FFDC,4,2   ; @SBEFIFO_CMD_GET_SBE_FFDC
l_.str.1:                               ; @.str.1
	.asciz	"Error %d retrieving SBE FFDC\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error %d decoding SBE FFDC\n"

	.no_dead_strip	_sbefifo_collect_async_ffdc
.subsections_via_symbols
