	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function da9150_fg_write_attr
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_da9150_fg_write_attr:                  ## @da9150_fg_write_attr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DA9150_QIF_LONG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	_DA9150_QIF_CODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DA9150_QIF_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.1:
	movq	_DA9150_QIF_BYTE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_DA9150_QIF_BYTE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r12d, %edx
	cmpl	$8, %r12d
	jae	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%edx, %ebx
	andl	$-8, %ebx
	movd	%r11d, %xmm0
	pshufd	$0, %xmm0, %xmm13               ## xmm13 = xmm0[0,0,0,0]
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm5                ## xmm5 = xmm0[0,0,0,0]
	movd	%r9d, %xmm1
	pshufd	$0, %xmm1, %xmm12               ## xmm12 = xmm1[0,0,0,0]
	leaq	-8(%rbx), %rcx
	movq	%rcx, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%r10, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [0,1,2,3]
	xorl	%ecx, %ecx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm4, %xmm2
	paddd	%xmm8, %xmm2
	movdqa	%xmm13, %xmm3
	pmulld	%xmm4, %xmm3
	pmulld	%xmm13, %xmm2
	pshuflw	$254, %xmm3, %xmm6              ## xmm6 = xmm3[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm0
	psrad	%xmm6, %xmm0
	pshufd	$238, %xmm3, %xmm6              ## xmm6 = xmm3[2,3,2,3]
	pshuflw	$254, %xmm6, %xmm1              ## xmm1 = xmm6[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm7
	psrad	%xmm1, %xmm7
	pblendw	$15, %xmm0, %xmm7               ## xmm7 = xmm0[0,1,2,3],xmm7[4,5,6,7]
	pshuflw	$84, %xmm3, %xmm0               ## xmm0 = xmm3[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm1
	psrad	%xmm0, %xmm1
	pshuflw	$84, %xmm6, %xmm0               ## xmm0 = xmm6[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm3
	psrad	%xmm0, %xmm3
	pblendw	$15, %xmm1, %xmm3               ## xmm3 = xmm1[0,1,2,3],xmm3[4,5,6,7]
	pblendw	$204, %xmm7, %xmm3              ## xmm3 = xmm3[0,1],xmm7[2,3],xmm3[4,5],xmm7[6,7]
	pshuflw	$254, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm1
	psrad	%xmm0, %xmm1
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	pshuflw	$254, %xmm0, %xmm6              ## xmm6 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm7
	psrad	%xmm6, %xmm7
	pblendw	$15, %xmm1, %xmm7               ## xmm7 = xmm1[0,1,2,3],xmm7[4,5,6,7]
	pshuflw	$84, %xmm2, %xmm1               ## xmm1 = xmm2[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm2
	psrad	%xmm1, %xmm2
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm1
	psrad	%xmm0, %xmm1
	pblendw	$15, %xmm2, %xmm1               ## xmm1 = xmm2[0,1,2,3],xmm1[4,5,6,7]
	pblendw	$204, %xmm7, %xmm1              ## xmm1 = xmm1[0,1],xmm7[2,3],xmm1[4,5],xmm7[6,7]
	pand	%xmm12, %xmm3
	pand	%xmm12, %xmm1
	movdqa	%xmm3, (%rax,%rcx,4)
	movdqa	%xmm1, 16(%rax,%rcx,4)
	movdqa	%xmm4, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm4, %xmm2
	paddd	%xmm10, %xmm2
	pmulld	%xmm13, %xmm0
	pmulld	%xmm13, %xmm2
	pshuflw	$254, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm3
	psrad	%xmm1, %xmm3
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pshuflw	$254, %xmm1, %xmm6              ## xmm6 = xmm1[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm7
	psrad	%xmm6, %xmm7
	pblendw	$15, %xmm3, %xmm7               ## xmm7 = xmm3[0,1,2,3],xmm7[4,5,6,7]
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm3
	psrad	%xmm0, %xmm3
	pshuflw	$84, %xmm1, %xmm0               ## xmm0 = xmm1[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm1
	psrad	%xmm0, %xmm1
	pblendw	$15, %xmm3, %xmm1               ## xmm1 = xmm3[0,1,2,3],xmm1[4,5,6,7]
	pblendw	$204, %xmm7, %xmm1              ## xmm1 = xmm1[0,1],xmm7[2,3],xmm1[4,5],xmm7[6,7]
	pshuflw	$254, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm3
	psrad	%xmm0, %xmm3
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	pshuflw	$254, %xmm0, %xmm6              ## xmm6 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm7
	psrad	%xmm6, %xmm7
	pblendw	$15, %xmm3, %xmm7               ## xmm7 = xmm3[0,1,2,3],xmm7[4,5,6,7]
	pshuflw	$84, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm3
	psrad	%xmm2, %xmm3
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm2
	psrad	%xmm0, %xmm2
	pblendw	$15, %xmm3, %xmm2               ## xmm2 = xmm3[0,1,2,3],xmm2[4,5,6,7]
	pblendw	$204, %xmm7, %xmm2              ## xmm2 = xmm2[0,1],xmm7[2,3],xmm2[4,5],xmm7[6,7]
	pand	%xmm12, %xmm1
	pand	%xmm12, %xmm2
	movdqa	%xmm1, 32(%rax,%rcx,4)
	movdqa	%xmm2, 48(%rax,%rcx,4)
	addq	$16, %rcx
	paddd	%xmm11, %xmm4
	addq	$-2, %rdi
	jne	LBB0_6
