	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_block_reply
_i2o_block_reply:                       ## @i2o_block_reply
	.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
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movl	16(%rdx), %edi
	callq	_le32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_i2o_cntxt_list_get
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_osm_err
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	xorl	%r15d, %r15d
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	jb	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	shrl	$12, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%ebx, %edx
	sarl	$24, %edx
	movzwl	%bx, %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_osm_err
	incl	(%r14)
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_4:
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_i2o_block_end_request
	movl	$1, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NULL reply received!\n"

L_.str.1:                               ## @.str.1
	.asciz	"TID %03x error status: 0x%02x, detailed status: 0x%04x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_block_reply
_i2o_block_reply:                       ; @i2o_block_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x0
	ldr	w0, [x2, #16]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_i2o_cntxt_list_get
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_err
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	lsr	w8, w0, #24
	cbnz	w8, LBB0_4
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	ubfx	w8, w0, #12, #12
	asr	w9, w21, #24
	and	w10, w21, #0xffff
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_err
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i2o_block_end_request
	mov	w0, #1
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL reply received!\n"

l_.str.1:                               ; @.str.1
	.asciz	"TID %03x error status: 0x%02x, detailed status: 0x%04x\n"

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