	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function do_write_request
LCPI0_0:
	.long	0                               ## 0x0
	.long	4294967288                      ## 0xfffffff8
	.space	4
	.space	4
LCPI0_1:
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.space	4
	.space	4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_write_request:                      ## @do_write_request
	.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	%rdi, %r14
	movq	(%rsi), %rax
	movl	4(%rax), %r12d
	movl	8(%rax), %edx
	imull	(%rax), %r12d
	leaq	8(%rdi), %r15
	movl	12(%rax), %esi
	movq	_SG_MITER_FROM_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_sg_miter_start
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_MIO_EMM_BUF_IDX
	addq	%rax, %rbx
	movl	$65536, %edi                    ## imm = 0x10000
	movq	%rbx, %rsi
	callq	_writeq
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.1:
	leaq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$56, %r12d
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = <4294967280,4294967280,u,u>
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [1065353216,1065353216,1065353216,1065353216]
	pcmpeqd	%xmm11, %xmm11
	movdqa	LCPI0_3(%rip), %xmm12           ## xmm12 = <4294967264,4294967264,u,u>
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jae	LBB0_20
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	8(%r14), %rcx
	movq	16(%r14), %r10
	cmpq	%r10, %rcx
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_sg_miter_next
	movdqa	LCPI0_3(%rip), %xmm12           ## xmm12 = <4294967264,4294967264,u,u>
	pcmpeqd	%xmm11, %xmm11
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = <4294967280,4294967280,u,u>
	testl	%eax, %eax
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 8(%r14)
	movq	16(%r14), %r10
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r10, %rcx
	jae	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rdx
	movq	%rcx, %rsi
	notq	%rsi
	addq	%r10, %rsi
	movl	%r12d, %edi
	shrl	$3, %edi
	cmpq	%rsi, %rdi
	movq	%rsi, %r9
	cmovbq	%rdi, %r9
	incq	%r9
	testq	%rsi, %rsi
	movl	$1, %eax
	cmoveq	%rax, %r9
	cmpq	$4, %r9
	jb	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rsi, %rdi
	cmovaeq	%rsi, %rdi
	testq	%rsi, %rsi
	cmoveq	%rsi, %rdi
	addq	%rcx, %rdi
	leaq	(%rdx,%rdi,8), %rsi
	addq	$8, %rsi
	cmpq	%rsi, %r15
	jae	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rdx,%rcx,8), %rsi
	cmpq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	jae	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rsi
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	movl	%r12d, %ecx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movl	-8(%rdx,%rsi,8), %ebx
	shll	%cl, %ebx
	orl	%edi, %ebx
	incl	%r13d
	movq	%rsi, (%r15)
	leal	-8(%rcx), %r12d
	cmpq	%r10, %rsi
	jae	LBB0_2
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	incq	%rsi
	cmpl	$7, %ecx
	movl	%r12d, %ecx
	ja	LBB0_18
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %r12
	movq	%r14, %rdi
	callq	_MIO_EMM_BUF_DAT
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_writeq
	movdqa	LCPI0_3(%rip), %xmm12           ## xmm12 = <4294967264,4294967264,u,u>
	pcmpeqd	%xmm11, %xmm11
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = <4294967280,4294967280,u,u>
	xorl	%ebx, %ebx
	movl	$56, %r12d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jb	LBB0_4
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r9d, %r8d
	andl	$1073741820, %r8d               ## imm = 0x3FFFFFFC
	leaq	(%rcx,%r8), %rsi
	leal	(,%r8,8), %edi
	movd	%ebx, %xmm8
	movd	%r12d, %xmm1
	subl	%edi, %r12d
	pshufd	$80, %xmm1, %xmm0               ## xmm0 = xmm1[0,0,1,1]
	paddd	LCPI0_0(%rip), %xmm0
	movd	%r13d, %xmm2
	pxor	%xmm1, %xmm1
	movq	%r8, %rbx
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, %xmm5
	paddd	%xmm9, %xmm5
	movdqu	(%rdx,%rcx,8), %xmm6
	movdqu	16(%rdx,%rcx,8), %xmm7
	pshufd	$232, %xmm6, %xmm6              ## xmm6 = xmm6[0,2,2,3]
	pshufd	$232, %xmm7, %xmm7              ## xmm7 = xmm7[0,2,2,3]
	movdqa	%xmm0, %xmm3
	pslld	$23, %xmm3
	paddd	%xmm10, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pmulld	%xmm6, %xmm3
	por	%xmm3, %xmm8
	pslld	$23, %xmm5
	paddd	%xmm10, %xmm5
	cvttps2dq	%xmm5, %xmm3
	pmulld	%xmm7, %xmm3
	por	%xmm3, %xmm1
	psubd	%xmm11, %xmm2
	psubd	%xmm11, %xmm4
	paddd	%xmm12, %xmm0
	addq	$4, %rcx
	addq	$-4, %rbx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, (%r15)
	paddd	%xmm2, %xmm4
	pshufd	$85, %xmm4, %xmm0               ## xmm0 = xmm4[1,1,1,1]
	paddd	%xmm4, %xmm0
	movd	%xmm0, %r13d
	por	%xmm8, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%r8, %r9
	je	LBB0_2
	jmp	LBB0_17