## %bb.7:
	testb	$1, %r10b
	je	LBB0_9
LBB0_8:
	movdqa	%xmm13, %xmm0
	pmulld	%xmm4, %xmm0
	paddd	LCPI0_1(%rip), %xmm4
	pmulld	%xmm13, %xmm4
	pshuflw	$254, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm2
	psrad	%xmm1, %xmm2
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pshuflw	$254, %xmm1, %xmm3              ## xmm3 = xmm1[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm6
	psrad	%xmm3, %xmm6
	pblendw	$15, %xmm2, %xmm6               ## xmm6 = xmm2[0,1,2,3],xmm6[4,5,6,7]
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm2
	psrad	%xmm0, %xmm2
	pshuflw	$84, %xmm1, %xmm0               ## xmm0 = xmm1[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm1
	psrad	%xmm0, %xmm1
	pblendw	$15, %xmm2, %xmm1               ## xmm1 = xmm2[0,1,2,3],xmm1[4,5,6,7]
	pblendw	$204, %xmm6, %xmm1              ## xmm1 = xmm1[0,1],xmm6[2,3],xmm1[4,5],xmm6[6,7]
	pshuflw	$254, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm2
	psrad	%xmm0, %xmm2
	pshufd	$238, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,2,3]
	pshuflw	$254, %xmm0, %xmm3              ## xmm3 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm5, %xmm6
	psrad	%xmm3, %xmm6
	pblendw	$15, %xmm2, %xmm6               ## xmm6 = xmm2[0,1,2,3],xmm6[4,5,6,7]
	pshuflw	$84, %xmm4, %xmm2               ## xmm2 = xmm4[0,1,1,1,4,5,6,7]
	movdqa	%xmm5, %xmm3
	psrad	%xmm2, %xmm3
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	psrad	%xmm0, %xmm5
	pblendw	$15, %xmm3, %xmm5               ## xmm5 = xmm3[0,1,2,3],xmm5[4,5,6,7]
	pblendw	$204, %xmm6, %xmm5              ## xmm5 = xmm5[0,1],xmm6[2,3],xmm5[4,5],xmm6[6,7]
	pand	%xmm12, %xmm1
	pand	%xmm12, %xmm5
	movdqa	%xmm1, (%rax,%rcx,4)
	movdqa	%xmm5, 16(%rax,%rcx,4)
LBB0_9:
	cmpq	%rdx, %rbx
	je	LBB0_12
LBB0_10:
	movl	%r11d, %ecx
	imull	%ebx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	sarl	%cl, %edi
	andl	%r9d, %edi
	movl	%edi, (%rax,%rbx,4)
	incq	%rbx
	addl	%r11d, %ecx
	cmpq	%rbx, %rdx
	jne	LBB0_11
