	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_write                      ## -- Begin function smb_write
	.p2align	4, 0x90
_smb_write:                             ## @smb_write
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	(%rdx), %r14d
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movl	%r14d, -48(%rbp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r15, %r8
	movq	%r12, %r9
	callq	_smb_smb_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%eax, %r14d
	jg	LBB0_2
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movl	$0, %ecx
	je	LBB0_8
LBB0_7:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r15)
	movl	%eax, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_write                      ; -- Begin function smb_write
	.p2align	2
_smb_write:                             ; @smb_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w23, [x2]
	cmp	w23, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x24, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	wzr, w24, [sp, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x4, x19
	mov	x5, x20
	bl	_smb_smb_write
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [sp, #8]
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w24, w24, w8
	cmp	w24, #1
	b.ge	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_8
LBB0_7:
	str	w23, [x19]
LBB0_8:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
