	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function test_file
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	2                               ## 0x2
	.byte	3                               ## 0x3
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.byte	6                               ## 0x6
	.byte	7                               ## 0x7
	.byte	8                               ## 0x8
	.byte	9                               ## 0x9
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	2                               ## 0x2
	.byte	3                               ## 0x3
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
LCPI0_1:
	.long	12                              ## 0xc
	.long	13                              ## 0xd
	.long	14                              ## 0xe
	.long	15                              ## 0xf
LCPI0_2:
	.long	8                               ## 0x8
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	11                              ## 0xb
LCPI0_3:
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7
LCPI0_4:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_5:
	.long	3435973837                      ## 0xcccccccd
	.long	3435973837                      ## 0xcccccccd
	.long	3435973837                      ## 0xcccccccd
	.long	3435973837                      ## 0xcccccccd
LCPI0_6:
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	10                              ## 0xa
LCPI0_7:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_8:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_file:                             ## @test_file
	.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
	movl	%edi, %r12d
	leaq	_test_file.buf_templ(%rip), %r14
	movq	%r14, %rdi
	callq	_mkstemp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	testl	%r12d, %r12d
	jle	LBB0_16
## %bb.4:
	movl	%r12d, %r8d
	cmpl	$16, %r12d
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_18:
	movl	%r15d, %edi
	callq	_close
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_6:
	movl	%r8d, %edx
	andl	$-16, %edx
	leaq	-16(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$4, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movdqa	LCPI0_1(%rip), %xmm6            ## xmm6 = [12,13,14,15]
	movdqa	LCPI0_2(%rip), %xmm12           ## xmm12 = [8,9,10,11]
	movdqa	LCPI0_3(%rip), %xmm13           ## xmm13 = [4,5,6,7]
	movdqa	LCPI0_4(%rip), %xmm11           ## xmm11 = [0,1,2,3]
	xorl	%edi, %edi
	movdqa	LCPI0_5(%rip), %xmm4            ## xmm4 = [3435973837,3435973837,3435973837,3435973837]
	movdqa	LCPI0_6(%rip), %xmm10           ## xmm10 = [10,10,10,10]
	movdqa	LCPI0_7(%rip), %xmm8            ## xmm8 = [16,16,16,16]
	movdqa	LCPI0_8(%rip), %xmm9            ## xmm9 = [32,32,32,32]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	pshufd	$245, %xmm12, %xmm0             ## xmm0 = xmm12[1,1,3,3]
	pmuludq	%xmm4, %xmm0
	movdqa	%xmm12, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$245, %xmm1, %xmm1              ## xmm1 = xmm1[1,1,3,3]
	pblendw	$204, %xmm0, %xmm1              ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7]
	psrld	$3, %xmm1
	pmulld	%xmm10, %xmm1
	movdqa	%xmm12, %xmm0
	psubd	%xmm1, %xmm0
	pshufd	$245, %xmm6, %xmm1              ## xmm1 = xmm6[1,1,3,3]
	pmuludq	%xmm4, %xmm1
	movdqa	%xmm6, %xmm2
	pmuludq	%xmm4, %xmm2
	pshufd	$245, %xmm2, %xmm2              ## xmm2 = xmm2[1,1,3,3]
	pblendw	$204, %xmm1, %xmm2              ## xmm2 = xmm2[0,1],xmm1[2,3],xmm2[4,5],xmm1[6,7]
	psrld	$3, %xmm2
	pmulld	%xmm10, %xmm2
	movdqa	%xmm6, %xmm1
	psubd	%xmm2, %xmm1
	packusdw	%xmm1, %xmm0
	pshufd	$245, %xmm11, %xmm1             ## xmm1 = xmm11[1,1,3,3]
	pmuludq	%xmm4, %xmm1
	movdqa	%xmm11, %xmm2
	pmuludq	%xmm4, %xmm2
	pshufd	$245, %xmm2, %xmm2              ## xmm2 = xmm2[1,1,3,3]
	pblendw	$204, %xmm1, %xmm2              ## xmm2 = xmm2[0,1],xmm1[2,3],xmm2[4,5],xmm1[6,7]
	psrld	$3, %xmm2
	pmulld	%xmm10, %xmm2
	movdqa	%xmm11, %xmm1
	psubd	%xmm2, %xmm1
	pshufd	$245, %xmm13, %xmm2             ## xmm2 = xmm13[1,1,3,3]
	pmuludq	%xmm4, %xmm2
	movdqa	%xmm13, %xmm5
	pmuludq	%xmm4, %xmm5
	pshufd	$245, %xmm5, %xmm5              ## xmm5 = xmm5[1,1,3,3]
	pblendw	$204, %xmm2, %xmm5              ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5],xmm2[6,7]
	psrld	$3, %xmm5
	pmulld	%xmm10, %xmm5
	movdqa	%xmm13, %xmm2
	psubd	%xmm5, %xmm2
	packusdw	%xmm2, %xmm1
	packuswb	%xmm0, %xmm1
	movdqu	%xmm1, (%rax,%rdi)
	movdqa	%xmm13, %xmm2
	paddd	%xmm8, %xmm2
	movdqa	%xmm11, %xmm0
	paddd	%xmm8, %xmm0
	movdqa	%xmm6, %xmm5
	paddd	%xmm8, %xmm5
	movdqa	%xmm12, %xmm7
	paddd	%xmm8, %xmm7
	pshufd	$245, %xmm7, %xmm3              ## xmm3 = xmm7[1,1,3,3]
	pmuludq	%xmm4, %xmm3
	movdqa	%xmm7, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$245, %xmm1, %xmm1              ## xmm1 = xmm1[1,1,3,3]
	pblendw	$204, %xmm3, %xmm1              ## xmm1 = xmm1[0,1],xmm3[2,3],xmm1[4,5],xmm3[6,7]
	psrld	$3, %xmm1
	pmulld	%xmm10, %xmm1
	psubd	%xmm1, %xmm7
	pshufd	$245, %xmm5, %xmm1              ## xmm1 = xmm5[1,1,3,3]
	pmuludq	%xmm4, %xmm1
	movdqa	%xmm5, %xmm3
	pmuludq	%xmm4, %xmm3
	pshufd	$245, %xmm3, %xmm3              ## xmm3 = xmm3[1,1,3,3]
	pblendw	$204, %xmm1, %xmm3              ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5],xmm1[6,7]
	psrld	$3, %xmm3
	pmulld	%xmm10, %xmm3
	psubd	%xmm3, %xmm5
	packusdw	%xmm5, %xmm7
	pshufd	$245, %xmm0, %xmm1              ## xmm1 = xmm0[1,1,3,3]
	pmuludq	%xmm4, %xmm1
	movdqa	%xmm0, %xmm3
	pmuludq	%xmm4, %xmm3
	pshufd	$245, %xmm3, %xmm3              ## xmm3 = xmm3[1,1,3,3]
	pblendw	$204, %xmm1, %xmm3              ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5],xmm1[6,7]
	psrld	$3, %xmm3
	pmulld	%xmm10, %xmm3
	psubd	%xmm3, %xmm0
	pshufd	$245, %xmm2, %xmm1              ## xmm1 = xmm2[1,1,3,3]
	pmuludq	%xmm4, %xmm1
	movdqa	%xmm2, %xmm3
	pmuludq	%xmm4, %xmm3
	pshufd	$245, %xmm3, %xmm3              ## xmm3 = xmm3[1,1,3,3]
	pblendw	$204, %xmm1, %xmm3              ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5],xmm1[6,7]
	psrld	$3, %xmm3
	pmulld	%xmm10, %xmm3
	psubd	%xmm3, %xmm2
	packusdw	%xmm2, %xmm0
	packuswb	%xmm7, %xmm0
	movdqu	%xmm0, 16(%rax,%rdi)
	addq	$32, %rdi
	paddd	%xmm9, %xmm11
	paddd	%xmm9, %xmm13
	paddd	%xmm9, %xmm12
	paddd	%xmm9, %xmm6
	addq	$-2, %rsi
	jne	LBB0_9