LBB0_12:
	andl	%r15d, %esi
	orl	%r8d, %esi
	movl	(%r14), %edi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_da9150_write_qif
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [0,1,2,3]
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_8
	jmp	LBB0_9
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9150_QIF_LONG_SIZE,4,2       ## @DA9150_QIF_LONG_SIZE
	.comm	_DA9150_QIF_CODE_MASK,4,2       ## @DA9150_QIF_CODE_MASK
	.comm	_DA9150_QIF_WRITE,4,2           ## @DA9150_QIF_WRITE
	.comm	_DA9150_QIF_BYTE_SIZE,4,2       ## @DA9150_QIF_BYTE_SIZE
	.comm	_DA9150_QIF_BYTE_MASK,4,2       ## @DA9150_QIF_BYTE_MASK
	.no_dead_strip	_da9150_fg_write_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function da9150_fg_write_attr
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_da9150_fg_write_attr:                  ; @da9150_fg_write_attr
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _DA9150_QIF_LONG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9150_QIF_LONG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	mov	sp, x8
Lloh8:
	adrp	x9, _DA9150_QIF_CODE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DA9150_QIF_CODE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _DA9150_QIF_WRITE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DA9150_QIF_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
Lloh14:
	adrp	x11, _DA9150_QIF_BYTE_SIZE@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DA9150_QIF_BYTE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	adrp	x12, _DA9150_QIF_BYTE_MASK@GOTPAGE
Lloh18:
	ldr	x12, [x12, _DA9150_QIF_BYTE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	mov	w13, w2
	cmp	w2, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x14, #0
	b	LBB0_6
LBB0_3:
	and	x14, x13, #0xfffffff0
	dup.4s	v0, w11
	dup.4s	v1, w3
	dup.4s	v2, w12
Lloh20:
	adrp	x15, lCPI0_0@PAGE
Lloh21:
	ldr	q3, [x15, lCPI0_0@PAGEOFF]
	add	x15, x8, #32
	movi.4s	v4, #4
	movi.4s	v5, #8
	movi.4s	v6, #12
	movi.4s	v7, #16
	mov	x16, x14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v16, v3, v4
	add.4s	v17, v3, v5
	add.4s	v18, v3, v6
	mul.4s	v19, v0, v3
	mul.4s	v16, v0, v16
	mul.4s	v17, v0, v17
	mul.4s	v18, v0, v18
	neg.4s	v19, v19
	sshl.4s	v19, v1, v19
	neg.4s	v16, v16
	sshl.4s	v16, v1, v16
	neg.4s	v17, v17
	sshl.4s	v17, v1, v17
	neg.4s	v18, v18
	sshl.4s	v18, v1, v18
	and.16b	v19, v19, v2
	and.16b	v16, v16, v2
	and.16b	v17, v17, v2
	and.16b	v18, v18, v2
	stp	q19, q16, [x15, #-32]
	stp	q17, q18, [x15], #64
	add.4s	v3, v3, v7
	subs	x16, x16, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x14, x13
	b.eq	LBB0_8
LBB0_6:
	mul	w15, w11, w14
	add	x16, x8, x14, lsl #2
	sub	x13, x13, x14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	asr	w14, w3, w15
	and	w14, w14, w12
	str	w14, [x16], #4
	add	w15, w15, w11
	subs	x13, x13, #1
	b.ne	LBB0_7
LBB0_8:
	and	w9, w9, w1
	orr	w1, w9, w10
	ldr	w0, [x0]
	mov	x3, x8
	bl	_da9150_write_qif
	ldur	x8, [x29, #-8]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9150_QIF_LONG_SIZE,4,2       ; @DA9150_QIF_LONG_SIZE
	.comm	_DA9150_QIF_CODE_MASK,4,2       ; @DA9150_QIF_CODE_MASK
	.comm	_DA9150_QIF_WRITE,4,2           ; @DA9150_QIF_WRITE
	.comm	_DA9150_QIF_BYTE_SIZE,4,2       ; @DA9150_QIF_BYTE_SIZE
	.comm	_DA9150_QIF_BYTE_MASK,4,2       ; @DA9150_QIF_BYTE_MASK
	.no_dead_strip	_da9150_fg_write_attr
.subsections_via_symbols
