	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_smb_writex
_smb_smb_writex:                        ## @smb_smb_writex
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r13
	movl	%esi, -76(%rbp)
	callq	_SSTOCP
	movq	_SMB_COM_WRITE_ANDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rcx
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_smb_rq_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_smb_rq_getrequest
	movq	-56(%rbp), %rdi
	callq	_smb_rq_wstart
	movq	-48(%rbp), %rdi
	movl	$255, %esi
	callq	_mb_put_uint8
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint8
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint16le
	movq	-48(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	movq	_MB_MSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	_mb_put_mem
	movq	-48(%rbp), %rdi
	movl	(%r15), %esi
	callq	_mb_put_uint32le
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint32le
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint16le
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint16le
	movq	%r13, %rdi
	callq	_SSTOVC
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_min
	movl	%eax, (%r12)
	movq	-48(%rbp), %rdi
	shrl	$16, %eax
	movl	%eax, %esi
	callq	_mb_put_uint16le
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	callq	_mb_put_uint16le
	movq	-48(%rbp), %rdi
	movl	$64, %esi
	callq	_mb_put_uint16le
	movq	-48(%rbp), %rdi
	callq	_mb_put_uint32le
	movq	-56(%rbp), %rdi
	callq	_smb_rq_wend
	movq	-56(%rbp), %rdi
	callq	_smb_rq_bstart
	movq	-48(%rbp), %rdi
	movl	$238, %esi
	callq	_mb_put_uint8
	movq	-48(%rbp), %rdi
	movl	(%r12), %edx
	movq	%r15, %rsi
	callq	_mb_put_uio
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	-56(%rbp), %rdi
	callq	_smb_rq_bend
	movq	-56(%rbp), %rdi
	callq	_smb_rq_simple
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_smb_rq_getreply
	movq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_md_get_uint8
	cmpl	$6, -72(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	-64(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_md_get_uint8
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_md_get_uint8
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_md_get_uint16le
	movq	-64(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	callq	_md_get_uint16le
	movl	-68(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_4:
	movq	_EBADRPC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	-56(%rbp), %rdi
	callq	_smb_rq_done
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_COM_WRITE_ANDX,4,2         ## @SMB_COM_WRITE_ANDX
	.comm	_MB_MSYSTEM,4,2                 ## @MB_MSYSTEM
	.comm	_EBADRPC,4,2                    ## @EBADRPC
	.no_dead_strip	_smb_smb_writex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_smb_writex
_smb_smb_writex:                        ; @smb_smb_writex
	.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	x23, x5
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	str	w1, [sp, #44]
	bl	_SSTOCP
Lloh0:
	adrp	x8, _SMB_COM_WRITE_ANDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMB_COM_WRITE_ANDX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #32
	mov	x2, x23
	bl	_smb_rq_alloc
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x0, [sp, #32]
	add	x1, sp, #24
	bl	_smb_rq_getrequest
	ldr	x0, [sp, #32]
	bl	_smb_rq_wstart
	ldr	x0, [sp, #24]
	mov	w1, #255
	bl	_mb_put_uint8
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_mb_put_uint8
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_mb_put_uint16le
	ldr	x0, [sp, #24]
Lloh3:
	adrp	x8, _MB_MSYSTEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB_MSYSTEM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #44
	mov	w2, #4
	bl	_mb_put_mem
	ldr	x0, [sp, #24]
	ldr	w1, [x20]
	bl	_mb_put_uint32le
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_mb_put_uint32le
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_mb_put_uint16le
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_mb_put_uint16le
	mov	x0, x22
	bl	_SSTOVC
	ldr	w0, [x0]
	ldr	w1, [x21]
	bl	_min
	str	w0, [x21]
	ldr	x8, [sp, #24]
	lsr	w1, w0, #16
	mov	x0, x8
	bl	_mb_put_uint16le
	ldr	x0, [sp, #24]
	ldr	w1, [x21]
	bl	_mb_put_uint16le
	ldr	x0, [sp, #24]
	mov	w1, #64
	bl	_mb_put_uint16le
	ldr	x0, [sp, #24]
	bl	_mb_put_uint32le
	ldr	x0, [sp, #32]
	bl	_smb_rq_wend
	ldr	x0, [sp, #32]
	bl	_smb_rq_bstart
	ldr	x0, [sp, #24]
	mov	w1, #238
	bl	_mb_put_uint8
	ldr	x0, [sp, #24]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_mb_put_uio
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x0, [sp, #32]
	bl	_smb_rq_bend
	ldr	x0, [sp, #32]
	bl	_smb_rq_simple
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x0, [sp, #32]
	add	x1, sp, #16
	bl	_smb_rq_getreply
	ldr	x0, [sp, #16]
	add	x1, sp, #12
	bl	_md_get_uint8
	ldr	w8, [sp, #12]
	cmp	w8, #6
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [sp, #16]
	mov	x1, #0
	bl	_md_get_uint8
	ldr	x0, [sp, #16]
	mov	x1, #0
	bl	_md_get_uint8
	ldr	x0, [sp, #16]
	mov	x1, #0
	bl	_md_get_uint16le
	ldr	x0, [sp, #16]
	add	x1, sp, #8
	bl	_md_get_uint16le
	mov	w23, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EBADRPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADRPC@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
LBB0_6:
	ldr	x0, [sp, #32]
	bl	_smb_rq_done
LBB0_7:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_COM_WRITE_ANDX,4,2         ; @SMB_COM_WRITE_ANDX
	.comm	_MB_MSYSTEM,4,2                 ; @MB_MSYSTEM
	.comm	_EBADRPC,4,2                    ; @EBADRPC
	.no_dead_strip	_smb_smb_writex
.subsections_via_symbols
