	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isns_req_receive               ## -- Begin function isns_req_receive
	.p2align	4, 0x90
_isns_req_receive:                      ## @isns_req_receive
	.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	%rsi, %rbx
	movl	%edi, %r15d
	movl	$0, (%rsi)
	movq	%rsi, %rdi
	movl	$12, %esi
	callq	_isns_req_getspace
	movq	8(%rbx), %rsi
	movl	%r15d, %edi
	movl	$12, %edx
	callq	_read
	movl	$-1, %r14d
	cmpl	$12, %eax
	jl	LBB0_5
## %bb.1:
	movl	$12, (%rbx)
	movq	8(%rbx), %r12
	movl	8(%r12), %edi
	callq	_be16dec
	movq	_ISNS_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.2:
	movl	4(%r12), %edi
	callq	_be16dec
	movq	_ISNS_FLAG_LAST@GOTPCREL(%rip), %rcx
	movq	_ISNS_FLAG_FIRST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_5
## %bb.3:
	movl	(%r12), %edi
	callq	_be16dec
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_isns_req_getspace
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	callq	_read
	cmpl	%r12d, %eax
	jl	LBB0_5
## %bb.4:
	addl	%r12d, (%rbx)
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISNS_VERSION,4,2               ## @ISNS_VERSION
	.comm	_ISNS_FLAG_LAST,4,2             ## @ISNS_FLAG_LAST
	.comm	_ISNS_FLAG_FIRST,4,2            ## @ISNS_FLAG_FIRST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isns_req_receive               ; -- Begin function isns_req_receive
	.p2align	2
_isns_req_receive:                      ; @isns_req_receive
	.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	x19, x1
	mov	x20, x0
	str	wzr, [x1]
	mov	w21, #12
	mov	x0, x1
	mov	w1, #12
	bl	_isns_req_getspace
	ldr	x1, [x19, #8]
	mov	x0, x20
	mov	w2, #12
	bl	_read
	cmp	w0, #12
	b.lt	LBB0_4
; %bb.1:
	str	w21, [x19]
	ldr	x21, [x19, #8]
	ldr	w0, [x21, #8]
	bl	_be16dec
Lloh0:
	adrp	x8, _ISNS_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISNS_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x21, #4]
	bl	_be16dec
Lloh3:
	adrp	x8, _ISNS_FLAG_LAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISNS_FLAG_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ISNS_FLAG_FIRST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISNS_FLAG_FIRST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w8, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_be16dec
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_isns_req_getspace
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	mov	x2, x21
	bl	_read
	cmp	w0, w21
	b.ge	LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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_6:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISNS_VERSION,4,2               ; @ISNS_VERSION
	.comm	_ISNS_FLAG_LAST,4,2             ; @ISNS_FLAG_LAST
	.comm	_ISNS_FLAG_FIRST,4,2            ; @ISNS_FLAG_FIRST
.subsections_via_symbols