LBB0_20:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sg_miter_stop                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SG_MITER_FROM_SG,4,2           ## @SG_MITER_FROM_SG
	.no_dead_strip	_do_write_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function do_write_request
lCPI0_0:
	.long	0                               ; 0x0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_do_write_request:                      ; @do_write_request
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	.cfi_offset b12, -120
	.cfi_offset b13, -128
	mov	x19, x0
	ldr	x8, [x1]
	ldp	w9, w10, [x8]
	mul	w22, w10, w9
	add	x20, x0, #8
	ldp	w2, w1, [x8, #8]
Lloh0:
	adrp	x8, _SG_MITER_FROM_SG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SG_MITER_FROM_SG@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_sg_miter_start
	ldr	x21, [x19]
	mov	x0, x19
	bl	_MIO_EMM_BUF_IDX
	add	x1, x0, x21
	mov	w0, #65536
	bl	_writeq
	cbz	w22, LBB0_19
; %bb.1:
	mov	w21, #0
	mov	w25, #0
	add	x23, x19, #16
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mvni.2s	v9, #15
	mov	w26, #56
	mov	w24, #1
	mvni.2s	v10, #31
	mvni.2s	v11, #47
	movi.2s	v12, #1
	mvni.2s	v13, #63
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x10
	cmp	w25, w22
	b.hs	LBB0_19
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldp	x12, x8, [x19, #8]
	cmp	x12, x8
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_sg_miter_next
	cbz	w0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	str	xzr, [x19, #8]
	ldr	x8, [x19, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x8
	b.hs	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #24]
	mvn	x10, x12
	lsr	w11, w26, #3
	add	x10, x8, x10
	cmp	x11, x10
	csel	x13, x11, x10, lo
	cmp	x10, #0
	csinc	x13, x24, x13, eq
	cmp	x13, #8
	b.lo	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x15, x9, x12, lsl #3
	cmp	x11, x10
	csel	x11, x11, x10, lo
	cmp	x10, #0
	csel	x10, xzr, x11, eq
	add	x10, x12, x10
	add	x10, x9, x10, lsl #3
	add	x10, x10, #8
	cmp	x20, x10
	ccmp	x15, x23, #2, lo
	b.lo	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x14, x13, #0x3ffffff8
	add	x11, x12, x14
	sub	w10, w26, w14, lsl #3
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w21
	dup.2s	v2, w26
	movi.2d	v1, #0000000000000000
	add.2s	v3, v2, v8
	movi.2d	v2, #0000000000000000
	mov.s	v2[0], w25
	add	x15, x15, #32
	mov	x16, x14
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add.2s	v17, v3, v9
	add.2s	v18, v3, v10
	add.2s	v19, v3, v11
	ldp	q20, q21, [x15, #-32]
	ldp	q22, q23, [x15], #64
	xtn.2s	v20, v20
	xtn.2s	v21, v21
	xtn.2s	v22, v22
	xtn.2s	v23, v23
	ushl.2s	v20, v20, v3
	ushl.2s	v17, v21, v17
	ushl.2s	v18, v22, v18
	ushl.2s	v19, v23, v19
	orr.8b	v0, v20, v0
	orr.8b	v1, v17, v1
	orr.8b	v4, v18, v4
	orr.8b	v5, v19, v5
	add.2s	v2, v2, v12
	add.2s	v6, v6, v12
	add.2s	v7, v7, v12
	add.2s	v16, v16, v12
	add.2s	v3, v3, v13
	add	x12, x12, #8
	subs	x16, x16, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x12, [x20]
	add.2s	v2, v6, v2
	add.2s	v2, v7, v2
	add.2s	v2, v16, v2
	addp.2s	v2, v2, v2
	fmov	w25, s2
	orr.8b	v0, v1, v0
	orr.8b	v0, v4, v0
	orr.8b	v0, v5, v0
	mov.s	w12, v0[1]
	fmov	w15, s0
	orr	w21, w15, w12
	cmp	x13, x14
	b.ne	LBB0_14
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, x26
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x12
	mov	x10, x26
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, x10
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9, x11, lsl #3]
	lsl	w10, w10, w12
	orr	w21, w10, w21
	add	w25, w25, #1
	add	x11, x11, #1
	str	x11, [x20]
	sub	w10, w12, #8
	cmp	x11, x8
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	cmp	w12, #7
	mov	x12, x10
	b.hi	LBB0_15
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w10, #31, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [x19]
	mov	x0, x19
	bl	_MIO_EMM_BUF_DAT
	add	x1, x0, x26
	mov	x0, x21
	bl	_writeq
	mov	w21, #0
	mov	w10, #56
	b	LBB0_2
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #128            ; 16-byte Folded Reload
	b	_sg_miter_stop
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SG_MITER_FROM_SG,4,2           ; @SG_MITER_FROM_SG
	.no_dead_strip	_do_write_request
.subsections_via_symbols