## %bb.10:
	pshufd	$245, %xmm12, %xmm0             ## xmm0 = xmm12[1,1,3,3]
	pmuludq	%xmm4, %xmm0
	movdqa	%xmm12, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$245, %xmm1, %xmm1              ## xmm1 = xmm1[1,1,3,3]
	pblendw	$204, %xmm0, %xmm1              ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7]
	psrld	$3, %xmm1
	pmulld	%xmm10, %xmm1
	psubd	%xmm1, %xmm12
	pshufd	$245, %xmm6, %xmm0              ## xmm0 = xmm6[1,1,3,3]
	pmuludq	%xmm4, %xmm0
	movdqa	%xmm6, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$245, %xmm1, %xmm1              ## xmm1 = xmm1[1,1,3,3]
	pblendw	$204, %xmm0, %xmm1              ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7]
	psrld	$3, %xmm1
	pmulld	%xmm10, %xmm1
	psubd	%xmm1, %xmm6
	packusdw	%xmm6, %xmm12
	pshufd	$245, %xmm11, %xmm0             ## xmm0 = xmm11[1,1,3,3]
	pmuludq	%xmm4, %xmm0
	movdqa	%xmm11, %xmm1
	pmuludq	%xmm4, %xmm1
	pshufd	$245, %xmm1, %xmm1              ## xmm1 = xmm1[1,1,3,3]
	pblendw	$204, %xmm0, %xmm1              ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7]
	psrld	$3, %xmm1
	pmulld	%xmm10, %xmm1
	psubd	%xmm1, %xmm11
	pshufd	$245, %xmm13, %xmm0             ## xmm0 = xmm13[1,1,3,3]
	pmuludq	%xmm4, %xmm0
	pmuludq	%xmm13, %xmm4
	pshufd	$245, %xmm4, %xmm1              ## xmm1 = xmm4[1,1,3,3]
	pblendw	$204, %xmm0, %xmm1              ## xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7]
	psrld	$3, %xmm1
	pmulld	%xmm10, %xmm1
	psubd	%xmm1, %xmm13
	packusdw	%xmm13, %xmm11
	packuswb	%xmm12, %xmm11
	testb	$1, %bl
	je	LBB0_13
