	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_smb_read
_smb_smb_read:                          ## @smb_smb_read
	.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	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, -80(%rbp)
	callq	_SSTOVC
	movq	_SMB_CAP_LARGE_READX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_1
## %bb.11:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smb_smb_readx                  ## TAILCALL
LBB0_1:
	movq	%r12, %r14
	movq	%rbx, %rdi
	callq	_SSTOCP
	movq	_SMB_COM_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-48(%rbp), %rcx
	movl	%eax, %edi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_smb_rq_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	callq	_SSTOVC
	movl	(%rax), %edi
	movq	_SMB_HDRLEN@GOTPCREL(%rip), %rax
	subl	(%rax), %edi
	addl	$-16, %edi
	movl	(%r14), %esi
	callq	_min
	movl	%eax, %ebx
	movl	%eax, (%r14)
	movq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_smb_rq_getrequest
	movq	-48(%rbp), %rdi
	callq	_smb_rq_wstart
	movq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movq	_MB_MSYSTEM@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	_mb_put_mem
	movq	-72(%rbp), %rdi
	movl	%ebx, %esi
	callq	_mb_put_uint16le
	movq	-72(%rbp), %rdi
	movl	4(%r13), %esi
	callq	_mb_put_uint32le
	movq	-72(%rbp), %rbx
	movl	(%r13), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_min
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mb_put_uint16le
	movq	-48(%rbp), %rdi
	callq	_smb_rq_wend
	movq	-48(%rbp), %rdi
	callq	_smb_rq_bstart
	movq	-48(%rbp), %rdi
	callq	_smb_rq_bend
	movq	-48(%rbp), %rdi
	callq	_smb_rq_simple
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_smb_rq_getreply
	movq	-56(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	callq	_md_get_uint8
	cmpl	$5, -76(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	-56(%rbp), %rdi
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_md_get_uint16le
	movq	-56(%rbp), %rdi
	movl	(%r14), %ecx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_md_get_mem
	movq	-56(%rbp), %rdi
	leaq	-92(%rbp), %rsi
	callq	_md_get_uint16le
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_md_get_uint8
	movq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_md_get_uint16le
	movl	-60(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_md_get_uio
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	-60(%rbp), %eax
	movl	%eax, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_4:
	movq	_EBADRPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_6:
	movl	$0, (%r15)
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_smb_rq_done
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_CAP_LARGE_READX,4,2        ## @SMB_CAP_LARGE_READX
	.comm	_SMB_COM_READ,4,2               ## @SMB_COM_READ
	.comm	_SMB_HDRLEN,4,2                 ## @SMB_HDRLEN
	.comm	_MB_MSYSTEM,4,2                 ## @MB_MSYSTEM
	.comm	_EBADRPC,4,2                    ## @EBADRPC
	.no_dead_strip	_smb_smb_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_smb_read
_smb_smb_read:                          ; @smb_smb_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x5
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	str	w1, [sp, #44]
	bl	_SSTOVC
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _SMB_CAP_LARGE_READX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMB_CAP_LARGE_READX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	mov	x5, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_smb_smb_readx
LBB0_2:
	mov	x0, x23
	bl	_SSTOCP
Lloh3:
	adrp	x8, _SMB_COM_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMB_COM_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #32
	mov	x2, x22
	bl	_smb_rq_alloc
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x23
	bl	_SSTOVC
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _SMB_HDRLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMB_HDRLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w8, w8, w9
	sub	w0, w8, #16
	ldr	w1, [x21]
	bl	_min
	mov	x22, x0
	str	w0, [x21]
	ldr	x0, [sp, #32]
	add	x1, sp, #24
	bl	_smb_rq_getrequest
	ldr	x0, [sp, #32]
	bl	_smb_rq_wstart
	ldr	x0, [sp, #24]
Lloh9:
	adrp	x23, _MB_MSYSTEM@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MB_MSYSTEM@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x1, sp, #44
	mov	w2, #4
	bl	_mb_put_mem
	ldr	x0, [sp, #24]
	mov	x1, x22
	bl	_mb_put_uint16le
	ldr	x0, [sp, #24]
	ldr	w1, [x20, #4]
	bl	_mb_put_uint32le
	ldr	x21, [sp, #24]
	ldr	w0, [x20]
	mov	w1, #65535
	bl	_min
	mov	x1, x0
	mov	x0, x21
	bl	_mb_put_uint16le
	ldr	x0, [sp, #32]
	bl	_smb_rq_wend
	ldr	x0, [sp, #32]
	bl	_smb_rq_bstart
	ldr	x0, [sp, #32]
	bl	_smb_rq_bend
	ldr	x0, [sp, #32]
	bl	_smb_rq_simple
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	x0, [sp, #32]
	add	x1, sp, #16
	bl	_smb_rq_getreply
	ldr	x0, [sp, #16]
	add	x1, sp, #4
	bl	_md_get_uint8
	ldr	w8, [sp, #4]
	cmp	w8, #5
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [sp, #16]
	add	x1, sp, #12
	bl	_md_get_uint16le
	ldr	x0, [sp, #16]
	ldr	w3, [x23]
	mov	x1, #0
	mov	w2, #8
	bl	_md_get_mem
	ldr	x0, [sp, #16]
	add	x1, sp, #8
	bl	_md_get_uint16le
	ldr	x0, [sp, #16]
	mov	x1, #0
	bl	_md_get_uint8
	ldr	x0, [sp, #16]
	add	x1, sp, #12
	bl	_md_get_uint16le
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_9
; %bb.6:
	ldr	x0, [sp, #16]
	mov	x1, x20
	bl	_md_get_uio
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _EBADRPC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADRPC@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_9:
	mov	w22, #0
	str	wzr, [x19]
LBB0_10:
	ldr	x0, [sp, #32]
	bl	_smb_rq_done
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_CAP_LARGE_READX,4,2        ; @SMB_CAP_LARGE_READX
	.comm	_SMB_COM_READ,4,2               ; @SMB_COM_READ
	.comm	_SMB_HDRLEN,4,2                 ; @SMB_HDRLEN
	.comm	_MB_MSYSTEM,4,2                 ; @MB_MSYSTEM
	.comm	_EBADRPC,4,2                    ; @EBADRPC
	.no_dead_strip	_smb_smb_read
.subsections_via_symbols