LBB0_12:
	movdqu	%xmm11, (%rax,%rdi)
LBB0_13:
	cmpq	%r8, %rdx
	je	LBB0_16
LBB0_14:
	movl	$3435973837, %esi               ## imm = 0xCCCCCCCD
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ebx
	imulq	%rsi, %rbx
	shrq	$35, %rbx
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %ebx
	movl	%edx, %ecx
	subb	%bl, %cl
	movb	%cl, (%rax,%rdi)
	incq	%rdi
	incl	%edx
	cmpq	%rdi, %r8
	jne	LBB0_15
LBB0_16:
	movl	%r15d, %edi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_write
	xorl	%ebx, %ebx
	cmpl	%r12d, %eax
	cmoveq	%r14, %rbx
	movl	%r15d, %edi
	callq	_close
LBB0_17:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movdqa	LCPI0_0(%rip), %xmm11           ## xmm11 = [0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5]
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @test_file.buf_templ
_test_file.buf_templ:
	.asciz	"/tmp/test-XXXXXX"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mkstemp failed"

	.no_dead_strip	_test_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_file
_test_file:                             ; @test_file
	.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	x20, x0
Lloh0:
	adrp	x21, _test_file.buf_templ@PAGE
Lloh1:
	add	x21, x21, _test_file.buf_templ@PAGEOFF
	mov	x0, x21
	bl	_mkstemp
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w9, w20
	cmp	w20, #4
	b.hs	LBB0_6
; %bb.4:
	mov	x8, #0
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_close
	mov	x20, #0
	b	LBB0_12
LBB0_6:
	mov	w10, #0
	and	x8, x9, #0xfffffffc
	add	x11, x1, #3
	mov	w12, #1
	mov	w13, #2
	mov	w14, #3
	mov	w15, #52429
	movk	w15, #52428, lsl #16
	mov	w16, #10
	mov	x17, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	umull	x0, w10, w15
	lsr	x0, x0, #35
	msub	w0, w0, w16, w10
	umull	x2, w12, w15
	lsr	x2, x2, #35
	msub	w2, w2, w16, w12
	umull	x3, w13, w15
	lsr	x3, x3, #35
	msub	w3, w3, w16, w13
	umull	x4, w14, w15
	lsr	x4, x4, #35
	msub	w4, w4, w16, w14
	sturb	w0, [x11, #-3]
	sturb	w2, [x11, #-2]
	add	w10, w10, #4
	add	w12, w12, #4
	sturb	w3, [x11, #-1]
	strb	w4, [x11], #4
	add	w13, w13, #4
	add	w14, w14, #4
	subs	x17, x17, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_9:
	add	x10, x1, x8
	sub	x9, x9, x8
	mov	w11, #52429
	movk	w11, #52428, lsl #16
	mov	w12, #10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	umull	x13, w8, w11
	lsr	x13, x13, #35
	msub	w13, w13, w12, w8
	strb	w13, [x10], #1
	add	w8, w8, #1
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	mov	x2, x20
	bl	_write
	cmp	w0, w20
	csel	x20, x21, xzr, eq
	mov	x0, x19
	bl	_close
LBB0_12:
	mov	x0, x20
	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_13:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	x20, #0
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_test_file.buf_templ:                   ; @test_file.buf_templ
	.asciz	"/tmp/test-XXXXXX"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mkstemp failed"

	.no_dead_strip	_test_file
.subsections_via_symbols
